mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
relax checks for resources string to support older strings from civitai
This commit is contained in:
parent
6e686f7392
commit
5df03632a4
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user