-
Notifications
You must be signed in to change notification settings - Fork 12
Api call #6
Comments
Also interested in this |
I found a way..you have to add something like this: payload["alwayson_scripts"]= { |
I did this, but not sure how I know if it's using the refiner or not. I didn't get an error, but at the same time didn't see any indication that it was used. payload = { INFO:sd_dynamic_prompts.dynamic_prompting:Prompt matrix will create 10 images in a total of 1 batches. whereas when I run it in the webui, the first thing its says is its loading the refiner 100%|██████████████████████████████████████████████████████████████████████████████████| 35/35 [00:22<00:00, 1.52it/s] |
It would be great if the refiner added something to the metadata… been meaning to put in an enhancement suggestion in Refiner repo (probably one there already) |
-You can check it if you use the same seed+see if the image look different |
Yea best I can tell its not doing anything. No pause, the picture seems to be the same. But yes, I notice the pause in when running from the GUI so I know what your talking about. |
So I did make an enhancement suggestion in Refiner repo, to add metadata to the output images (model + steps). they did implement this yesterday, so after you update the extension, you should be able to easily tell if the refiner was used or not by just looking at the metadata. |
You're close. I was able to figure out what you were missing, and also another thing that could be preventing it from working.
With all that said here is what is working for me
As with using it in the A1111 UI, the cmd window will indeed show "loading Refiner" on first gen, and you will be able to see the metadata in the image confirming this. |
Your code snipet reads “refine_percent” where it should read “20” from your screenshot, the hash is visible in the UI “[8d0ce6c016]”. If you never loaded the model, it wouldn’t be displayed there and actually wouldn’t load it via api |
refine_percent is just a variable that I have set to 20. I can try hard coding it but don't expect any differance. |
Should "refiner" show up when I do: http://127.0.0.1:7860/sdapi/v1/options I don't see it if so. |
Ugg. Ok, figured it out. I looked at your example before and didn't think I needed 'alwayson_scripts': { wrapper. Once I added that it worked. If you don't wrap it in that and just have it directly as was my sample code, it doesn't work. All good now. |
How can i use the refiner within an api call. I tried that but did non work?
payload["alwayson_scripts"]= {
"refiner": {
'args': [
{
'enable': True,
'model_name': item["StableDiffusionParams"]["Redefiner"]["Model"],
'steps': item["StableDiffusionParams"]["Redefiner"]["Steps"]
}
]
}
}
The text was updated successfully, but these errors were encountered: