mirror of
https://github.com/vladmandic/automatic
synced 2026-09-08 13:58:43 +02:00
f90bb1823b
Signed-off-by: Vladimir Mandic <mandic00@live.com>
13 lines
414 B
Python
13 lines
414 B
Python
from modules import processing
|
|
from modules.logger import log
|
|
|
|
|
|
def set_cache(p: processing.StableDiffusionProcessing, phase: str | None = None): # pylint: disable=unused-argument
|
|
import modules.ui_cache
|
|
inputs = modules.ui_cache.get_modular_args()
|
|
method = inputs.get('cache_method', 'None')
|
|
if method == 'None':
|
|
return
|
|
args = {}
|
|
log.debug(f'Pipeline: cache={method} args={args}')
|