SwarmUI icon indicating copy to clipboard operation
SwarmUI copied to clipboard

Configurable diffusion_models folder path

Open GodEmperor785 opened this issue 5 months ago • 0 comments

Feature Idea

A follow up to #227 - as requested, new issue is made.

"diffusion_models" is still not configurable and trying to load Flux model from anywhere else than "diffusion_models" results in errors (Even if metadata says that model is Flux) - I tried with loading a flux model from stable diffusion directory (directory with SD/SDXL models) but it failed, same model file moved to "diffusion_models" loaded fine (tried both safetensors fp16 version and Q8 GGUF). I can share exact errors in SwarmUI if needed. This complicates sharing very big Flux model files between UIs - for example in webui-forge loading Flux models works from the same directory as SD/SDXL models, so they must have handled model type detection somehow - loading will only fail if you don't specify text encoders or VAE. Currently to share Flux models between SwarmUI and others needs workarounds like copying files or making links.

See also reply from @The-Istar made in #227 about current behavior:

This is not really a good experience for a normal user and certainly not noob friendly. The current setup of having multiple folders, for what for most users is basically the same thing, is pretty confusing. So I agree a better solution is needed. But I am not sure just making the path configurable is the best solution. Having a setting in the meta data (if it can not be detected automatically for some reason) would indeed already be an improvement. At least then you can store all the diffusion models in the same folder.

Path to stable diffusion models is already configurable so sharing a directory with models would be easy if Flux models could be loaded from there.

Would it be possible to simplify Flux model loading so they could be loaded from directories containing normal SD/SDXL models (even if they would need model type to be set in metadata)?

Other

No response

GodEmperor785 avatar Sep 24 '24 16:09 GodEmperor785