Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix #803

Daniel Gatisdf72e3dea3f4
diff --git a/rembg/commands/p_command.py b/rembg/commands/p_command.py
index b9ce08e..9157994 100644
--- a/rembg/commands/p_command.py
+++ b/rembg/commands/p_command.py
@@ -185,8 +185,7 @@ def p_command(
print(e)
inputs = list(input.glob("**/*"))
- if not watch:
- inputs_tqdm = tqdm(inputs)
+ inputs_tqdm = inputs if watch else tqdm(inputs)
for each_input in inputs_tqdm:
if not each_input.is_dir():