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

img2img question, guidance scale and input strength #65

Open
WSINTRA opened this issue Feb 1, 2023 · 1 comment
Open

img2img question, guidance scale and input strength #65

WSINTRA opened this issue Feb 1, 2023 · 1 comment

Comments

@WSINTRA
Copy link

WSINTRA commented Feb 1, 2023

In the diffusionBee UI the guidance scale is between 0-20 and the input strength is 10-90
What does that map to in the following.. I want to reproduce the output I get in diffusionBee
def generate(
self,
prompt,
negative_prompt=None,
batch_size=1,
num_steps=25,
unconditional_guidance_scale=7.5,
temperature=1,
seed=None,
input_image=None,
input_mask=None,
input_image_strength=0.5,
):

@soten355
Copy link

The guidance scale is any float number (for example 7.5, 10, 11.357) between 0 and 20. You'll plug that into the unconditional_guidance_scale variable

The input strength for an input image is any float number between 0 and 1. If, in DiffusionBee, you used an input strength of 75, then that would translate into input_image_strength = 0.75

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