This is an unofficial porting of Zero123 https://zero123.cs.columbia.edu/ for ComfyUI, Zero123 is a framework for changing the camera viewpoint of an object given just a single RGB image.
This porting enable you generate 3D rotated image in ComfyUI.
After install this node, download the sample workflow to start trying.
If you have any questions or suggestions, please don't hesitate to leave them in the issue tracker.
Zero123: Image Rotate in 3D
Zero123: Image Preprocess
image
must square
(width=height), otherwise, this node will automatically trans it forcely.image
should be an object
with white background, which means you need preprocess of image (use `Zero123: Image Preprocess).image
only support 256x256
(fixed) currently, you can upscale it later.Zero123: Image Rotate in 3D
Input and Outputsquare
image, and an object
with white backgroup
.x
axis, turn up or down
<0.0
: turn up>0.0
: turn downy
axis, turn left or right
<0.0
: turn left>0.0
: turn rightz
axis, far away
or near
;
>1.0
: means bigger, or near
;0<1<1.0
: means smaller, or far away
1.0
: mean no change75
is the default value by original zero123
repo, do not smaller then 75
.fp16
. enable it can speed up and save GPU mem.zero123-xl
is the lates one, and stable-zero123
claim to be the best, but licences required for commercially use.Zero123: Image Preprocess
Input and Outputimage
.mask
of the image
.percentage(%)
margin of output image. white background
, and square
version input image
with subject in center.search zero123
and select this repo, install it.
search zero123
and install the model you like, such as zero123-xl.ckpt
and stable-zero123
(licences required for commercially).
cd ComfyUI/custom_nodes
git clone https://github.com/kealiu/ComfyUI-Zero123-Porting.git
cd ComfyUI-Zero123-Porting
pip install -r requirements.txt
And then, restart ComfyUI
, and refresh your browser.
check out model-list.json
for modules download URL, their should be place under ComfyUI/models/checkpoints/zero123/
zero123
by zero123, the original one. This repo porting from this one.stable-zero123
by StableAI, which train models with more data and claim to have better output.zero123++
by Sudo AI, which opensource a model that always gen image with fix angles.Zero-1-to-3: Zero-shot One Image to 3D Object, which be able to learn control mechanisms that manipulate the camera viewpoint in large-scale diffusion models
@misc{liu2023zero1to3,
title={Zero-1-to-3: Zero-shot One Image to 3D Object},
author={Ruoshi Liu and Rundi Wu and Basile Van Hoorick and Pavel Tokmakov and Sergey Zakharov and Carl Vondrick},
year={2023},
eprint={2303.11328},
archivePrefix={arXiv},
primaryClass={cs.CV}
}