liuyuan-pal / SyncDreamer

[ICLR 2024 Spotlight] SyncDreamer: Generating Multiview-consistent Images from a Single-view Image
https://liuyuan-pal.github.io/SyncDreamer/
MIT License
906 stars 39 forks source link

Really strange results on a single teddy bear image. #35

Closed Sharpiless closed 1 year ago

Sharpiless commented 1 year ago

teddy

run:

python generate.py --ckpt ckpt/syncdreamer-pretrain.ckpt \
                   --input testset/teddy.png \
                   --output output/teddy2 \
                   --sample_num 4 \
                   --cfg_scale 0.0 \
                   --elevation 30 \
                   --crop_size 200

results:

0 1 2 3

run:

python generate.py --ckpt ckpt/syncdreamer-pretrain.ckpt \
                   --input testset/teddy.png \
                   --output output/teddy2 \
                   --sample_num 4 \
                   --cfg_scale 0.0 \
                   --elevation 0 \
                   --crop_size 200

results: 0 1 2 3

Sharpiless commented 1 year ago

Only work well on the previded demo: 0

Any suggestions would be appreciated.

liuyuan-pal commented 1 year ago

Hi, you may check if the segmentation of the input image is correct or not.

Sharpiless commented 1 year ago

Hi, you may check if the segmentation of the input image is correct or not.

This is the segmented rgb-a image. The mask seems to be correct.

liuyuan-pal commented 1 year ago

Hi, I've tried the image on the online demo https://huggingface.co/spaces/liuyuan-pal/SyncDreamer image It seems to be OK.

liuyuan-pal commented 1 year ago

oh, you need to use cfg scale at 1.5 or 2.0. and the image should have an elevstion of 0 degree.

Sharpiless commented 1 year ago

Thanks a lot!

Sharpiless commented 1 year ago

Another trivia question: Are you willing to share the code that generates the "camera-16.pkl" file? Thanks!

Sharpiless commented 1 year ago

Another trivia question: Are you willing to share the code that generates the "camera-16.pkl" file? Thanks!

fixed by using blender 2.90 and https://github.com/liuyuan-pal/SyncDreamer/blob/main/blender_script.py

liuyuan-pal commented 1 year ago

Hi, it's this line https://github.com/liuyuan-pal/SyncDreamer/blob/1fa5ecf118cbda2096978d27dd602d4d027e065d/blender_script.py#L279