mimus-assa / APIAIS

Application Program Interface for Artificial Intelligence Systems
0 stars 1 forks source link

create the folders on first run #1

Closed mimus-assa closed 4 years ago

mimus-assa commented 4 years ago

the folders should be created on the first run, like after downloading and runing

mimus-assa commented 4 years ago

need to unify image folders for minimal number of folders

mimus-assa commented 4 years ago

we can merge data, image, models and vid folders

mimus-assa commented 4 years ago

the folder images should be separated by ANPR and FaVe

mimus-assa commented 4 years ago

the folder images should be separated by ANPR and FaVe

for FaVe the folders are enrolleds, snap

mimus-assa commented 4 years ago

the folder images should be separated by ANPR and FaVe

for ANPR we should have two folder

data_gen: letters_from_videos, mask(should be renamed as letter_segmentation), plate loc train

training: orignal_plate_loc, mask_plate_loc, original_char_seg, mask_char_seg, letters

mimus-assa commented 4 years ago

this is done on the branch reorderfolders we just need to make script to create all folders if it does not exist.

mimus-assa commented 4 years ago

this is done on the branch reorderfolders we just need to make script to create all folders if it does not exist.

https://djangocentral.com/check-if-a-directory-exists-if-not-create-it/

mimus-assa commented 4 years ago

import os
list dir = ["data/models/dl/","data/images/ANPR/data_gen/letters_from_videos/" ,"data/images/ANPR/data_gen/mask","data/images/ANPR/data_gen/record_plates" "data/images/ANPR/data_gen/plate_loc/  ,"data/images/ANPR/training", "data/images/ANPR/training/letters", "data/images/ANPR/training/mask_char_seg", "data/images/ANPR/training/mask_plate_loc", "data/images/ANPR/training/original_char_seg", "data/images/ANPR/training/orignal_plate_loc", "data/images/FaVe/enrolleds", "data/images/FaVe/snap/1", "data/notebooks", "data/vids"]
for dir in list_dir:
       CHECK_FOLDER = os.path.isdir(MYDIR)
        if not CHECK_FOLDER:
              os.makedirs(MYDIR)
mimus-assa commented 4 years ago

20 done in this merge