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

How to run a single prompt with several pictures on multiple GPUs? #149

Open
13918763630 opened this issue Jan 15, 2025 · 2 comments
Open

Comments

@13918763630
Copy link

I want to generate 10 images per prompt But seems out of memory and only use 1 GPU on my server.

image = pipe(
prompt=prompt_list[0],
guidance_scale=5.0,
pag_scale=2.0,
num_inference_steps=20,
num_images_per_prompt=10,
generator=torch.Generator(device="cuda").manual_seed(42),
)[0]

@FurkanGozukara
Copy link

you have to loop

that is what i added into my app

like for loop

num_images_per_prompt is actually batch size but i don't know why academic authors keep naming it as num_images_per_prompt

0001

@13918763630
Copy link
Author

you have to loop

that is what i added into my app

like for loop

num_images_per_prompt is actually batch size but i don't know why academic authors keep naming it as num_images_per_prompt

0001

Okay!Thank you so much!

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