Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
brknsoul opened this issue Jul 29, 2024 · 5 comments
Open
2 tasks done

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

brknsoul opened this issue Jul 29, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@brknsoul
Copy link
Contributor

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

  • I have read the above and searched for existing issues
  • I confirm that this is classified correctly and its not an extension issue
@vladmandic
Copy link
Owner

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
Copy link
Contributor Author

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
Copy link
Owner

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

@bmhRi3kXAFSw
Copy link

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
Copy link
Owner

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.

@vladmandic vladmandic changed the title [Issue]: Model .yaml file isn't being read. [Feature]: Auto-convert old YAML model config to JSON Aug 28, 2024
@vladmandic vladmandic added the enhancement New feature or request label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants