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