mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
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:
@@ -117,8 +117,8 @@ def get_resolution(key: str, fallback: str | None, source_dict: dict, results: l
|
|||||||
results.append(-1)
|
results.append(-1)
|
||||||
else:
|
else:
|
||||||
results.append(gr.update())
|
results.append(gr.update())
|
||||||
results.append(width)
|
results.append(int(width))
|
||||||
results.append(height)
|
results.append(int(height))
|
||||||
except:
|
except:
|
||||||
results.append(gr.update())
|
results.append(gr.update())
|
||||||
results.append(gr.update())
|
results.append(gr.update())
|
||||||
|
|||||||
Reference in New Issue
Block a user