aboutsummaryrefslogtreecommitdiffstats
path: root/modules/sd_models.py
AgeCommit message (Collapse)AuthorLines
2023-01-28fixed a bug where after switching to a checkpoint with unknown hash, you'd ↵AUTOMATIC-3/+1
get empty space instead of checkpoint name in UI fixed a bug where if you update a selected checkpoint on disk and then restart the program, a different checkpoint loads, but the name is shown for the the old one.
2023-01-27add data-dir flag and set all user data directories based on itMax Audron-3/+3
2023-01-27support detecting midas modelAUTOMATIC-5/+5
fix broken api for checkpoint list
2023-01-27remove the need to place configs near modelsAUTOMATIC-115/+113
2023-01-25Merge pull request #6510 from brkirch/unet16-upcast-precisionAUTOMATIC1111-0/+10
Add upcast options, full precision sampling from float16 UNet and upcasting attention for inference using SD 2.1 models without --no-half
2023-01-25Add instruct-pix2pix hijackKyle-1/+11
Allows loading instruct-pix2pix models via same method as inpainting models in sd_models.py and sd_hijack_ip2p.py Adds ddpm_edit.py necessary for instruct-pix2pix
2023-01-25Add option for float32 sampling with float16 UNetbrkirch-0/+10
This also handles type casting so that ROCm and MPS torch devices work correctly without --no-half. One cast is required for deepbooru in deepbooru_model.py, some explicit casting is required for img2img and inpainting. depth_model can't be converted to float16 or it won't work correctly on some systems (it's known to have issues on MPS) so in sd_models.py model.depth_model is removed for model.half().
2023-01-19bring back short hashes to sd checkpoint selectionAUTOMATIC-4/+11
2023-01-14fix bug with "Ignore selected VAE for..." option completely disabling VAE ↵AUTOMATIC-3/+3
election rework VAE resolving code to be more simple
2023-01-14load hashes from cache for checkpoints that have themAUTOMATIC-3/+6
add checkpoint hash to footer
2023-01-14update key to use with checkpoints' sha256 in cacheAUTOMATIC-1/+1
2023-01-14change hypernets to use sha256 hashesAUTOMATIC-1/+1
2023-01-14change hash to sha256AUTOMATIC-42/+74
2023-01-11fix for an error caused by skipping initialization, for realsies this time: ↵AUTOMATIC-0/+1
TypeError: expected str, bytes or os.PathLike object, not NoneType
2023-01-11possible fix for fallback for fast model creation from config, attempt 2AUTOMATIC-0/+1
2023-01-11possible fix for fallback for fast model creation from configAUTOMATIC-0/+3
2023-01-10add support for transformers==4.25.1AUTOMATIC-2/+6
add fallback for when quick model creation fails
2023-01-10add more stuff to ignore when creating model from configAUTOMATIC-4/+28
prevent .vae.safetensors files from being listed as stable diffusion models
2023-01-10disable torch weight initialization and CLIP downloading/reading checkpoint ↵AUTOMATIC-2/+3
to speedup creating sd model from config
2023-01-09allow model load if previous model failedVladimir Mandic-5/+10
2023-01-04use commandline-supplied cuda device name instead of cuda:0 for safetensors ↵AUTOMATIC-1/+1
PR that doesn't fix anything
2023-01-04Merge remote-tracking branch 'Narsil/fix_safetensors_load_speed'AUTOMATIC-1/+4
2023-01-04fix broken inpainting modelAUTOMATIC-3/+0
2023-01-04find configs for models at runtime rather than when startingAUTOMATIC-13/+18
2023-01-04helpful error message when trying to load 2.0 without configAUTOMATIC-8/+18
failing to load model weights from settings won't break generation for currently loaded model anymore
2023-01-03call script callbacks for reloaded model after loading embeddingsAUTOMATIC-2/+2
2023-01-02fix the issue with training on SD2.0AUTOMATIC-0/+2
2022-12-31validate textual inversion embeddingsVladimir Mandic-0/+3
2022-12-27Attempting to solve slow loads for `safetensors`.Nicolas Patry-1/+4
Fixes #5893
2022-12-24fix F541 f-string without any placeholdersYuval Aboulafia-4/+4
2022-12-24Removed lenght in sd_model at line 115linuxmobile ( リナックス )-3/+0
Commit eba60a4 is what is causing this error, delete the length check in sd_model starting at line 115 and it's fine. https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/5971#issuecomment-1364507379
2022-12-24Merge pull request #5627 from deanpress/patch-1AUTOMATIC1111-0/+4
fix: fallback model_checkpoint if it's empty
2022-12-11unconditionally set use_ema=False if value not specified (True never worked, ↵MrCheeze-1/+3
and all configs except v1-inpainting-inference.yaml already correctly set it to False)
2022-12-11fix: fallback model_checkpoint if it's emptyDean van Dugteren-0/+4
This fixes the following error when SD attempts to start with a deleted checkpoint: ``` Traceback (most recent call last): File "D:\Web\stable-diffusion-webui\launch.py", line 295, in <module> start() File "D:\Web\stable-diffusion-webui\launch.py", line 290, in start webui.webui() File "D:\Web\stable-diffusion-webui\webui.py", line 132, in webui initialize() File "D:\Web\stable-diffusion-webui\webui.py", line 62, in initialize modules.sd_models.load_model() File "D:\Web\stable-diffusion-webui\modules\sd_models.py", line 283, in load_model checkpoint_info = checkpoint_info or select_checkpoint() File "D:\Web\stable-diffusion-webui\modules\sd_models.py", line 117, in select_checkpoint checkpoint_info = checkpoints_list.get(model_checkpoint, None) TypeError: unhashable type: 'list' ```
2022-12-10fix support for 2.0 inpainting model while maintaining support for 1.5 ↵MrCheeze-0/+1
inpainting model
2022-12-10Merge pull request #4841 from R-N/vae-fix-noneAUTOMATIC1111-0/+2
Fix None option of VAE selector
2022-12-08Depth2img model supportJay Smith-0/+46
2022-11-28make it possible to save nai model using safetensorsAUTOMATIC-2/+2
2022-11-27add safetensors support for model merging #4869AUTOMATIC-11/+15
2022-11-27add safetensors to requirementsAUTOMATIC-6/+5
2022-11-27Merge pull request #4930 from Narsil/allow_to_load_safetensors_fileAUTOMATIC1111-2/+9
Supporting `*.safetensors` format.
2022-11-26no-half support for SD 2.0MrCheeze-0/+3
2022-11-21Supporting `*.safetensors` format.Nicolas Patry-2/+9
If a model file exists with extension `.safetensors` then we can load it more safely than with PyTorch weights.
2022-11-19Merge branch 'a1111' into vae-fix-noneMuhammad Rizqi Nur-8/+2
2022-11-19Remove no longer necessary parts and add vae_file safeguardMuhammad Rizqi Nur-8/+2
2022-11-19MiscMuhammad Rizqi Nur-0/+1
Misc
2022-11-19Fix base VAE caching was done after loading VAE, also add safeguardMuhammad Rizqi Nur-0/+1
2022-11-09restore #4035 behaviorcluder-1/+1
- if checkpoint cache is set to 1, keep 2 models in cache (current +1 more)
2022-11-09- do not use ckpt cache, if disabledcluder-10/+17
- cache model after is has been loaded from file
2022-11-04fix one of previous merges breaking the programAUTOMATIC-0/+2