---
id: 18171
lang: en
title: "ComfyUI-Cupid3D node builds a 3D model and matching camera from a single photo in 11.5 GB of VRAM"
published_at: "2026-11-25 10:28:04"
source_name: "TG: @cgevent (Метаверсище и ИИще)"
source_url: "https://t.me/cgevent/17496"
canonical_url: "https://news.hamidun.com/en/news/18171"
categories: ["research", "creative"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# ComfyUI-Cupid3D node builds a 3D model and matching camera from a single photo in 11.5 GB of VRAM

> **Краткая суть (BLUF):** A generated 3D model looks out of place in a finished shot: it has its own camera angle, and the artist has to match the perspective by hand. The ComfyUI-Cupid3D node builds a 3D mesh of an object from a single photo and recovers the frame's camera, so the model sits on the background right away. Peak load is about 11.5 GB of video memory (VRAM) on a 719×719 image. For VFX, that means less manual alignment.  • Without a mask, rembg cuts out the background; the outputs are a mesh and camera_info • The first run downloads about 7 GB of weights; CUDA 12.x is required • No flash-attn, xformers, kaolin, nvdiffrast or pytorch3d needed

Imagine you have generated a 3D model of a vase from a photo and want to place it in a finished shot. The model turns out fine, but it has its own camera angle, its own focal length and its own perspective. In the shot it looks foreign, and you have to rotate, scale and move it by hand. The ComfyUI-Cupid3D node (ComfyUI is a popular node-based graphical editor for neural network pipelines) solves exactly this: from a single photo, it builds a 3D mesh of the object and recovers a camera that matches the source frame. It runs on a GPU with about 11.5 GB of video memory (VRAM) to spare for a 719×719-pixel input image. The node was covered by the Telegram channel "Metaversishche i IIshche".

## What the node does and how it differs from ordinary generators

It is a ComfyUI wrapper around the CUPID research project. The Cupid3D Reconstruct node takes an image and an optional mask. If you don't supply a mask, rembg cuts out the background automatically. There are two outputs: mesh and camera_info.

The camera is passed to Preview3D, Load3D or NKD Preview 3D in the original coordinates, with no padding or reframing. In practice, this means the reconstructed object aligns immediately on top of the backplate, the original background plate of the shot. A typical Image-to-3D generator returns only the shape, and matching it to the shot is left to the artist. Here the camera is already computed for the same image, and hookup to NKD VFX Tools, which the node was built for, works directly.

The geometry comes out with vertex colors (color stored in the vertices) and normals. If you need a full texture, you can do the UV unwrapping and baking with standard ComfyUI nodes: UnwrapMesh and BakeTextureFromViews.

## Settings and modes

Two sampling stages run inside. By default, steps is 25 and cfg_strength is 5.0. These are starting values, and you can change them to suit your shots.

There are two practical modes:

- crop_to_content. Before computation, the image is cropped to the object, and the camera is then recalculated back to the full frame. The network sees the object larger, but the match with the original image is not lost.
- place_on_ground. The object is placed on the floor, that is, on the y=0 plane. This is useful for scenes that need support under the object's feet.

## Requirements and pitfalls

The wrapper's main practical advantage is that it avoids heavy dependencies. You don't need flash-attn, xformers, kaolin, nvdiffrast or pytorch3d. Building these most often breaks the installation of 3D nodes, especially on Windows. Here, on both Windows and Linux, CUDA 12.x and spconv-cu126 are enough.

The resource requirements are as follows:

- about 7 GB of weights (hbb1/Cupid and DINOv2) are downloaded on the first run;
- peak consumption is about 11.5 GB of VRAM with a 719×719 input image.

That means cards with 12 GB of memory fit only just, and it most likely won't run on 8 GB. This is an inference from the stated peak, not a tested result.

The limitations also deserve a candid mention. The post has no comparisons of camera accuracy against other methods and no examples on difficult scenes: glass, fur, strong lens distortion. The post's author writes that the result "looks gorgeous", but that is an assessment based on a demo, not a measurement. Before building the node into a pipeline, test it on your own shots and check how closely the camera matches the real perspective.

## Who it's for

Primarily VFX artists and anyone assembling scenes in ComfyUI. It suits cases where you need to quickly place a 3D object into a finished shot: a prop, an architectural element, an item from a photo. If you previously avoided such nodes because of dependency hassles, the barrier to entry here is noticeably lower. The code is available in the ComfyUI-Cupid3D and original CUPID repositories, so you can check it and adapt the pipeline to your own tasks.

---
- **Первоисточник:** [TG: @cgevent (Метаверсище и ИИще)](https://t.me/cgevent/17496)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18171
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
