Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix black issues

Daniel Gatis066d88ba2c4d
diff --git a/rembg/sessions/base.py b/rembg/sessions/base.py
index a511349..b550603 100644
--- a/rembg/sessions/base.py
+++ b/rembg/sessions/base.py
@@ -13,7 +13,7 @@ class BaseSession:
def __init__(self, model_name: str, sess_opts: ort.SessionOptions, *args, **kwargs):
"""Initialize an instance of the BaseSession class."""
self.model_name = model_name
-
+
if "providers" in kwargs and isinstance(kwargs["providers"], list):
providers = kwargs.pop("providers")
else: