[SD] (RDNA2) Enable new tuning for sd1.4 (#1498)

This commit is contained in:
Ean Garvey
2023-06-06 08:48:58 -05:00
committed by GitHub
parent a83808ddc5
commit 1dbcc736eb
2 changed files with 2 additions and 1 deletions

View File

@@ -125,7 +125,7 @@ def load_lower_configs(base_model_id=None):
config_name = f"{args.annotation_model}_v2_1_768_{args.precision}_{device}.json"
else:
config_name = f"{args.annotation_model}_{version}_{args.precision}_{device}.json"
elif spec in ["rdna2"] and version in ["v2_1", "v2_1base"]:
elif spec in ["rdna2"] and version in ["v2_1", "v2_1base", "v1_4"]:
config_name = f"{args.annotation_model}_{version}_{args.precision}_{device}_{spec}_{args.width}x{args.height}.json"
else:
config_name = f"{args.annotation_model}_{version}_{args.precision}_{device}_{spec}.json"

View File

@@ -347,6 +347,7 @@ def set_init_device_flags():
not in [
"stabilityai/stable-diffusion-2-1",
"stabilityai/stable-diffusion-2-1-base",
"CompVis/stable-diffusion-v1-4",
]
):
args.use_tuned = False