mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
cleanup
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user