Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 of 4 tasks
poor7 opened this issue Mar 5, 2024 · 1 comment · Fixed by #2452
Closed
3 of 4 tasks
Labels
bug Something isn't working

Comments

@poor7
Copy link

poor7 commented Mar 5, 2024

Checklist

  • The issue exists on a clean installation of Fooocus
  • The issue exists in the current version of Fooocus
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

When trying to generate an image with imported metadata from a 1920x1080 image, an error appears in the console.

Steps to reproduce the problem

  1. Input Image - Metadata - Drag image 1920x1080
  2. Apply Metadata
  3. Generate image

What should have happened?

Generate image

What browsers do you use to access Fooocus?

Google Chrome

Where are you running Fooocus?

Cloud (Google Colab)

What operating system are you using?

No response

Console logs

Traceback (most recent call last):
  File "/content/Fooocus/modules/async_worker.py", line 900, in worker
    handler(task)
  File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
  File "/content/Fooocus/modules/async_worker.py", line 389, in handler
    if overwrite_width > 0:
TypeError: '>' not supported between instances of 'str' and 'int'
Total time: 0.02 seconds

Additional information

If you manually move the Forced Overwrite of Generating Width and Forced Overwrite of Generating Height sliders, the error disappears.

@poor7 poor7 added bug Something isn't working triage This needs an (initial) review labels Mar 5, 2024
@mashb1t mashb1t removed the triage This needs an (initial) review label Mar 5, 2024
@mashb1t
Copy link
Collaborator

mashb1t commented Mar 5, 2024

@poor7 thank you for reporting, fixed in main!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants