setup
index
/home/hydang/Downloads/truckdetection-benruelas-master-patch-01932/code_convertted/setup.py

 
Modules
       
cv2.cv2
detectron2
detectron2.model_zoo
numpy
os
matplotlib.pyplot
random
requests
zipfile

 
Functions
       
download_zip(url, save_path, chunk_size=128)
#Get zip from link / get data from config["raw_link"]
get_zip_dir(path_to_file, directory_to_extract_to)
unzip to directory
register_dataset()
register data set with COCO format
show_random_sample(dataset)
"Show a random sample of the dataset

 
Data
        DatasetCatalog = DatasetCatalog(registered datasets: coco_2014_tr...12_val, ade20k_sem_seg_train, ade20k_sem_seg_val)
MetadataCatalog = MetadataCatalog(registered metadata: coco_2014_t...12_val, ade20k_sem_seg_train, ade20k_sem_seg_val)