delete label.cache in folder valid and train in python

main.py
import os

folder_names = ['valid', 'train']
label_cache = 'label.cache'

for folder_name in folder_names:
    folder_path = os.path.join(folder_name, label_cache)
    if os.path.exists(folder_path):
        os.remove(folder_path)
231 chars
10 lines

related categories

gistlibby LogSnag