handle xformers

This commit is contained in:
Vladimir Mandic
2023-10-08 08:10:34 -04:00
parent 564d04d9f4
commit dca4efb3ad
5 changed files with 26 additions and 13 deletions
+1 -1
View File
@@ -643,7 +643,7 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
if not shared.opts.cuda_compile:
modules.sd_models.apply_token_merging(p.sd_model, p.get_token_merging_ratio())
modules.sd_hijack_freeu.apply_freeu(p.sd_model, shared.backend == shared.Backend.ORIGINAL)
modules.sd_hijack_freeu.apply_freeu(p, shared.backend == shared.Backend.ORIGINAL)
if shared.cmd_opts.profile:
"""