stable-diffusion-webui-forge
stable-diffusion-webui-forge copied to clipboard
Weird behavior when setting VAE using Option API
Pattern 1.
- curl -X POST http://localhost:7860/sdapi/v1/options -d '{"forge_additional_modules": ["/path/to/sdxl_vae.safetensors"]} ' -H "Content-Type: application/json"
- curl http://localhost:7860/sdapi/v1/options
- result -> sd_model_checkpoint is null (model unloaded?)
- run txt2img -> result is using another model (about flux.1)
Pattern 2.
- curl -X POST http://nero:7860/sdapi/v1/options -d '{"sd_vae": "sdxl_vae.safetensors"}' -H "Content-Type: application/json"
- curl http://localhost:7860/sdapi/v1/options
- result -> sd_model_checkpoint is null (model unloaded?)
- run txt2img -> result is using another model (about flux.1)
probably due to my update yesterday, try again now
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.