mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-16 22:46:04 +08:00
fix linters
This commit is contained in:
parent
bfafe9e9b4
commit
2bb949fb0b
@ -89,7 +89,7 @@ class SamSession(BaseSession):
|
|||||||
sess_opts: ort.SessionOptions,
|
sess_opts: ort.SessionOptions,
|
||||||
providers=None,
|
providers=None,
|
||||||
*args,
|
*args,
|
||||||
**kwargs
|
**kwargs,
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Initialize a new SamSession with the given model name and session options.
|
Initialize a new SamSession with the given model name and session options.
|
||||||
@ -105,7 +105,7 @@ class SamSession(BaseSession):
|
|||||||
valid_providers = []
|
valid_providers = []
|
||||||
available_providers = ort.get_available_providers()
|
available_providers = ort.get_available_providers()
|
||||||
|
|
||||||
for provider in (providers or []):
|
for provider in providers or []:
|
||||||
if provider in available_providers:
|
if provider in available_providers:
|
||||||
valid_providers.append(provider)
|
valid_providers.append(provider)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user