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]: Wrong type for shared.device: device: str = None #16521

Open
5 of 6 tasks
thiliapr opened this issue Oct 2, 2024 · 0 comments
Open
5 of 6 tasks

[Bug]: Wrong type for shared.device: device: str = None #16521

thiliapr opened this issue Oct 2, 2024 · 0 comments
Labels
bug-report Report of a bug, yet to be confirmed

Comments

@thiliapr
Copy link

thiliapr commented Oct 2, 2024

Checklist

  • The issue exists after disabling all extensions
  • The issue exists on a clean installation of webui
  • The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • The issue exists in the current version of the webui
  • The issue has not been reported before recently
  • The issue has been reported before but has not been fixed yet

What happened?

I found this type error in modules/shared.py#L25.
Here's part of the code for that file:

# ...

demo: gr.Blocks = None

device: str = None  # Line 25

weight_load_location: str = None

xformers_available = False

# ...

Steps to reproduce the problem

  1. Go to modules/shared.py#L25.
  2. The error is here.

What should have happened?

The line should be:

device: torch.device = None

What browsers do you use to access the UI ?

Mozilla Firefox

Sysinfo

Not any more.

Console logs

Also Not Any more.

Additional information

No response

@thiliapr thiliapr added the bug-report Report of a bug, yet to be confirmed label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Report of a bug, yet to be confirmed
Projects
None yet
Development

No branches or pull requests

1 participant