-
Notifications
You must be signed in to change notification settings - Fork 339
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
Getting different results with the same seed #169
Comments
CLIP based results are non-deterministic, so you will get a slightly
different result. Also, the video hardware can also lead to differences
depending on your situation. In this case, CLIP is probably the cause of
this variation.
…On Fri, Jan 13, 2023, 7:55 PM Mikolaj Stawiski ***@***.***> wrote:
Hi,
I'm using python SDK and getting different results while using the same
seed between stability python SDK and Dreambooth UI.
I'm expecting python SDK to produce the same image for the same prompt +
seed + configuration, however the image comes out different.
Here's what I've tried:
Dreambooth:
[image: image]
<https://user-images.githubusercontent.com/26871388/212445253-e021d131-611f-4c42-b292-16d0c4079f6b.png>
Python SDK:
python -m stability_sdk --seed 1671915829 -n 1 --engine "stable-diffusion-v1-5" --steps 30 --cfg_scale 7 "lion head smiling"
[image: image]
<https://user-images.githubusercontent.com/26871388/212445316-f580c823-2e20-463a-9500-6dc6fe756f43.png>
Cheers
—
Reply to this email directly, view it on GitHub
<#169>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB72USNEWTM66NQQYGEYQHLWSIBSXANCNFSM6AAAAAAT27X434>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hey @sedetweiler, I used Dreambooth instead of running this on my own hardware. However, I can't information in the SDK about CLIP guidance, does this mean this feature is only available via web in Dreambooth? |
@stawiski you can use CLIP guidance with the SDK. Check out the StabilityInference generate method and it has parameters:
Just pass generation.GUIDANCE_PRESET_FAST_BLUE for example for the guidance_preset (you can leave the others at their defaults). As @sedetweiler mentioned though when using CLIP guidance you won't get back the same result each time even if you use the same seed. |
@pharmapsychotic you're right! Thanks! |
Hi,
I'm using python SDK and getting different results while using the same seed between stability python SDK and Dreambooth UI.
I'm expecting python SDK to produce the same image for the same prompt + seed + configuration, however the image comes out different.
Here's what I've tried:
Dreambooth:
Python SDK:
Cheers
The text was updated successfully, but these errors were encountered: