mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-15 22:55:57 +08:00
fix linters
This commit is contained in:
parent
0b1b71d59c
commit
6f1dd31ee6
@ -105,10 +105,9 @@ class SamSession(BaseSession):
|
||||
self.providers = []
|
||||
|
||||
_providers = ort.get_available_providers()
|
||||
if providers:
|
||||
for provider in providers:
|
||||
if provider in _providers:
|
||||
self.providers.append(provider)
|
||||
for provider in kwargs.get("providers", []):
|
||||
if provider in _providers:
|
||||
self.providers.append(provider)
|
||||
else:
|
||||
self.providers.extend(_providers)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user