mirror of
https://git.mirrors.martin98.com/https://github.com/danielgatis/rembg
synced 2025-08-15 17:35:54 +08:00
fix typo
This commit is contained in:
parent
4659d52273
commit
332c16b58e
2
setup.py
2
setup.py
@ -11,7 +11,7 @@ with open("requirements.txt") as f:
|
||||
|
||||
setup(
|
||||
name="rembg",
|
||||
version="1.0.15",
|
||||
version="1.0.16",
|
||||
description="Remove image background",
|
||||
long_description=long_description,
|
||||
long_description_content_type="text/markdown",
|
||||
|
@ -3,6 +3,7 @@ import glob
|
||||
import os
|
||||
import filetype
|
||||
from distutils.util import strtobool
|
||||
from tqdm import tqdm
|
||||
|
||||
from ..bg import remove
|
||||
|
||||
@ -89,11 +90,12 @@ def main():
|
||||
else:
|
||||
full_paths += glob.glob(path + "/*")
|
||||
|
||||
for fi in files:
|
||||
for fi in tqdm(files):
|
||||
fi_type = filetype.guess(fi)
|
||||
|
||||
if fi_type is None:
|
||||
continue
|
||||
elif if_type.mime.find('image') < 0:
|
||||
elif fi_type.mime.find('image') < 0:
|
||||
continue
|
||||
|
||||
with open(fi, "rb") as input:
|
||||
|
Loading…
x
Reference in New Issue
Block a user