mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-16 06:25:53 +08:00
fix issue #74
This commit is contained in:
parent
2a1c646b1c
commit
63f52a3a6a
2
setup.py
2
setup.py
@ -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",
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user