Faceset packer now asks whether to delete the original files

This commit is contained in:
iperov 2021-05-25 14:21:38 +04:00
parent 41b517517e
commit 766750941a

View file

@ -85,6 +85,7 @@ class PackedFaceset():
of.seek(0,2)
of.close()
if io.input_bool(f"Delete original files?", True):
for filename in io.progress_bar_generator(image_paths, "Deleting files"):
Path(filename).unlink()