This commit is contained in:
Daniel Gatis 2021-02-06 12:23:56 -03:00
parent 2a1c646b1c
commit 63f52a3a6a
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,7 @@ with open("requirements.txt") as f:
setup( setup(
name="rembg", name="rembg",
version="1.0.21", version="1.0.22",
description="Remove image background", description="Remove image background",
long_description=long_description, long_description=long_description,
long_description_content_type="text/markdown", long_description_content_type="text/markdown",

View File

@ -100,7 +100,9 @@ def main():
if os.path.isfile(path): if os.path.isfile(path):
files.add(path) files.add(path)
else: else:
full_paths += glob.glob(path + "/*") full_paths += set(glob.glob(path + "/*")) - set(
glob.glob(path + "/*.out.png")
)
for fi in tqdm(files): for fi in tqdm(files):
fi_type = filetype.guess(fi) fi_type = filetype.guess(fi)