luciddreamer-cvlab/LucidDreamer

my traindata["frames"] is always [] , help me

Opened this issue · 7 comments

│ ❱ 376 │ W, H = traindata["frames"][0]["image"].size │
│ 377 │ # W, H = traindata["W"], traindata["H"] │
│ 378 │ │
│ 379 │ for camkey in presetdata: │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
IndexError: list index out of range

          rgb_cond = Image.open(args.image)

add: rgb_cond=rgb_cond.resize((512,512))

If the aspect ratio of the image is too large, some errors will occur in luciddreamer.py(334 -354)

          rgb_cond = Image.open(args.image)

添加: rgb_cond=rgb_cond.resize((512,512))

如果图像的纵横比过大,luciddreamer.py(334 -354)中会出现一些错误

thank you! thank you! it works!

and why my pic is 1280720,but the result looks like 512512, Can this result be changed?

I also encountered this issue,
but adding 'rgb_cond = rgb_cond.resize((512, 512))' not works.
I save the "dreaming" images to disk, and they look normal.

Any help?

0001
0002
0003
0004
0005
0006

@iYuqinL 没看懂,你看起来已经生成出结果了,你有生成出obj文件吗?它的obj文件需要特殊的网页才能看,如果没有obj我就不知道了。
I don't understand. You seem to have generated the result. Did you generate the obj file? Its obj file requires a special web page to look at, and without obj I wouldn't know.

I Found this is caused by some bugs, and solve them in #52