Skip to content

Commit 2a6a327

Browse files
authored
Merge pull request #4338 from vladmandic/kanvas
fix cn
2 parents 7ba69d1 + 618b196 commit 2a6a327

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/devices.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,14 +429,14 @@ def set_cudnn_params():
429429
torch.use_deterministic_algorithms(opts.cudnn_deterministic)
430430
if opts.cudnn_deterministic:
431431
os.environ.setdefault('CUBLAS_WORKSPACE_CONFIG', ':4096:8')
432-
log.debug('Torch cuDNN: deterministic=True')
432+
log.debug(f'Torch cuDNN: deterministic={opts.cudnn_deterministic}')
433433
torch.backends.cudnn.benchmark = opts.cudnn_benchmark
434434
if opts.cudnn_benchmark:
435-
log.debug('Torch cuDNN: benchmark=True')
435+
log.debug(f'Torch cuDNN: benchmark={opts.cudnn_benchmark}')
436436
torch.backends.cudnn.benchmark_limit = opts.cudnn_benchmark_limit
437437
torch.backends.cudnn.allow_tf32 = True
438438
except Exception as e:
439-
log.warning(f'Torch cudnn: {e}')
439+
log.warning(f'Torch cuDNN: {e}')
440440

441441

442442
def override_ipex_math():

modules/processing_diffusers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def process_hires(p: processing.StableDiffusionProcessing, output):
252252
# hires runs on original pipeline
253253
if hasattr(shared.sd_model, 'restore_pipeline') and (shared.sd_model.restore_pipeline is not None) and (not shared.opts.control_hires):
254254
shared.sd_model.restore_pipeline()
255-
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__):
255+
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__)):
256256
shared.log.warning(f'Process: control={type(shared.sd_model.controlnet)} not supported in hires')
257257
return output
258258

0 commit comments

Comments
 (0)