LagPixelLOL / cog-sdxl

Inference SDXL with cog including multiple models in 1 instance support.
MIT License
5 stars 4 forks source link

Default VAE Adjustments #2

Closed Succubyss closed 3 weeks ago

Succubyss commented 3 weeks ago
  1. You can set the default VAE name to a model name
    • It will appear at the top of the choices without duplicates thanks to list(dict.fromkeys(...))
  2. You can set the default VAE name to None and it will automatically become "default"
  3. get_pipeline uses None if vae has the same name as the model or if vae isn't in VAE_NAMES or MODEL_NAMES
    • The latter makes "default" turn into None
      • You can also set the default VAE name to values like "use default" or "Default" and it'll work the same as "default"
Succubyss commented 3 weeks ago

The reason I created this PR was because models such as Tofu recommend the use of an external VAE such as sdxl-vae-fp16-fix and I realized that making that the default VAE name actually makes the pipeline select None – because the vae would match the default vae name's value.