-
Beta Was this translation helpful? Give feedback.
Answered by
Piprian
Jun 19, 2023
Replies: 1 comment 3 replies
-
|
Your images lack metadata, so we can't see what model it's using. Here's how to set the model with the API. option_payload = {
"sd_model_checkpoint": "Anything-V3.0-pruned.ckpt [2700c435]",
}
response = requests.post(url="http://127.0.0.1:7860/sdapi/v1/options", json=option_payload) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment






Thanks for the help!
That's weird. I didn't disable metadata. I'm guessing something about the way my bot converts the image strips it accidently?
This is how I tried to set the model:
I guess either that isn't right or it's not the model because it didn't fix the problem.
Sorry. I really don't know what I am doing...
Edit: I think it's probably not using the wrong model because it doesn't load a different model when I use the API right after using the webui.
Edit 2: I figured out how to print the "parameters" from the API response. It told me that it was using the correct model but I misspelled "negative_prompt" in my initial payload and it was generating without a negative prompt.
Afte…