Commit Graph

284 Commits

Author SHA1 Message Date
huchenlei f89b5dbbd2 nit 2024-06-08 22:15:37 -04:00
huchenlei d875cda565 Fix sdxl inpaint 2024-06-08 22:11:11 -04:00
AUTOMATIC1111 3ef9f2748d
Merge branch 'dev' into bgh-handle-metadata-issues-more-cleanly 2024-06-08 12:16:55 +03:00
AUTOMATIC1111 30461bef98
Merge pull request #15602 from AUTOMATIC1111/initial-model-download-integrity
Initial model download integrity
2024-06-08 12:13:24 +03:00
AUTOMATIC1111 6450d24afe
Merge pull request #15806 from huchenlei/inpaint_fix
[Performance 4/6] Precompute is_sdxl_inpaint flag
2024-06-08 11:06:39 +03:00
AUTOMATIC1111 ad229fae43
Merge pull request #15803 from huchenlei/checkpoint_false
[Performance 1/6] use_checkpoint = False
2024-06-08 10:52:40 +03:00
AUTOMATIC1111 33b73c473c
Merge pull request #15820 from huchenlei/force_half
[Performance 6/6] Add --precision half option to avoid casting during inference
2024-06-08 10:26:23 +03:00
huchenlei b57a70f373 Proper fix of SD15 dtype 2024-05-17 13:34:04 -04:00
huchenlei dca9007ac7 Fix SD15 dtype 2024-05-17 13:23:12 -04:00
huchenlei 47f1d42a7e Fix for SD15 models 2024-05-16 20:06:04 -04:00
huchenlei 2a8a60c2c5 Add --precision half cmd option 2024-05-16 19:50:06 -04:00
huchenlei 58eec83a54 Fully prevent use_checkpoint 2024-05-16 16:39:02 -04:00
huchenlei 9eb2f78631 Precompute is_sdxl_inpaint flag 2024-05-15 16:32:29 -04:00
Brendan Hoar 60c0799958
Linter - except must not be bare. 2024-04-26 08:21:12 -04:00
Brendan Hoar 44afb48447
Linter fix - extraneous whitespace 2024-04-26 08:17:37 -04:00
Brendan Hoar 8dc920228e
Better error handling when unable to read metadata from safetensors file 2024-04-26 06:52:21 -04:00
w-e-w c69773d7e8 ensure integrity for initial sd model download 2024-04-23 03:09:45 +09:00
w-e-w 2b717bb195 fix initial corrupt model loop
if for some reason the initial loading model at loading phase of webui  is corrupted
after entering this state the user will not be able to load even a good model is selected, due the the unload_model_weights  > send_model_to_cpu > m.lowvram attribute check will fail becaules m is None
webui will be stuck in the loop unable to recover without manual intervention
2024-04-23 02:35:25 +09:00
AUTOMATIC1111 acb20338b1 put HF_ENDPOINT into shared for #15443 2024-04-06 08:53:21 +03:00
AUTOMATIC1111 73f7812045
Merge pull request #15443 from Satariall/add-hf_endpoint-variable
Use HF_ENDPOINT variable for HuggingFace domain with default
2024-04-06 08:48:55 +03:00
Marsel Markhabulin 989b89b12a
Use HF_ENDPOINT variable for HuggingFace domain with default
Modified the list_models function to dynamically construct the model URL
by using an environment variable for the HuggingFace domain. This allows
for greater flexibility in specifying the domain and ensures that the
modification is also compatible with the Hub client library. By
supporting different environments or requirements without hardcoding the
domain name, this change facilitates the use of custom HuggingFace
domains not only within our code but also when interacting with the Hub
client library.
2024-04-05 13:02:49 +03:00
AUTOMATIC1111 8bebfde701
Merge pull request #15350 from baseco/memory-bug-fix
minor bug fix of sd model memory management
2024-03-30 07:37:10 +03:00
王怀宗 f4633cb9c0 fix: when find already_loaded model, remove loaded by array index 2024-03-26 18:29:51 +08:00
Boning f62217b65d minor bug fix of sd model memory management 2024-03-25 10:38:15 -07:00
Aarni Koskela e3fa46f26f Fix various typos with crate-ci/typos 2024-03-04 08:42:07 +02:00
AUTOMATIC1111 141a17e969 style changes for #14979 2024-03-02 06:55:03 +03:00
AUTOMATIC1111 da67afe5f6 call apply_alpha_schedule_override in load_model_weights for #14979 2024-03-02 06:54:58 +03:00
AUTOMATIC1111 28bc85a20a Merge pull request #14979 from drhead/refiner_cumprod_fix
Protect alphas_cumprod during refiner switchover
2024-03-02 06:54:55 +03:00
AUTOMATIC1111 ee470cc6a3 style changes for #14979 2024-03-02 06:54:11 +03:00
AUTOMATIC1111 1a51b166a0 call apply_alpha_schedule_override in load_model_weights for #14979 2024-03-02 06:53:53 +03:00
drhead e2cd92ea23
move refiner fix to sd_models.py 2024-02-26 23:43:27 -05:00
Nuullll a183de04e3 Execute model_loaded_callback after moving to target device 2024-01-06 20:03:33 +08:00
AUTOMATIC1111 267fd5d76b
Merge pull request #14145 from drhead/zero-terminal-snr
Implement zero terminal SNR noise schedule option
2024-01-01 14:45:12 +03:00
Kohaku-Blueleaf 672dc4efa8 Fix forced reload 2023-12-06 15:16:10 +08:00
drhead 78acdcf677 fix variable 2023-12-02 14:09:18 -05:00
drhead dc1adeecdd Create alphas_cumprod_original on full precision path 2023-12-02 14:06:56 -05:00
Kohaku-Blueleaf 50a21cb09f Ensure the cached weight will not be affected 2023-12-02 22:06:47 +08:00
Kohaku-Blueleaf 110485d5bb Merge branch 'dev' into test-fp8 2023-12-02 17:00:09 +08:00
MrCheeze 6080045b2a Add support for SD 2.1 Turbo, by converting the state dict from SGM to LDM on load 2023-12-01 22:58:05 -05:00
drhead b25c126ccd
Protect alphas_cumprod from downcasting 2023-11-29 17:38:53 -05:00
Kohaku-Blueleaf 40ac134c55 Fix pre-fp8 2023-11-25 12:35:09 +08:00
Kohaku-Blueleaf 370a77f8e7 Option for using fp16 weight when apply lora 2023-11-21 19:59:34 +08:00
Kohaku-Blueleaf 598da5cd49 Use options instead of cmd_args 2023-11-19 15:50:06 +08:00
Kohaku-Blueleaf cd12256575 Merge branch 'dev' into test-fp8 2023-11-16 21:53:13 +08:00
AUTOMATIC1111 6ad666e479 more changes for #13865: fix formatting, rename the function, add comment and add a readme entry 2023-11-05 19:46:20 +03:00
AUTOMATIC1111 80d639a440 linter 2023-11-05 19:32:21 +03:00
AUTOMATIC1111 ff805d8d0e
Merge branch 'dev' into master 2023-11-05 19:30:57 +03:00
Ritesh Gangnani 44c5097375 Use devices.torch_gc() instead of empty_cache() 2023-11-05 20:31:57 +05:30
Ritesh Gangnani ff1609f91e Add SSD-1B as a supported model 2023-11-05 19:13:49 +05:30
Kohaku-Blueleaf d4d3134f6d ManualCast for 10/16 series gpu 2023-10-28 15:24:26 +08:00