Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

refactoring

Daniel Gatis08a3bdc05389
diff --git a/rembg/sessions/dis.py b/rembg/sessions/dis.py
index 8c38276..2f3b849 100644
--- a/rembg/sessions/dis.py
+++ b/rembg/sessions/dis.py
@@ -34,7 +34,7 @@ class DisSession(BaseSession):
fname = f"{cls.name()}.onnx"
pooch.retrieve(
"https://github.com/danielgatis/rembg/releases/download/v0.0.0/isnet-general-use.onnx",
- f"md5:fc16ebd8b0c10d971d3513d564d01e29",
+ "md5:fc16ebd8b0c10d971d3513d564d01e29",
fname=fname,
path=cls.u2net_home(),
progressbar=True,
diff --git a/rembg/sessions/sam.py b/rembg/sessions/sam.py
index 131ec53..67837d9 100644
--- a/rembg/sessions/sam.py
+++ b/rembg/sessions/sam.py
@@ -141,7 +141,7 @@ class SamSession(BaseSession):
pooch.retrieve(
"https://github.com/danielgatis/rembg/releases/download/v0.0.0/vit_b-encoder-quant.onnx",
- f"md5:13d97c5c79ab13ef86d67cbde5f1b250",
+ "md5:13d97c5c79ab13ef86d67cbde5f1b250",
fname=fname_encoder,
path=cls.u2net_home(),
progressbar=True,
@@ -149,7 +149,7 @@ class SamSession(BaseSession):
pooch.retrieve(
"https://github.com/danielgatis/rembg/releases/download/v0.0.0/vit_b-decoder-quant.onnx",
- f"md5:fa3d1c36a3187d3de1c8deebf33dd127",
+ "md5:fa3d1c36a3187d3de1c8deebf33dd127",
fname=fname_decoder,
path=cls.u2net_home(),
progressbar=True,
diff --git a/rembg/sessions/silueta.py b/rembg/sessions/silueta.py
index c09e3f2..d7376c9 100644
--- a/rembg/sessions/silueta.py
+++ b/rembg/sessions/silueta.py
@@ -36,7 +36,7 @@ class SiluetaSession(BaseSession):
fname = f"{cls.name()}.onnx"
pooch.retrieve(
"https://github.com/danielgatis/rembg/releases/download/v0.0.0/silueta.onnx",
- f"md5:55e59e0d8062d2f5d013f4725ee84782",
+ "md5:55e59e0d8062d2f5d013f4725ee84782",
fname=fname,
path=cls.u2net_home(),
progressbar=True,
diff --git a/rembg/sessions/u2net.py b/rembg/sessions/u2net.py
index 2702a96..4144a10 100644
--- a/rembg/sessions/u2net.py
+++ b/rembg/sessions/u2net.py
@@ -36,7 +36,7 @@ class U2netSession(BaseSession):
fname = f"{cls.name()}.onnx"
pooch.retrieve(
"https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net.onnx",
- f"md5:60024c5c889badc19c04ad937298a77b",
+ "md5:60024c5c889badc19c04ad937298a77b",
fname=fname,
path=cls.u2net_home(),
progressbar=True,
diff --git a/rembg/sessions/u2net_cloth_seg.py b/rembg/sessions/u2net_cloth_seg.py
index 7765109..abd9aee 100644
--- a/rembg/sessions/u2net_cloth_seg.py
+++ b/rembg/sessions/u2net_cloth_seg.py
@@ -97,7 +97,7 @@ class Unet2ClothSession(BaseSession):
fname = f"{cls.name()}.onnx"
pooch.retrieve(
"https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net_cloth_seg.onnx",
- f"md5:2434d1f3cb744e0e49386c906e5a08bb",
+ "md5:2434d1f3cb744e0e49386c906e5a08bb",
fname=fname,
path=cls.u2net_home(),
progressbar=True,
diff --git a/rembg/sessions/u2net_human_seg.py b/rembg/sessions/u2net_human_seg.py
index 8156bef..aa14b50 100644
--- a/rembg/sessions/u2net_human_seg.py
+++ b/rembg/sessions/u2net_human_seg.py
@@ -36,7 +36,7 @@ class U2netHumanSegSession(BaseSession):
fname = f"{cls.name()}.onnx"
pooch.retrieve(
"https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2net_human_seg.onnx",
- f"md5:c09ddc2e0104f800e3e1bb4652583d1f",
+ "md5:c09ddc2e0104f800e3e1bb4652583d1f",
fname=fname,
path=cls.u2net_home(),
progressbar=True,
diff --git a/rembg/sessions/u2netp.py b/rembg/sessions/u2netp.py
index dc9edab..35c893a 100644
--- a/rembg/sessions/u2netp.py
+++ b/rembg/sessions/u2netp.py
@@ -36,7 +36,7 @@ class U2netpSession(BaseSession):
fname = f"{cls.name()}.onnx"
pooch.retrieve(
"https://github.com/danielgatis/rembg/releases/download/v0.0.0/u2netp.onnx",
- f"md5:8e83ca70e441ab06c318d82300c84806",
+ "md5:8e83ca70e441ab06c318d82300c84806",
fname=fname,
path=cls.u2net_home(),
progressbar=True,