stable-diffusion-webui-forge icon indicating copy to clipboard operation
stable-diffusion-webui-forge copied to clipboard

Weird behavior when setting VAE using Option API

Open mith-mmk opened this issue 1 year ago • 2 comments

Pattern 1.

  1. curl -X POST http://localhost:7860/sdapi/v1/options -d '{"forge_additional_modules": ["/path/to/sdxl_vae.safetensors"]} ' -H "Content-Type: application/json"
  2. curl http://localhost:7860/sdapi/v1/options
  3. result -> sd_model_checkpoint is null (model unloaded?)
  4. run txt2img -> result is using another model (about flux.1)

Pattern 2.

  1. curl -X POST http://nero:7860/sdapi/v1/options -d '{"sd_vae": "sdxl_vae.safetensors"}' -H "Content-Type: application/json"
  2. curl http://localhost:7860/sdapi/v1/options
  3. result -> sd_model_checkpoint is null (model unloaded?)
  4. run txt2img -> result is using another model (about flux.1)

mith-mmk avatar Sep 26 '24 06:09 mith-mmk

probably due to my update yesterday, try again now

DenOfEquity avatar Sep 26 '24 08:09 DenOfEquity

commit 22e2bc3, pattern 1.("forge_additional_modules") works, but pattern 2.("sd_vae") no longer works.

Also, it seems that the model will be unloaded if sd_model_checkpoint is not specified at the same time.

It would be nice to have an API that can identify the version since we see other incompatible API changes.

mith-mmk avatar Sep 29 '24 03:09 mith-mmk