Hi,
Sorry for the let reply.
what do i mean by “skip the particular step” is as bellow example:
for example for my own custom data i have skip bellow steps in Jupiter notebook as i have my own data i don’t have to download or unzip :
A. Download the dataset
Once you have gotten the download links in your email, please populate them in place of the KITTI_IMAGES_DOWNLOAD_URL
and the KITTI_LABELS_DOWNLOAD_URL
. This next cell, will download the data and place in $LOCAL_DATA_DIR
import os
!mkdir -p $LOCAL_DATA_DIR
os.environ["URL_IMAGES"]=KITTI_IMAGES_DOWNLOAD_URL
!if [ ! -f $LOCAL_DATA_DIR/data_object_image_2.zip ]; then wget $URL_IMAGES -O $LOCAL_DATA_DIR/data_object_image_2.zip; else echo "image archive already downloaded"; fi
os.environ["URL_LABELS"]=KITTI_LABELS_DOWNLOAD_URL
!if [ ! -f $LOCAL_DATA_DIR/data_object_label_2.zip ]; then wget $URL_LABELS -O $LOCAL_DATA_DIR/data_object_label_2.zip; else \ echo "label archive already downloaded"; fi
B. Verify downloaded dataset
# Check the dataset is present
!if [ ! -f $LOCAL_DATA_DIR/data_object_image_2.zip ]; then echo 'Image zip file not found, please download.'; else echo 'Found Image zip file.';fi
!if [ ! -f $LOCAL_DATA_DIR/data_object_label_2.zip ]; then echo 'Label zip file not found, please download.'; else echo 'Found Labels zip file.';fi
# This may take a while: verify integrity of zip files
!sha256sum $LOCAL_DATA_DIR/data_object_image_2.zip | cut -d ' ' -f 1 | grep -xq '^351c5a2aa0cd9238b50174a3a62b846bc5855da256b82a196431d60ff8d43617$' ; \
if test $? -eq 0; then echo "images OK"; else echo "images corrupt, redownload!" && rm -f $LOCAL_DATA_DIR/data_object_image_2.zip; fi
!sha256sum $LOCAL_DATA_DIR/data_object_label_2.zip | cut -d ' ' -f 1 | grep -xq '^4efc76220d867e1c31bb980bbf8cbc02599f02a9cb4350effa98dbb04aaed880$' ; \
if test $? -eq 0; then echo "labels OK"; else echo "labels corrupt, redownload!" && rm -f $LOCAL_DATA_DIR/data_object_label_2.zip; fi
# unpack downloaded datasets to $DATA_DOWNLOAD_DIR.
# The training images will be under $DATA_DOWNLOAD_DIR/training/image_2 and
# labels will be under $DATA_DOWNLOAD_DIR/training/label_2.
# The testing images will be under $DATA_DOWNLOAD_DIR/testing/image_2.
!unzip -u $LOCAL_DATA_DIR/data_object_image_2.zip -d $LOCAL_DATA_DIR
!unzip -u $LOCAL_DATA_DIR/data_object_label_2.zip -d $LOCAL_DATA_DIR
Now i have make some changes in detecnet_v2.0 Jupiter notebook please let me know if i am doing anything wrong.
1. I have commented below lines as i did not want to download datasets.
A. Download the dataset
import os
!mkdir -p $LOCAL_DATA_DIR
#os.environ["URL_IMAGES"]=KITTI_IMAGES_DOWNLOAD_URL
#!if [ ! -f $LOCAL_DATA_DIR/data_object_image_2.zip ]; then wget $URL_IMAGES -O $LOCAL_DATA_DIR/data_object_image_2.zip; else echo "image archive already downloaded"; fi
#os.environ["URL_LABELS"]=KITTI_LABELS_DOWNLOAD_URL
#!if [ ! -f $LOCAL_DATA_DIR/data_object_label_2.zip ]; then wget $URL_LABELS -O $LOCAL_DATA_DIR/data_object_label_2.zip; else \ echo "label archive already downloaded"; fi
2. Change in download per-trained model
D. Download pre-trained model
# List models available in the model registry.
!ngc registry model list nvidia/tao/trafficcamnet:*
# Download the pretrained model from NGC
!ngc registry model download-version nvidia/tao/trafficcamnet:unpruned_v1.0 \
--dest $LOCAL_EXPERIMENT_DIR/pretrained_trafficcamnet
!ls -rlt $LOCAL_EXPERIMENT_DIR/pretrained_trafficcamnet/trafficcamnet_vunpruned_v1.0
3. Change in training specification file.
I have made changes in specification file for bellow:
- I have 7 class which is car, bicycle, person, road_sign, Auto_Rickshaw, Truck, Bus
- size: 960 x 544
- format: PNG
I have make changes in dataset_config, augmentation_config, postprocessing_config, model_config, evaluation_config, cost_function_config, bbox_rasterizer_config.
I am attaching my specification file for training along with detectnetv2 specification file in which i have made changes.
Please let me know if i have done anything wrong. or any other things i have to change.
detectnet_v2_train_trafficcamnet.txt (8.6 KB)
detectnet_v2_train_resnet18_kitti.txt (5.4 KB)
Regards,
vikas