mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 05:22:06 -07:00
Faceset packer now asks whether to delete the original files
This commit is contained in:
parent
41b517517e
commit
766750941a
1 changed files with 11 additions and 10 deletions
|
@ -85,6 +85,7 @@ class PackedFaceset():
|
||||||
of.seek(0,2)
|
of.seek(0,2)
|
||||||
of.close()
|
of.close()
|
||||||
|
|
||||||
|
if io.input_bool(f"Delete original files?", True):
|
||||||
for filename in io.progress_bar_generator(image_paths, "Deleting files"):
|
for filename in io.progress_bar_generator(image_paths, "Deleting files"):
|
||||||
Path(filename).unlink()
|
Path(filename).unlink()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue