Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-3d-photo-inpainting > 3d photo inpainting

ComfyUI Node: 3d photo inpainting

Class Name

TreeDNode

Category
AIFSH_3d-photo-inpainting
Author
aifsh (Account age: 1105days)
Extension
ComfyUI-3d-photo-inpainting
Latest Updated
2024-06-19
Github Stars
0.02K

How to Install ComfyUI-3d-photo-inpainting

Install this extension via the ComfyUI Manager by searching for ComfyUI-3d-photo-inpainting
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-3d-photo-inpainting in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

3d photo inpainting Description

Configures and launches 3D photo inpainting to create camera-motion video from a still image.

3d photo inpainting:

TreeDNode prepares and launches a 3D photo-inpainting workflow intended to turn a still image into a video with apparent camera movement. It reads a rendering configuration, supplies model checkpoint locations and motion settings, then runs a separate rendering script. This can help you create a moving view from one image, but the node source does not show the rendering script’s implementation or confirm that a finished video is successfully returned.

3d photo inpainting Input Parameters:

img_path

An IMAGEPATH value identifying the image to process. The node passes this value to the rendering configuration as the specific image and uses its last four characters as the image-format value. You should provide a valid path to an image in the configured source folder and check that its filename ends with the expected extension. No default, minimum, or maximum is specified in the node source.

fps

An integer setting for the requested video frame rate, passed to the rendering script as fps. A higher value requests more frames per second of playback; together with num_frames, it determines the intended playback duration. The default is 40. No minimum or maximum is specified in the node source.

num_frames

An integer setting for how many frames the rendering script is asked to produce. More frames can make the intended video longer at the same frame rate and may require more processing, although actual rendering behavior depends on the separate script. The default is 240. No minimum or maximum is specified in the node source.

x_shift

A floating-point motion setting passed to the rendering script as a one-item x_shift_range list. It supplies the requested shift along the x direction, but the source shown does not define its units or how that shift appears in the final view. The default is 0.00; the interface specifies rounding to 0.001 and a number display. No minimum or maximum is specified.

y_shift

A floating-point motion setting passed to the rendering script as a one-item y_shift_range list. It supplies the requested shift along the y direction; its units and visual effect are not defined in the supplied source. The default is 0.00; the interface specifies rounding to 0.001 and a number display. No minimum or maximum is specified.

z_shift

A floating-point motion setting passed to the rendering script as a one-item z_shift_range list. It supplies the requested shift along the z direction, though the supplied source does not establish the units or whether a negative value moves the apparent camera closer or farther away. The default is -0.05; the interface specifies rounding to 0.001 and a number display. No minimum or maximum is specified.

traj_type

A choice passed to the rendering script as the requested trajectory type. The available options are double-straight-line and circle; the default is double-straight-line. This setting selects a named motion path, but the exact path produced by either option is defined outside the supplied node source.

video_postfix

A choice passed to the rendering script as video_postfix. The available options are dolly-zoom-in, zoom-in, circle, and swing; the default is dolly-zoom-in. These names identify the requested video variant, but the supplied source does not establish whether they control an effect, an output filename, or both.

offscreen_rendering

A Boolean setting passed to the rendering script to request offscreen rendering. The default is True; the available values are True and False. This controls the value sent to the separate script, but the supplied source does not show what display or rendering setup that script requires for either choice.

3d photo inpainting Output Parameters:

video

The sole output socket is labeled video and declares the type VIDEO. However, the provided render method returns an empty string, "", in this socket rather than a video path or video object. The separate script may write a video to its configured video folder, but this source does not identify that file or return it through the socket. You should therefore not assume that connecting this output will provide a usable video.

3d photo inpainting Usage Tips:

  • Start with the defaults, then change one motion setting at a time. Keeping x_shift and y_shift at 0.00 while testing z_shift makes it easier to tell which setting affects a result, provided the rendering script completes successfully.
  • Use fps and num_frames together when planning playback length. At 40 frames per second, 240 frames represent six seconds of playback if all frames are produced.
  • Select traj_type and video_postfix from their listed options. Because their detailed behavior is implemented in the separate script, compare test renders before committing to a longer run.
  • Confirm that the image and the required model files are available before rendering. The node supplies paths for edge-model.pth, depth-model.pth, color-model.pth, and model.pt to the external workflow.
  • Check the configured video folder for a rendered file after execution. The declared VIDEO socket alone is not evidence that the node returned one.

3d photo inpainting Common Errors and Solutions:

FileNotFoundError: [Errno 2] No such file or directory: '.../3dphoto/argument.yml'

  • Explanation: The node tries to read its default configuration file before starting the renderer. This error means that the file was not found at the configured location.
  • Solution: Check that the 3dphoto installation includes argument.yml and that the node’s configured base directory points to the correct installation.

FileNotFoundError: [Errno 2] No such file or directory: '.../tmp.yaml'

  • Explanation: The node must write a temporary configuration and later delete it. A path or directory problem can prevent either operation; the exact error depends on which operation failed.
  • Solution: Check that the node’s base directory exists and is writable. If the error occurs during cleanup, check whether another process removed tmp.yaml while the node was running.

PermissionError: [Errno 13] Permission denied: '.../tmp.yaml'

  • Explanation: The node cannot write or remove its temporary configuration at that location.
  • Solution: Give the application permission to write in the configured directory, or use an installation location where it has that permission.

python: can't open file '.../3dphoto/main.py': [Errno 2] No such file or directory

  • Explanation: The external rendering script is missing from the path the node constructs. The exact command prefix may differ because the node uses the current Python executable.
  • Solution: Verify that 3dphoto/main.py is installed in the expected location.

A renderer error reports a missing model file

  • Explanation: The node provides paths for four model checkpoints, but the external script must be able to open them. The precise message depends on that script.
  • Solution: Verify that edge-model.pth, depth-model.pth, color-model.pth, and model.pt exist in the configured checkpoint directory.

A renderer error reports that the source image cannot be found or opened

  • Explanation: The node passes img_path and a configured source folder to the external script. The supplied source does not show how that script resolves them, so the precise error may vary.
  • Solution: Confirm the image exists, its path matches the workflow’s expectations, and its extension is correct. The node derives its image-format value from the final four characters of img_path.

The node finishes, but the video output is empty or unusable

  • Explanation: This behavior is consistent with the provided node source: it returns "" for its declared VIDEO output. The node also does not check whether the external rendering command succeeded.
  • Solution: Inspect the rendering command’s messages and the configured video folder to determine whether a file was created. Returning that file through the socket would require a change to the node implementation.

3d photo inpainting Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-3d-photo-inpainting
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

3d photo inpainting