mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-04 03:10:21 +00:00
Transition to using settings through UI instead of cmd line args. Added feature to only apply to hr-fix. Install package using requirements_versions.txt
This commit is contained in:
@@ -431,13 +431,6 @@ def load_model(checkpoint_info=None, already_loaded_state_dict=None, time_taken_
|
||||
with sd_disable_initialization.DisableInitialization(disable_clip=clip_is_included_into_sd):
|
||||
sd_model = instantiate_from_config(sd_config.model)
|
||||
|
||||
if shared.cmd_opts.token_merging:
|
||||
import tomesd
|
||||
ratio = shared.cmd_opts.token_merging_ratio
|
||||
|
||||
tomesd.apply_patch(sd_model, ratio=ratio)
|
||||
print(f"Model accelerated using {(ratio * 100)}% token merging via tomesd.")
|
||||
timer.record("token merging")
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user