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

Problem when running demo.ipynb (blank result) #2

Closed
Sutongtong233 opened this issue Feb 26, 2024 · 7 comments
Closed

Problem when running demo.ipynb (blank result) #2

Sutongtong233 opened this issue Feb 26, 2024 · 7 comments

Comments

@Sutongtong233
Copy link

Hi, I am interested in this great job! Here I have a problem when running demo. I use LLaMA-1b-hf and vqgan-f16-8192-laion(As shown in data_preparition). The generated_img results:
image

(I find generated_img.max() = 0.07. Is there any mistake?
Thanks

@ggjy
Copy link
Owner

ggjy commented Feb 26, 2024

Hi, I reran the demo.ipynb and it works in my environment. I've uploaded the corresponding vqgan model here, so maybe you can try out this one?

@Sutongtong233
Copy link
Author

Thanks! but I still face the problem. Here are some intermediate results:

  • after vqgan encode
image image
  • after model.generate
image

@ggjy
Copy link
Owner

ggjy commented Feb 27, 2024

Here are some intermediate results from my environment:
image
image
image

What about your input_ids? It's strange that the final output sequences seem different between our results.

@Sutongtong233
Copy link
Author

Sutongtong233 commented Feb 27, 2024

The input_ids are the same.
image
I print outputs.sequences[:, -256:], since the beginning of outputs.sequences are input_ids:
image
Are you using the LLaMA-1b of LLaMA-300M?

@ggjy
Copy link
Owner

ggjy commented Feb 27, 2024

I use the LLaMA-1b, and the transformers version is 4.38.1. Maybe there is something wrong when loading the ckpt?

@Sutongtong233
Copy link
Author

Sutongtong233 commented Feb 27, 2024

When I change to other images, the results is correct. Strange :< Thank you very much~
image

@Fangyi-Chen
Copy link

Fangyi-Chen commented Mar 1, 2024

Hi,

Thank you for your great work. I am facing the same problem . Using the seg_1.png gives black and my inputid / output.sequence is the same as [Sutongtong233]'s. When I screenshot the seg_1.png, it works reasonably. Other images under the data folder are good as well.

I am using pytorch 1.13.1 and transformer 4.38.1. Could you give any advice to debug this? Or any insight that could cause this strange issue? Thank you and looking forward to your reply.

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

3 participants