Skip to content

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

Merged
mashb1t merged 1 commit into
lllyasviel:mainfrom
mashb1t:hotfix/parse-resolution-as-int
Mar 5, 2024
Merged

mashb1t merged 1 commit into
lllyasviel:mainfrom
mashb1t:hotfix/parse-resolution-as-int

Conversation

@mashb1t

@mashb1t mashb1t commented Mar 5, 2024

Copy link
Copy Markdown
Collaborator

Fixes #2446

fixes an issue with A1111 metadata scheme where resolution is a string

fixes an issue with A1111 metadata scheme where resolution is a string
@mashb1t
mashb1t requested a review from lllyasviel as a code owner March 5, 2024 17:17
@mashb1t
mashb1t merged commit 6cfcc62 into lllyasviel:main Mar 5, 2024
@mashb1t
mashb1t deleted the hotfix/parse-resolution-as-int branch March 5, 2024 17:18
mashb1t added a commit that referenced this pull request Mar 9, 2024
* 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

* feat: use jpeg instead of jpg, use enums instead of strings
mashb1t added a commit that referenced this pull request Mar 10, 2024
* fix problem

1. In partial redrawing, when refiner is empty, enable use_synthetic_refiner. The default switching timing of 0.5 is too early, which is now modified to SDXL default of 0.8.
2. When using custom steps, the calculation of switching timing is wrong. Now it is modified to calculate "steps x timing" after custom steps are used.

* 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

* fix: do not attempt to remove non-existing image grid file (#2456)

image grid is actually not an image here but a numpy array, as the grid isn't saved by default

* feat: add troubleshooting guide to bug report template again (#2489)

---------

Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>
Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
asahiruyoru pushed a commit to asahiruyoru/Fooocus that referenced this pull request Apr 16, 2026
…#2452)

fixes an issue with A1111 metadata scheme where width and height are strings after splitting resolution
asahiruyoru pushed a commit to asahiruyoru/Fooocus that referenced this pull request Apr 16, 2026
…el#2453)

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

fixes an issue with A1111 metadata scheme where width and height are strings after splitting resolution

* feat: use jpeg instead of jpg, use enums instead of strings
asahiruyoru pushed a commit to asahiruyoru/Fooocus that referenced this pull request Apr 16, 2026
* fix problem

1. In partial redrawing, when refiner is empty, enable use_synthetic_refiner. The default switching timing of 0.5 is too early, which is now modified to SDXL default of 0.8.
2. When using custom steps, the calculation of switching timing is wrong. Now it is modified to calculate "steps x timing" after custom steps are used.

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

fixes an issue with A1111 metadata scheme where width and height are strings after splitting resolution

* fix: do not attempt to remove non-existing image grid file (lllyasviel#2456)

image grid is actually not an image here but a numpy array, as the grid isn't saved by default

* feat: add troubleshooting guide to bug report template again (lllyasviel#2489)

---------

Co-authored-by: Manuel Schmid <9307310+mashb1t@users.noreply.github.com>
Co-authored-by: Manuel Schmid <manuel.schmid@odt.net>
Wontfallo added a commit to Wontfallo/Fooocus that referenced this pull request Jul 11, 2026
…el#2453)

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

fixes an issue with A1111 metadata scheme where width and height are strings after splitting resolution

* feat: use jpeg instead of jpg, use enums instead of strings
Wontfallo added a commit to Wontfallo/Fooocus that referenced this pull request Jul 11, 2026
…#2452)

fixes an issue with A1111 metadata scheme where width and height are strings after splitting resolution
Wontfallo added a commit to Wontfallo/Fooocus that referenced this pull request Jul 11, 2026
* fix problem

1. In partial redrawing, when refiner is empty, enable use_synthetic_refiner. The default switching timing of 0.5 is too early, which is now modified to SDXL default of 0.8.
2. When using custom steps, the calculation of switching timing is wrong. Now it is modified to calculate "steps x timing" after custom steps are used.

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

fixes an issue with A1111 metadata scheme where width and height are strings after splitting resolution

* fix: do not attempt to remove non-existing image grid file (lllyasviel#2456)

image grid is actually not an image here but a numpy array, as the grid isn't saved by default

* feat: add troubleshooting guide to bug report template again (lllyasviel#2489)

---------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Error when reproducing image metadata with non-standard resolution (1920x1080).

1 participant