141 Commits

Author SHA1 Message Date
cmdr2
c72b287c82 Show a more helpful error message in the logs when the system runs out of RAM 2023-06-05 15:22:37 +05:30
cmdr2
a10aa92634 Fix a bug where the realesrgan model would get unloaded after the first request in a batch while using Codeformer with upscaling of faces 2023-06-05 15:08:57 +05:30
cmdr2
dd95df8f02 Refactor the default model download code, remove check_models.py, don't check in legacy paths since that's already migrated during initialization; Download CodeFormer's model only when it's used for the first time 2023-06-02 16:34:29 +05:30
cmdr2
0860e35d17 sdkit 1.0.101 - CodeFormer as an option to improve faces 2023-06-01 16:50:01 +05:30
cmdr2
3e90eafafb
Merge branch 'cf' into beta 2023-06-01 15:27:37 +05:30
Olivia Godone-Maresca
7830ec7ca2 Fix SyntaxWarning on startup
Fixes
```
/ssd2/easydiffusion/ui/easydiffusion/utils/save_utils.py:222: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if task_data.use_upscale is not "latent_upscaler" and "latent_upscaler_steps" in metadata:
  ```
2023-05-28 14:39:36 -04:00
Olivia Godone-Maresca
69d937e0b1 Add tiling and latent upscaler steps to metadata
Also fix txt metadata labels when also embedding metadata
2023-05-26 19:51:30 -04:00
JeLuF
9dfa300083 Add seamless tiling support 2023-05-25 00:16:14 +02:00
cmdr2
8554b0eab2 Better reporting of model load errors - sends the report to the browser UI during the next image rendering task 2023-05-24 16:02:53 +05:30
cmdr2
d3334f9dfa Merge branch 'beta' of github.com:cmdr2/stable-diffusion-ui into beta 2023-05-23 16:55:52 +05:30
cmdr2
2bab4341a3 Add 'Latent Upscaler' as an option in the upscaling dropdown 2023-05-23 16:53:53 +05:30
JeLuF
0127714929 Add 'ED is ready, go to localhost:9000' msg to log
Sometimes the browser window does not open (esp. on Linux and Mac).
Show a prominent message to the log so that users don't wait for hours.
2023-05-22 21:19:31 +02:00
patriceac
a5a1d33589
Fix face restoration model selection 2023-05-21 18:32:48 -07:00
Olivia Godone-Maresca
a6dbdf664b Add Clip Skip to metadata files
Also, force the properties to be in a consistent order so that, for example, LoRA strength will always be the line below LoRA model. I've rearranged the properties so that they are saved in the same order that the properties are laid out in the UI
2023-05-19 19:05:32 -04:00
cmdr2
da27fc7782
Merge pull request #1278 from JeLuF/clipskip
Add Clip Skip support
2023-05-19 18:19:45 +05:30
cmdr2
11e1436e2e 2 GB cards aren't exactly 2 GB 2023-05-19 17:56:20 +05:30
cmdr2
83557d4b3c Merge branch 'beta' of github.com:cmdr2/stable-diffusion-ui into beta 2023-05-19 17:29:20 +05:30
cmdr2
53b23756a4 formatting 2023-05-19 17:26:04 +05:30
cmdr2
063d14d2ac Allow GPUs with less than 2 GB, instead of restricting to 3 GB 2023-05-19 17:25:53 +05:30
JeLuF
00603ce124 Add Clip Skip support 2023-05-18 13:55:45 +02:00
patriceac
a25364732b Support for CodeFormer
Depends on https://github.com/easydiffusion/sdkit/pull/34.
2023-05-17 02:04:20 -07:00
JeLuF
366bc72759
Add GTX1630 to list of FP32 GPUs
https://discord.com/channels/1014774730907209781/1014774732018683926/1107677076233912340
2023-05-15 17:01:21 +02:00
cmdr2
01c7712961 Increase task timeout from 15 mins to 30 mins 2023-05-03 18:47:09 +05:30
cmdr2
75f0780bd1 sdkit 1.0.84 - VRAM optimizations for the diffusers version 2023-05-03 16:12:11 +05:30
cmdr2
eaba64a64a Log device usage stats during thread startup 2023-05-02 18:26:29 +05:30
JeLuF
ae52d9ef22
Disable "TypedStorage is deprecated" user warnings
These warnings clog up the logfiles and worry users.
2023-04-28 22:52:21 +02:00
cmdr2
d18cefc519 Formatting 2023-04-28 16:38:55 +05:30
cmdr2
400cb218ba Don't override net config if env variables don't exist 2023-04-27 15:58:06 +05:30
cmdr2
6a6ea5009a
Merge pull request #1182 from JeLuF/get_config
Don't write config.bat and config.sh any more
2023-04-26 16:35:52 +05:30
cmdr2
f7235cf82c Keep the task alive during step callbacks. Thanks Madrang 2023-04-21 20:59:14 +05:30
JeLuF
5eec05c0c4 Don't write config.bat and config.sh any more 2023-04-21 00:09:27 +02:00
cmdr2
7fc2ed28b1
Merge pull request #1166 from JeLuF/not_yet
Don't save model_path if initial load fails
2023-04-18 16:34:12 +05:30
JeLuF
893b6d985c
Add "Start scanning..." to getModels()
Provide a hint to users what ED is currently using. 
Use case: User has built an infinite loop using symlinks, ED model scan will never finish.

https://discord.com/channels/1014774730907209781/1097764777553580092
2023-04-18 09:12:26 +02:00
JeLuF
1ba3a139d9 Don't save model_path if initial load fails
Fixes #882

If the load of the model fails during the initialization, an attempt to render an
image using the same model fails because ED doesn't notice that the model has to
be loaded. This PR ensures that the model is being reloaded if the initial load
fails. If the second load attempt fails as well, the user will get a more helpful
error message than 'model not loaded yet'.
2023-04-16 21:59:29 +02:00
JeLuF
4192f87d6b
Don't scan safetensors files in load_default_models() (#1155)
* Don't scan safetensors when loading them

* Don't scan safetensors files

* Update model_manager.py

---------

Co-authored-by: cmdr2 <shashank.shekhar.global@gmail.com>
2023-04-14 17:11:35 +05:30
cmdr2
8ba0b34853 Log the stack trace when the model fails to load 2023-04-11 15:13:41 +05:30
cmdr2
b07046f6a2 gc between rendering images and applying filters 2023-04-10 16:31:24 +05:30
JeLuF
c438cd47b9 fix filename_format for 'show only upscaled'
https://discord.com/channels/1014774730907209781/1093703857516843019
2023-04-07 09:08:46 +02:00
cmdr2
0778078350
Merge pull request #1087 from ogmaresca/custom-folder-filename-formats-2
Allow loading/saving app.config from plugins and support custom folder/filename formats from app.config
2023-04-06 16:19:59 +05:30
Olivia Godone-Maresca
07b467e4bc Add LoRA Strength to metadata files 2023-04-01 11:42:20 -04:00
cmdr2
fad36d9c08 Don't show or allow test_diffusers if not using the beta branch. This allows allow features to release to the main branch, while restricting diffusers to the beta branch 2023-04-01 16:42:06 +05:30
Olivia Godone-Maresca
fe635db3ab Remove log.infos 2023-03-29 21:02:35 -04:00
Olivia Godone-Maresca
7e53eb658c Allow loading/saving app.config from plugins and support custom folder/filename formats from app.config 2023-03-29 20:56:24 -04:00
Olivia Godone-Maresca
e5a47ac964
Allow both embedding metadata and saving metadata files (#1058)
* Allow both embedding metadata and saving metadata files

* Use the correct variable

* Descriptive variable

---------

Co-authored-by: cmdr2 <shashank.shekhar.global@gmail.com>
2023-03-29 09:19:05 +05:30
Olivia Godone-Maresca
e42ddbd652 Allow saving lossless WEBPs 2023-03-24 22:46:03 -04:00
cmdr2
6ef72f03ff
Merge pull request #1048 from JeLuF/base36
🔥Hotfix: Avoid name clashes for autosave files
2023-03-23 09:48:40 +05:30
JeLuF
872c09c220 Avoid name clashes for autosave files
The old code had a 1.6% chance of name collisions (AAb/345 and AAB3/45 would generate the same filename) on Linux and 39% on Windows (base64 is case sensitive, Windows isn't).

This code uses base36 (0-9, A-Z) to avoid case issues. To avoid collisions on fast computers or multi GPU computers, the time resolution of the timestamp is changed from seconds to 0.1ms, and the image number isn't added to the timestamp but appended as an extra character. Due to the limitation of the timestamps to 7 characters, the timecode will repeat every 90 days. This shouldn't be an issue since most sessions will not last this long.
2023-03-22 23:06:03 +01:00
cmdr2
8efde22580 typo 2023-03-22 16:44:41 +05:30
Olivia Godone-Maresca
fbaa11f08d Add LORA model to metadata files 2023-03-21 18:09:59 -04:00
cmdr2
f8bc50871a sdkit 1.0.49; Use a test_diffusers flag to gate access to the new renderer and LoRA model selection 2023-03-21 17:59:20 +05:30