vladmandic / automatic

SD.Next: Advanced Implementation of Stable Diffusion and other Diffusion-based generative image models
https://github.com/vladmandic/automatic
GNU Affero General Public License v3.0
5.69k stars 421 forks source link

[Feature]: Auto-convert old YAML model config to JSON #3350

Open brknsoul opened 3 months ago

brknsoul commented 3 months ago

Issue Description

Using YiffyMix v42 with the yaml file installed along side, model prediction type isn't being changed, resulted in burned images.

Version Platform Description

Python version=3.10.11 platform=Windows bin="E:\sdmaster\venv\Scripts\python.exe"
venv="E:\sdmaster\venv"
Version: app=sd.next updated=2024-07-10 hash=2ec6e9ee branch=master
url=https://github.com/vladmandic/automatic/tree/master ui=main
Latest published version: a874b27e50a343ac55148756a0a80eafb3a7f87f 2024-07-24T20:16:33Z
Platform: arch=AMD64 cpu=Intel64 Family 6 Model 151 Stepping 5, GenuineIntel system=Windows
release=Windows-10-10.0.19045-SP0 python=3.10.11

Relevant log output

No response

Backend

Diffusers

UI

ModernUI

Branch

Master

Model

StableDiffusion 1.5

Acknowledgements

vladmandic commented 3 months ago

diffusers no long use yaml config files, they use json configuration instead.

If only thing needed is to switch to v-prediction mode, you can do that in settings.

brknsoul commented 3 months ago

If only thing needed is to switch to v-prediction mode, you can do that in settings.

yes, but most models use default. The yaml file is mean to auto-switch to v-predication for models that request it.

vladmandic commented 3 months ago

True - and thats why I didn't close the issue, only noted the background.

bmhRi3kXAFSw commented 3 months ago

Is there any tool in the UI itself to convert configs to json format? There is a python script floating around for converting safetensors to diffusers format, but I've never gotten it to work and load correctly.

vladmandic commented 3 months ago

not as far as I know, but shouldn't be too hard to write config converter - that's why I'm keeping this issue open - I'll take a look when I get back from my trip.