switch some cmdopts to opts

This commit is contained in:
Vladimir Mandic
2023-05-06 14:35:33 -04:00
parent 1360c6422a
commit 41182009cb
10 changed files with 31 additions and 33 deletions
+1 -1
View File
@@ -680,7 +680,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
for x in x_samples_ddim:
devices.test_for_nans(x, "vae")
except devices.NansException as e:
if not shared.cmd_opts.no_half and not shared.cmd_opts.no_half_vae and shared.cmd_opts.rollback_vae:
if not shared.opts.no_half and not shared.opts.no_half_vae and shared.cmd_opts.rollback_vae:
log.warning('Tensor with all NaNs was produced in VAE')
devices.dtype_vae = torch.bfloat16
vae_file, vae_source = sd_vae.resolve_vae(p.sd_model.sd_model_checkpoint)