Files
ai-training/check.py
T
Nazar Sturanec 98c604ff93 Made some changes
2024-05-25 03:26:39 +03:00

24 lines
746 B
Python

import os
import time
import shutil
import train
import preprocessing
import datetime
start_file = False
while True:
for foldername, subfolders, filenames in os.walk(os.path.join('datasets', 'zombobase-current')):
start_file = True
for filename in filenames:
if start_file == True:
time.sleep(5)
preprocessing.main(os.path.join('datasets', 'zombobase-current'),'labels', 'images')
time.sleep(3)
train.main()
time.sleep(3)
shutil.rmtree(os.path.join('datasets', 'zombobase-current', 'images'))
shutil.rmtree(os.path.join('datasets', 'zombobase-current', 'labels'))
start_file = False