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.48k stars 400 forks source link

[Issue]: Config file doesn't save in the proper json format. #2040

Closed xarathos517 closed 1 year ago

xarathos517 commented 1 year ago

Issue Description

I'm trying to work out if this is an issue with my configuration because I've installed the app through StabilityMatrix or what else is going on. But here's the long and the short of what's happening. When I save a setting in SDNext, watching the config file, all the special characters end up being escaped. So instead of being proper json format, it ends up looking something like this: config.txt

This also occurs anytime I hit 'Apply Settings' whether I've made changes or not, and again when I hit something like 'Apply and Restart Server'

Then when I relaunch the server later, it gets wiped entirely and replaced with a properly sanitized default json file and all my custom settings are gone again. So any extra UI toggles I add are gone again, and I can't resume with my last used checkpoint either. Effectively the only way I can launch the server with my custom settings is by manually editing the config file before launch to ensure it's formatted correctly.

Version Platform Description

Python 3.10.11 on Windows
Version: 1666ee68 Sat Aug 19 19:44:58 2023 +0300
nVidia CUDA toolkit on RTX 4070 Mozilla Firefox

Relevant log output

No response

Acknowledgements

vladmandic commented 1 year ago

Duplicate. Also already fixed in dev.