From 5df03632a4e80ce2bd53182581bac00f24467119 Mon Sep 17 00:00:00 2001 From: James Date: Sun, 5 May 2024 06:48:45 -0400 Subject: [PATCH] relax checks for resources string to support older strings from civitai --- modules/infotext_utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/infotext_utils.py b/modules/infotext_utils.py index 4cd7034fa..16c5e098e 100644 --- a/modules/infotext_utils.py +++ b/modules/infotext_utils.py @@ -254,9 +254,7 @@ Civitai resources: [{"type":"checkpoint","modelVersionId":290640},{"type":"Image prompt_resources = [] for resource in resources: - if "type" not in resource or "weight" not in resource or "modelVersionId" not in resource: - continue - if "ImageJobNetworkParams" not in resource["type"]: + if "weight" not in resource or "modelVersionId" not in resource: continue weight = resource["weight"]