mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-18 07:05:56 +08:00
fix sum providers bug
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
parent
e740a9681e
commit
7c3e60be4c
@ -105,6 +105,7 @@ class SamSession(BaseSession):
|
||||
valid_providers = []
|
||||
available_providers = ort.get_available_providers()
|
||||
|
||||
if providers:
|
||||
for provider in providers or []:
|
||||
if provider in available_providers:
|
||||
valid_providers.append(provider)
|
||||
|
Loading…
x
Reference in New Issue
Block a user