-
Notifications
You must be signed in to change notification settings - Fork 357
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
photoMaker issue with two or more generated images / SDXL sample steps #207
Comments
It looks like the cfg scale was too high for the first image. |
@Green-Sky yes, I used 7 and not the recommended 5. |
@Jonathhhan, could you provide the full command line with SDXL and Photomaker model files? In particular, did you use the file from https://huggingface.co/bssrdf/PhotoMaker? Here are what I can generate using Newton example images and your prompt with batch size 2.
They look fine. |
@bssrdf batch processing works fine. The issue appears, if I run txt2img for a second time without reloading the sd_ctx. The console output looks exactly the same for both runs:
|
Sorry, I mis-read your first message 😊 |
@bssrdf good point. Yes, it works without photomaker (if the path to the photomaker model is empty). It crashes, if the model is loaded and I leave "man (something) img, " away (which is a non related issue, but could be a nice way to trigger photomaker). |
@Jonathhhan, can you provide details about how to run 2 txt2img without reloading sd_ctx? Did you change the code in main.cpp? |
@bssrdf of course. I made an addon for Open Frameworks and do not use main.cpp at all (which complicates it a little): https://github.com/Jonathhhan/ofxStableDiffusion |
@Jonathhhan did you set the "isFreeParamsImmediatly" to false? |
@fszontagh Yes. |
@Jonathhhan, I have reproduced the issue and implemented a fix. Please wait for the merged PR or you can try the branch. Thanks for reporting the bug. |
@bssrdf thanks (I can confirm that it works now). |
Very nice feature, thanks. It seems that only the first generated image works after loading the
sd_ctx
(multiple images work with batch size > 1).I used the Newton images from the example and the prompt: "man img, man with futuristic clothes".
This is the first image:

And this is the second image:

And with SDXL-Turbo photoMaker seems to need less than the fixed sample 50 steps...
The text was updated successfully, but these errors were encountered: