cmdr2
737a81570a
Merge pull request #975 from michaelgallacher/beta
...
Add support for MPS when running on Apple silicon
2023-03-08 10:00:10 +05:30
cmdr2
32d8f4d24b
sdkit 1.0.44 - mps support for mac
2023-03-08 09:57:45 +05:30
Michael Gallacher
11265c4034
Add support for MPS when running on Apple silicon
...
Changes:
* autodetect if MPS is available and the pytorch version has MPS support.
* change logic from "is the device CPU?" to "is the device not CUDA?".
* set PYTORCH_ENABLE_MPS_FALLBACK=1
Known issues:
* Some samplers (eg DDIM) will fail on MPS unless forced to CPU-only mode
2023-03-07 14:57:37 -07:00
cmdr2
5e2f31e3bf
Merge branch 'main' into beta
2023-03-02 10:15:51 +05:30
cmdr2
91c4b5865c
Pin the sdkit version during fresh installs
2023-02-21 10:40:17 +05:30
cmdr2
4f8424c544
sdkit 1.0.43 - unipc samplers on any device, not just cuda
2023-02-20 19:31:47 +05:30
cmdr2
9970e505de
sdkit version 1.0.42 - WEBP format support
2023-02-20 18:43:39 +05:30
cmdr2
facfed07fe
sdkit 1.0.41 - NSFW filter
2023-02-20 08:44:26 +05:30
cmdr2
b43f9fc4ee
Upgrade stable-diffusion-sdkit to 2.1.3, to use transformers 4.26.1
2023-02-18 14:30:37 +05:30
cmdr2
51b6a2fd2a
Pin the version of stable-diffusion-sdkit used, to avoid untested releases from getting used
2023-02-18 14:21:24 +05:30
cmdr2
5fffb82b16
Pin the version of stable-diffusion-sdkit used, to avoid untested releases from getting used
2023-02-18 14:17:28 +05:30
cmdr2
23f9bcb38b
Upgrade sdkit, moving the experimental parser into a plugin
2023-02-17 15:22:59 +05:30
cmdr2
7fc46f3672
sdkit 1.0.39 - unipc samplers
2023-02-17 09:36:10 +05:30
cmdr2
3d3994bbad
sdkit 1.0.38 - experimental parser, requires the prompt to start with an exclamation mark
2023-02-16 21:01:33 +05:30
cmdr2
744c6e4725
sdkit 1.0.37
2023-02-15 21:40:02 +05:30
Jens Frank
b89f689ea3
Fix functions.sh upgrade, change messages to Easy Diffusion
2023-02-14 09:00:02 +01:00
JeLuF
8465bc1bc9
Changes to make things work on MacOS/x64
2023-02-10 22:34:52 +01:00
cmdr2
ad249c4651
sdkit 1.0.36, for the image metadata embedding change
2023-02-10 18:09:23 +05:30
cmdr2
071a4d6f37
Use a fixed sdkit version, to avoid bumping to the latest sdkit version in the main branch
2023-02-10 18:05:17 +05:30
cmdr2
5f2fb19d71
Use a fixed sdkit version, to avoid bumping to the latest sdkit version in the main branch
2023-02-10 18:04:43 +05:30
JeLuF
4c8da67bb1
Use "python -m pip" instead of "pip" ( #835 )
...
* Use "python -m pip" instead of "pip"
https://discord.com/channels/1014774730907209781/1072423234676461619
* Use "python -m" instead of "pip" (Linux=
2023-02-07 15:39:02 +05:30
cmdr2
5c6c2303ba
Why does this script file keep losing exec permission?
2023-02-06 20:05:40 +05:30
cmdr2
a0a58bcfa8
Merge branch 'main' into beta
2023-02-06 19:42:24 +05:30
cmdr2
493526c478
If downgrading to 2.4 (from 2.5), move the default models back to the legacy location
2022-12-29 13:00:57 +05:30
cmdr2
451ab7e84c
Create the folders before moving to them
2022-12-28 19:40:08 +05:30
cmdr2
27d69e2ac3
Upgrade stable-diffusion-sdkit during startup
2022-12-28 19:19:53 +05:30
cmdr2
91274a4df8
Move the mandatory models to the models folder, instead of the legacy location inside the stable-diffusion folder
2022-12-28 19:08:39 +05:30
cmdr2
8cedeb349d
Changes to allow rolling back from the upcoming sdkit-based system
2022-12-26 23:04:45 +05:30
cmdr2
5e553dd958
Skip sdkit upgrade if in developer mode
2022-12-26 21:00:46 +05:30
cmdr2
32bab80508
Show sdkit version during startup
2022-12-25 16:38:37 +05:30
cmdr2
a4728190c0
Refactor server.py
2022-12-24 15:29:49 +05:30
cmdr2
e0b33a4feb
Install rich
2022-12-24 15:10:46 +05:30
cmdr2
8154a5709b
disable the legacy src and ldm folder (otherwise this prevents installing gfpgan and realesrgan)
2022-12-24 14:01:33 +05:30
cmdr2
3a6780bd50
Copy check_modules.py the first time an existing user runs the new version
2022-12-24 13:56:05 +05:30
cmdr2
6662dc66d5
Updated scripts to install sdkit into existing installations, while still working with new installations
2022-12-24 13:37:50 +05:30
cmdr2
6b943f88d1
Set uvicorn log level to 'error'
2022-12-12 15:18:30 +05:30
cmdr2
a2af811ad2
Disable uvicorn access logging in favor of cleaner server-side logging, we already get all that info; Print the request metadata
2022-12-09 22:47:34 +05:30
cmdr2
f1de0be679
Fix integration issues after the refactor
2022-12-09 17:50:33 +05:30
cmdr2
f4a6910ab4
Work-in-progress: refactored the end-to-end codebase. Missing: hypernetworks, turbo config, and SD 2. Not tested yet
2022-12-08 21:39:09 +05:30
cmdr2
a8151176d7
SD 2.1
2022-12-08 10:04:33 +05:30
Guillaume Mercier
cbe91251ac
Hypernetwork support ( #619 )
...
* Update README.md
* Update README.md
* Make on_sd_start.sh executable
* Merge pull request #542 from patriceac/patch-1
Fix restoration of model and VAE
* Merge pull request #541 from patriceac/patch-2
Fix restoration of parallel output setting
* Hypernetwork support
Adds support for hypernetworks. Hypernetworks are stored in /models/hypernetworks
* forgot to remove unused code
Co-authored-by: cmdr2 <secondary.cmdr2@gmail.com>
2022-12-07 11:24:16 +05:30
JeLuF
7861c57317
Safetensor support ( Fixes #599 ) ( #608 )
...
* safetensors support
Add support for checkpoints in safetensors format: https://github.com/huggingface/safetensors
This format shall be safer than pickle files
* pip install safetensors
2022-12-05 10:59:48 +05:30
cmdr2
cfd50231e1
Update on_sd_start.sh
2022-12-02 12:06:39 +05:30
cmdr2
54f7e6fcb8
SD2 fix - register buffer on the correct device
2022-11-30 16:05:06 +05:30
cmdr2
e37be0f954
Remove the need to use yield in the core loop for streaming results. This removes the need to patch the Stable Diffusion code, which can be fragile
2022-11-29 13:03:57 +05:30
cmdr2
13654cb8c0
Make on_sd_start.sh executable
2022-11-28 13:00:02 +05:30
cmdr2
642c114501
Working txt2img
2022-11-25 14:29:24 +05:30
cmdr2
02dd3e457d
Tweaks to load sd1 models in sd2 code, typos
2022-11-25 13:57:15 +05:30
cmdr2
ea7b28c9d5
Placeholder changes for SD 2.0 support, haven't tested yet
2022-11-25 12:17:44 +05:30
cmdr2
8a0ec95fe1
Merge branch 'main' into beta
2022-11-23 15:08:34 +05:30
cmdr2
5a9c8e1d87
Warn but don't fix whitespaces in a patch
2022-11-22 23:21:11 +05:30
cmdr2
daaa65dc0a
Warn but don't fix whitespaces in a patch
2022-11-22 23:20:24 +05:30
cmdr2
ab4e371524
Fix whitespace during git apply
2022-11-22 22:25:36 +05:30
cmdr2
5af84b8e90
Fix whitespace during git apply
2022-11-22 22:21:54 +05:30
cmdr2
d9b9f80a93
diffusion-kit upgrade
2022-11-22 17:39:51 +05:30
cmdr2
d429505b71
Update version of diffusion-kit
2022-11-22 17:14:20 +05:30
cmdr2
72ee708917
Remove the need to install realesrgan, gfpgan and certain specific package versions, since the new backend should install them directly
2022-11-22 16:50:10 +05:30
cmdr2
93bbfac29a
Change the backend to a custom fork of SD, since basujindal's fork is no longer under development. This fork is intended to include the common models/tools used like RealESRGAN, GFPGAN, Codeformer etc, and is meant to be a community-developed project
2022-11-22 16:38:39 +05:30
cmdr2
7fc9509d4d
Nowarn for fresh installation (git apply whitespace)
2022-11-21 17:20:09 +05:30
cmdr2
3bf5e11f94
Nowarn for fresh installation (git apply whitespace)
2022-11-21 17:19:55 +05:30
cmdr2
1cc27e524b
Don't warn about whitespace in the git patch application
2022-11-21 17:11:57 +05:30
cmdr2
8316a002da
Don't warn about whitespace in the git patch application
2022-11-21 17:11:38 +05:30
JeLuF
ed435d2b72
Add --whitespace=fix also on Linux
2022-11-20 23:09:27 +01:00
JeLuF
3e18f2f09c
Picklescan of model files
...
During getModel(), the server picklescans the model files for potential
malicious code in the pickled python objects. If a malicious file is
found, the web UI will show a big red error message, the makeImage
button will be disabled, and the user must remove the malicious file
and reload the UI page.
2022-11-16 22:34:02 +01:00
cmdr2
e99d54d1f6
Merge main
2022-11-16 11:19:10 +05:30
cmdr2
9bc7521de0
Make custom VAE an Image Setting, rather than a System Setting; Don't load a VAE into memory by default
2022-11-08 16:54:15 +05:30
JeLuF
a62ee7850b
Merge branch 'err-handle' of github.com:JeLuF/stable-diffusion-ui into err-handle
2022-11-05 23:31:19 +01:00
JeLuF
d3a90ccc0d
Windows error handling
...
- cd to the script location on start of 'Start Stable Diffusion UI.cmd'
- Bail out when downloading micromamba fails
- add env variables SD_UI_BIND_IP and SD_UI_BIND_PORT to configure uvicorn
2022-11-05 23:30:40 +01:00
JeLuF
46b13ee664
Merge branch 'cmdr2:main' into err-handle
2022-11-05 20:49:19 +01:00
JeLuF
f969bfa7be
More error handling, central error function
2022-11-05 18:59:59 +01:00
cmdr2
ea7006eec4
Set the PYTHONPATH before installation to prevent conda from knowing about any system-wide python installations (and skipping package installs due to that)
2022-11-02 19:45:49 +05:30
cmdr2
a8c16e39b8
Support custom VAE files; Use vae-ft-mse-840000-ema-pruned as the default VAE, which can be overridden by putting a .vae.pt file inside models/stable-diffusion with the same name as the ckpt model file. The UI / System Settings allows setting the default VAE model to use
2022-10-28 20:06:44 +05:30
cmdr2
6d43e0951c
Update on_sd_start.sh
2022-10-27 00:49:32 +05:30
cmdr2
088c546bee
Merge pull request #394 from JeLuF/patch-4
...
Retry downloads on flaky internet connections
2022-10-26 17:36:46 +05:30
JeLuF
4994a7ac85
Update on_sd_start.sh
2022-10-26 13:27:49 +02:00
cmdr2
c8fc0bb4f5
Remove the extra python version print
2022-10-26 16:02:00 +05:30
cmdr2
7b9d18caea
Report the python version after activating the SD environment, that log is not very useful otherwise
2022-10-26 16:00:21 +05:30
cmdr2
137e519b66
Move the installer activation to on_sd_start
2022-10-26 12:15:58 +05:30
cmdr2
0c2d227da1
Activate the installer env while starting up, like the previous installer did in the start script
2022-10-25 19:21:26 +05:30
cmdr2
a281efef04
deactivate any pre-activated conda environments, by returning to (base) and then deactivating that. On Windows and Linux
2022-10-25 18:07:29 +05:30
cmdr2
538dcec348
deactivate any pre-activated conda environments before installing
2022-10-25 17:26:33 +05:30
cmdr2
0d38c8ae8f
Bring back the post-installation test for torch
2022-10-25 16:38:08 +05:30
cmdr2
967c1a2da9
No need for conda 4.14, disable the broken test for torch
2022-10-25 15:42:22 +05:30
cmdr2
f3da326b77
Remove debug logging
2022-10-25 14:36:57 +05:30
cmdr2
153a6e2cb0
Temporarily disable sd_start for linux
2022-10-25 14:30:08 +05:30
cmdr2
95f37b9d36
Use conda 4.14 in the new installer as well (like the previous installer did)
2022-10-25 13:00:57 +05:30
cmdr2
60c37a1fc7
Set the PYTHONPATH before testing the SD installation
2022-10-25 12:48:56 +05:30
cmdr2
615c61e230
Fix a broken PYTHONPATH export in the linux script, used ; instead of :
2022-10-25 12:44:05 +05:30
cmdr2
a111d9b18a
Supress detached head warning
2022-10-23 11:28:08 +05:30
cmdr2
cc356ce67d
Initial commit of the new micromamba-based installer; This should work seamlessly for new and existing users; Also allows the installer to run on mac (but the installation will fail because the mac-specific environment.yaml hasn't been added yet)
2022-10-22 23:24:13 +05:30
cmdr2
e96312b470
Update the troubleshooting link to the new wiki page
2022-10-17 15:16:31 +05:30
cmdr2
06c8a004d8
Remove the old dev console scripts
2022-10-07 19:52:31 +05:30
cmdr2
4ab90fb14d
Merge branch 'main' of github.com:cmdr2/stable-diffusion-ui
2022-10-07 19:48:40 +05:30
cmdr2
54d8feeaf0
Rename dev console script
2022-10-07 19:48:24 +05:30
cmdr2
10012d7125
Merge branch 'main' into beta
2022-10-07 19:38:53 +05:30
cmdr2
8c576ece28
Instructions for where to place the custom ckpt file
2022-10-07 19:33:52 +05:30
cmdr2
ab987e73c6
Copy the dev console script for linux on the first restart
2022-10-07 18:50:07 +05:30
cmdr2
201a053025
Support an arbitrary number of custom models, placed in the models/stable-diffusion folder. Shows an option in the UI to select which model to use
2022-10-06 14:28:02 +05:30
cmdr2
fcb41e30dc
Fix a bug with the linux script, where the file size check would fail if the group name had spaces
2022-09-30 10:45:08 +05:30
cmdr2
1cdb456216
Fix a bug with the linux script, where the file size check would fail if the group name had spaces
2022-09-30 10:44:47 +05:30