mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-17 04:55:54 +08:00
fix linters
This commit is contained in:
parent
0b1b71d59c
commit
6f1dd31ee6
@ -105,8 +105,7 @@ 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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user