Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix issue #74

Daniel Gatis63f52a3a6a7d
diff --git a/setup.py b/setup.py
index 8e354aa..0967da1 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ with open("requirements.txt") as f:
setup(
name="rembg",
- version="1.0.21",
+ version="1.0.22",
description="Remove image background",
long_description=long_description,
long_description_content_type="text/markdown",
diff --git a/src/rembg/cmd/cli.py b/src/rembg/cmd/cli.py
index eeedfbf..08529f0 100644
--- a/src/rembg/cmd/cli.py
+++ b/src/rembg/cmd/cli.py
@@ -100,7 +100,9 @@ def main():
if os.path.isfile(path):
files.add(path)
else:
- full_paths += glob.glob(path + "/*")
+ full_paths += set(glob.glob(path + "/*")) - set(
+ glob.glob(path + "/*.out.png")
+ )
for fi in tqdm(files):
fi_type = filetype.guess(fi)