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

Add a subset of txt2img options to pipeline #2

Merged
merged 2 commits into from
Aug 24, 2022

Conversation

fboulnois
Copy link
Owner

Add the following options for compatibility with txt2img.py and resolve #1 :

  • --prompt [PROMPT]: the prompt to render into an image
  • --n_samples [N_SAMPLES]: number of images to create (default 1)
  • --H [H]: image height in pixels (default 512)
  • --W [W]: image width in pixels (default 512)
  • --scale [SCALE]: unconditional guidance scale (default 7.5)
  • --seed [SEED]: RNG seed for repeatability (default is a random seed)
  • --ddim_steps [DDIM_STEPS]: number of sampling steps (default 50)

The following two changes have been made in comparison to txt2img.py:

  • by default, only 1 sample is generated (instead of 3)
  • by default, the seed is set to a totally random seed (instead of 42)

@fboulnois fboulnois merged commit b19d889 into main Aug 24, 2022
@fboulnois fboulnois deleted the fb-add-txt2img-options branch August 24, 2022 22:38
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

Successfully merging this pull request may close these issues.

Is it possible to pass txt2img.py script options?
1 participant