queue handler done

This commit is contained in:
Alex Bezdieniezhnykh
2025-05-22 02:15:07 +03:00
parent 8fb24384db
commit eecc11b1e5
15 changed files with 388 additions and 209 deletions
+2 -2
View File
@@ -115,7 +115,7 @@ class Augmentator:
f.writelines(lines)
f.close()
print(f'{datetime.now():{'%Y-%m-%d %H:%M:%S'}}: {self.total_files_processed + 1}/{self.total_images_to_process} : {image_file.name} has augmented')
print(f'{datetime.now():{"%Y-%m-%d %H:%M:%S"}}: {self.total_files_processed + 1}/{self.total_to_process} : {image_file.name} has augmented')
except Exception as e:
print(e)
self.total_files_processed += 1
@@ -148,5 +148,5 @@ if __name__ == '__main__':
augmentator = Augmentator()
while True:
augmentator.augment_annotations()
print('All processed, waiting for 2 minutes...')
print('All processed, waiting for 5 minutes...')
time.sleep(300)