Merge pull request #4338 from vladmandic/kanvas

fix cn
This commit is contained in:
Vladimir Mandic
2025-11-01 12:22:12 -04:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -429,14 +429,14 @@ def set_cudnn_params():
torch.use_deterministic_algorithms(opts.cudnn_deterministic)
if opts.cudnn_deterministic:
os.environ.setdefault('CUBLAS_WORKSPACE_CONFIG', ':4096:8')
log.debug('Torch cuDNN: deterministic=True')
log.debug(f'Torch cuDNN: deterministic={opts.cudnn_deterministic}')
torch.backends.cudnn.benchmark = opts.cudnn_benchmark
if opts.cudnn_benchmark:
log.debug('Torch cuDNN: benchmark=True')
log.debug(f'Torch cuDNN: benchmark={opts.cudnn_benchmark}')
torch.backends.cudnn.benchmark_limit = opts.cudnn_benchmark_limit
torch.backends.cudnn.allow_tf32 = True
except Exception as e:
log.warning(f'Torch cudnn: {e}')
log.warning(f'Torch cuDNN: {e}')
def override_ipex_math():
+1 -1
View File
@@ -252,7 +252,7 @@ def process_hires(p: processing.StableDiffusionProcessing, output):
# hires runs on original pipeline
if hasattr(shared.sd_model, 'restore_pipeline') and (shared.sd_model.restore_pipeline is not None) and (not shared.opts.control_hires):
shared.sd_model.restore_pipeline()
if (getattr(shared.sd_model, 'controlnet', None) is not None) and ((isinstance(shared.sd_model.controlnet, list) and len(shared.sd_model.controlnet) > 1)) or ('Multi' in type(shared.sd_model.controlnet).__name__):
if (getattr(shared.sd_model, 'controlnet', None) is not None) and (((isinstance(shared.sd_model.controlnet, list) and len(shared.sd_model.controlnet) > 1)) or ('Multi' in type(shared.sd_model.controlnet).__name__)):
shared.log.warning(f'Process: control={type(shared.sd_model.controlnet)} not supported in hires')
return output