FervorCreative AI
Live Latest 25.11.26 · morning 454 tools tracked 1099 workflows indexed 688 topics Hot: ComfyUI, Claude Code, MiniMax H3

Cupid3D's scene templates fix the oldest problem in AI photo edits, objects that sit in the wrong perspective, by working out the original camera first and letting the image model handle only the blending.

ComfyUI-Cupid3DCUPIDFLUX 3 KleinComfyUI3d-gencreative-workflowsai-editingimage-genlocal-creative-ai

Move an Object Inside Its Own Photo: A Free ComfyUI Workflow That Rebuilds It in 3D With the Camera That Shot It

Ask an image model to move the lamp from the left of a photo to the right and it will usually do something that looks almost right. The lamp arrives. It is a little too big, or tilted toward a horizon that is not there, or it floats a finger's width above the table. You notice it before you can say why. Your eye is checking perspective, and the model was guessing at it.

A free ComfyUI release from November 22 takes a different route. Before anything gets repainted, it rebuilds the object in 3D and works out the exact camera that took the photo. Then the object can move inside the picture the way it would move inside the real room, and the AI only has to do the part AI is good at: painting the gap where the object used to be and blending the new position so it looks photographed.

The pack is called ComfyUI-Cupid3D, by a developer who publishes as Nekodificador. I think its two scene templates are the most useful thing in it, and the most useful idea: geometry first, painting second.

Why the camera is the whole trick

Every photo has a hidden fact baked into it: where the lens was, which way it pointed, how wide it saw. Compositors spend a lot of their working lives recovering that fact, because a 3D object only looks right in a photograph when it is rendered through the same camera.

Cupid3D wraps a research model called CUPID, released last year by its academic authors, with the models and most of the code under the permissive MIT license. CUPID does two jobs at once from a single image: it builds a 3D model of the subject and it estimates the camera. The ComfyUI wrapper's README puts the key promise plainly: the camera "describes your input image, exactly as you fed it in." Render the 3D object through that camera at the photo's own size and the two line up, with no reframing or letterboxing.

That is the whole game. Once you have the object and the camera, moving the object is just moving it. Perspective, scale with distance and the angle to the floor come for free, because they come from geometry rather than from a guess.

What the scene workflow does, step by step

The pack ships three templates. The first just rebuilds an object and renders it back over the photo so you can see the two agree. The two scene templates are the ones a working creative will want.

Scene integration with Klein 3 removal rebuilds your subject in 3D and puts it back onto the same photo with the original painted out. You can then drag the 3D version around the cleaned background, which compositors call the plate.

Scene integration advanced (removal and blend) does all that, then adds a second AI pass that blends the moved object back into the photograph so it reads as one image rather than a paste-up.

Here is the advanced flow in plain terms.

  1. You click the subject. A mask picker lets you click on the object once. That one selection does three jobs: it tells Cupid3D what to rebuild, tells the removal pass what to paint out, and tells the blend pass where to look.
  2. The photo gets a clean background. FLUX 3 Klein, an open-weights image model from Black Forest Labs that can also edit photos, paints the object out and leaves an empty plate.
  3. The object comes back as 3D. Cupid3D rebuilds it and solves the camera. A depth estimate of the cleaned plate (a map of how far away each part of the scene is) lets the 3D viewer tuck your object behind things already in the scene, like a chair leg in front of a bag.
  4. You move it. In the 3D preview, you position the object over the plate. By default it rests on the floor, and the camera moves with it so the alignment with the photo holds.
  5. The blend pass makes it a photo again. Klein takes the raw render of your moved object and the untouched original photo, and blends the two. One reference weight sets how hard it pulls back toward the original photo's look.

The result opens in a pop-up with the original beside it, so you see before and after at once.

Why this beats prompting

The usual way to move something in a photo is to describe the change and let an image model redraw the scene. That works when the scene is forgiving and fails exactly where you care: products, furniture, anything with straight edges and a known size. The model does not know where the floor is in 3D. It knows what floors tend to look like.

In this workflow, the AI never has to guess the perspective. The 3D rebuild and the camera decide where the object sits and how big it is at that distance. The image model only handles the two jobs that need taste: inventing the bit of background that was hidden behind the object, and matching light and grain so the render looks photographed. Splitting the work that way is why the result holds up when you look at the contact point between object and floor, which is where fakes usually give themselves away.

It also means you can try five positions without five gambles. The geometry is predictable. The blend is the only part that varies.

Put this into practice

This is a local workflow with real hardware requirements, so check those first (below). If your machine qualifies, here is the shortest path.

  1. Install the pack. Clone ComfyUI-Cupid3D into ComfyUI's custom_nodes folder and install its extra Python packages into the Python that ComfyUI uses. The README lists the exact commands.
  2. Install the helper packs for the scene templates. The advanced template needs the author's NKD Basic, Klein, VFX, Notes and Preview tool packs, plus comfyui_controlnet_aux (for the depth map) and RES4LYF (for its sampler). Each template's note lists the models it needs: a "Klein 3 Distilled" bundle loaded through the author's loader, and a segmentation model for the mask picker.
  3. Run the plain template first. Open Templates, search "Cupid", and run "Image to Mesh and Camera" on the dragon test image from the pack's assets folder. If the render lines up with the photo, your install works.
  4. Pick a forgiving photo. Start with one clear object on a floor or table, shot from a normal angle, not cropped at the edges. A product shot, a chair in a room, a mug on a desk.
  5. Make small moves first. Slide the object a short distance and keep it facing mostly the same way. Then try bigger moves and rotations, and watch where it starts to break.
  6. Tune the blend last. If the moved object looks pasted on, lower the pull toward the original photo. If it starts changing the object, raise it.

Where it breaks

The hardware bar is high. The author measured about 11.5 GB of graphics memory at peak on a small test image, and the pack needs an NVIDIA card with the CUDA 12 toolkit installed. First run downloads about 7 GB of model files. It was verified on one Windows 11 machine with an RTX 5090. The upstream research code was tested only on Linux. If you are on a Mac or an 8 GB card, this is not your workflow yet.

The back of the object is invented. One photo shows one side. Turn the object around and you are looking at the model's guess about the parts the camera never saw. Small turns stay believable. A half rotation usually will not.

One object per run. The wrapper rebuilds a single subject. Scenes with several objects to rearrange need several passes, and the original model's multi-object mode is not implemented here.

The 3D comes back without a proper texture. Color is stored on the shape's surface points rather than as an image wrapped around it. For the scene templates this is fine, because the blend pass repaints the look. If you want to take the object into Blender as a finished asset, you need extra steps the README points to.

It is new, and it has a lot of moving parts. The pack was created on November 22 and the author calls it experimental and a work in progress. The scene templates depend on seven other node packs. When one of them updates, something may break.

Check the licenses before client work. The wrapper is GPL-3.0 and CUPID is MIT, but the removal and blend passes use other models with their own terms. Read each model card before you sell the result.

The camera was always the missing piece

For most of the last two years, AI photo editing has asked the image model to be a painter and a surveyor at the same time. It is a gifted painter and a mediocre surveyor. Cupid3D hands the survey to a model built for it, and lets the painter paint.

That split is going to show up everywhere. The same week, another free project used a rough 3D render to tell an image model which angle to redraw a photo from, and a third let you orbit a camera around a single portrait. If you composite for a living, this is familiar ground: match the camera, then match the light. If your graphics card can carry it, take one photo you already know well, move one object across the frame, and look hard at where it touches the floor.


From the briefing