Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# download PASCAL VOC 2012 dataset
#
# ref: http://host.robots.ox.ac.uk/pascal/VOC/voc2012/index.html
echo "Downloading..."
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar && \
#!/bin/bash
# download PASCAL VOC 2007 dataset
#
# ref: http://host.robots.ox.ac.uk/pascal/VOC/voc2007/index.html
echo "Downloading..."
wget http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar && \
#!/bin/bash
# download MS COCO dataset
#
# ref: http://mscoco.org/dataset/#download
echo "Downloading..."
wget http://msvocds.blob.core.windows.net/annotations-1-0-3/instances_train-val2014.zip && \
#!/bin/bash
# Ref: http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-linux/#runfile-verifications
/sbin/modprobe nvidia
if [ "$?" -eq 0 ]; then
# Count the number of NVIDIA controllers found.
NVDEVS=`lspci | grep -i NVIDIA`
N3D=`echo "$NVDEVS" | grep "3D controller" | wc -l`