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

why demo can't generate pic or video? #87

Open
lynshwoo2022 opened this issue Mar 22, 2024 · 2 comments
Open

why demo can't generate pic or video? #87

lynshwoo2022 opened this issue Mar 22, 2024 · 2 comments

Comments

@lynshwoo2022
Copy link

image

@lynshwoo2022
Copy link
Author

lynshwoo2022 commented Mar 22, 2024

problem solved by:

  1. change: stage_configuration = load_model_config(args['stage'], args['mode']) to stage_configuration = load_model_config(args['stage'], args['model'])
  2. change 3 freeze config to True in config/stage yaml you use.
  3. change all_gen_img_idx = [i for i, x in enumerate(generated_ids[0, :] == self.args['all_gen_img_idx '][0]) if x][ :inputs['max_num_imgs']] to all_gen_img_idx = [i for i, x in enumerate(generated_ids[0, :] == self.args['gen_img_token_idx'][0]) if x][ :inputs['max_num_imgs']]

@Aloukik21
Copy link

Hi, I tried your steps. I couldn't solve this problem.. can you please explain more?

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

2 participants