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