mirror of
https://github.com/vladmandic/automatic
synced 2026-08-30 00:50:59 +02:00
CPU offload mode check & Enable compile for IPEX
This commit is contained in:
@@ -211,6 +211,7 @@ def process_diffusers(p: StableDiffusionProcessing, seeds, prompts, negative_pro
|
||||
if shared.opts.diffusers_move_refiner and not shared.sd_refiner.has_accelerate:
|
||||
shared.log.debug('Diffusers: Moving refiner model to CPU')
|
||||
shared.sd_refiner.to(devices.cpu)
|
||||
devices.torch_gc()
|
||||
else:
|
||||
results = output.images
|
||||
|
||||
|
||||
Reference in New Issue
Block a user