We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a34671 commit 1f08600Copy full SHA for 1f08600
modules/sd_models.py
@@ -383,6 +383,9 @@ def repair_config(sd_config):
383
elif shared.cmd_opts.upcast_sampling:
384
sd_config.model.params.unet_config.params.use_fp16 = True
385
386
+ if getattr(sd_config.model.params.first_stage_config.params.ddconfig, "attn_type", None) == "vanilla-xformers" and not shared.xformers_available:
387
+ sd_config.model.params.first_stage_config.params.ddconfig.attn_type = "vanilla"
388
+
389
# For UnCLIP-L, override the hardcoded karlo directory
390
if hasattr(sd_config.model.params, "noise_aug_config") and hasattr(sd_config.model.params.noise_aug_config.params, "clip_stats_path"):
391
karlo_path = os.path.join(paths.models_path, 'karlo')
0 commit comments