This commit is contained in:
Vladimir Mandic
2023-12-04 19:16:35 -05:00
parent 167b903ed8
commit 6cd4abba97
-4
View File
@@ -705,15 +705,12 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
modules.sd_vae.reload_vae_weights()
shared.prompt_styles.apply_styles_to_extra(p)
print('HERE1')
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, shared.backend == shared.Backend.ORIGINAL)
print('HERE2')
modules.script_callbacks.before_process_callback(p)
print('HERE3')
if shared.cmd_opts.profile:
import cProfile
profile_python = cProfile.Profile()
@@ -734,7 +731,6 @@ def process_images(p: StableDiffusionProcessing) -> Processed:
else:
with context_hypertile_vae(p), context_hypertile_unet(p):
res = process_images_inner(p)
print('HERE4')
finally:
if not shared.opts.cuda_compile: