Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix linters

Daniel Gatisc360cf6d90a2
diff --git a/rembg/sessions/base.py b/rembg/sessions/base.py
index 3f6e61f..1fca45b 100644
--- a/rembg/sessions/base.py
+++ b/rembg/sessions/base.py
@@ -48,7 +48,7 @@ class BaseSession:
@classmethod
def checksum_disabled(cls, *args, **kwargs):
- return os.getenv("MODEL_CHECKSUM_DISABLED", None) != None
+ return os.getenv("MODEL_CHECKSUM_DISABLED", None) is not None
@classmethod
def u2net_home(cls, *args, **kwargs):