fix: parse width and height as int when applying metadata (#2452)

fixes an issue with A1111 metadata scheme where width and height are strings after splitting resolution
This commit is contained in:
Manuel Schmid 2024-03-05 18:18:47 +01:00 committed by GitHub
parent 28cdc2f104
commit 6cfcc62000
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -117,8 +117,8 @@ def get_resolution(key: str, fallback: str | None, source_dict: dict, results: l
results.append(-1)
else:
results.append(gr.update())
results.append(width)
results.append(height)
results.append(int(width))
results.append(int(height))
except:
results.append(gr.update())
results.append(gr.update())