Old training data not removed when changing dataset
rachelglenn opened this issue · 1 comments
rachelglenn commented
When I switch datasets, the preprocessing adds the new dataset to the old dataset directories
numpy/images
numpy/labels
If we can remove these directories to avoid this issue, when running the preprocessing, it would really help.
def create_empty_dir(path):
if not (os.path.exists(path)):
os.makedirs(path)
else:
os.system("rm -rf " + path)
os.makedirs(path)
aecelaya commented
Can you give me a specific example of this please? When running on a new dataset, you can specify the directory where the preprocessed data is saved. Retaining the preprocessed data for a given dataset is useful when you want to run multiple iterations of training with different models and/or loss functions.