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 logging into HuggingFace, and changing output dimensions doesn't work? #1

Open
lkewis opened this issue Aug 30, 2022 · 3 comments

Comments

@lkewis
Copy link

lkewis commented Aug 30, 2022

Hey thankyou for this amazing script. I had a problem using 'huggingface-cli login' which wouldn't let me paste my token, but I got around it by changing line 154 of generate_images.py to add my token.

Everything works great but I can't seem to change the output dimensions, it either continues doing 512,512 or has an error about mismatch? (sorry I'm very new to Python scripting, but your video was really helpful)

@lkewis
Copy link
Author

lkewis commented Aug 30, 2022

Ok the mismatch was because width and height variables weren't being passed into the pipe, which needs to be modified to (GENERATE_DIVERSE)

with autocast(device): image = pipe( # Diffuse magic. prompt, height=height, width=width, num_inference_steps=num_inference_steps, latents=init_latent, guidance_scale=guidance_scale )["sample"][0]

@erickuhn19
Copy link

I was also not able to paste my token, what did you change on line 154?

@lkewis
Copy link
Author

lkewis commented Sep 5, 2022

I was also not able to paste my token, what did you change on line 154?

Hey, on line 154 mine reads:
use_auth_token="randomtokenstringhere"

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