Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jojokic opened this issue Feb 20, 2024 · 7 comments
Open

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

jojokic opened this issue Feb 20, 2024 · 7 comments

Comments

@jojokic
Copy link

jojokic commented Feb 20, 2024

│ ❱ 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

@chenpaopao
Copy link

chenpaopao commented Feb 23, 2024

          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)

@jojokic
Copy link
Author

jojokic commented Feb 23, 2024

          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?

@iYuqinL
Copy link

iYuqinL commented Mar 28, 2024

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

@ironjr
Copy link
Member

ironjr commented Mar 28, 2024 via email

@jojokic
Copy link
Author

jojokic commented Mar 28, 2024

@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.

@ironjr
Copy link
Member

ironjr commented Mar 28, 2024 via email

@iYuqinL
Copy link

iYuqinL commented Mar 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants