You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Unlike the other session types (e.g. "u2net") the "sam" model does not respect the providers argument that can be provided to rembg.new_session
This is still an issue as of 2.0.57. I think commit 6f1dd31 breaks the fix that I submitted as the logic of a for-else statement means the else clause now always runs.
Describe the bug
Unlike the other session types (e.g. "u2net") the "sam" model does not respect the
providers
argument that can be provided torembg.new_session
To Reproduce
Expected behavior
I would expect the encoder and decoder to both use the providers as passed by the providers argument.
e.g.
OS Version:
Windows 11 23H2
Rembg version:
v2.0.56
Additional context
pip list
outputThe text was updated successfully, but these errors were encountered: