Skip to content

Instantly share code, notes, and snippets.

@sizhky
Last active May 24, 2020 13:33
Show Gist options
  • Save sizhky/81c6f16e544d7e05fe5ae48a23a4599d to your computer and use it in GitHub Desktop.
Save sizhky/81c6f16e544d7e05fe5ae48a23a4599d to your computer and use it in GitHub Desktop.
load voc into colab from kaggle
project_url = 'https://github.com/sizhky/rcnn'
import os
if not os.path.exists('faster-rcnn'):
!git clone --quiet {project_url} rcnn
!pip install -q --upgrade imgaug fire torch_snippets
from google.colab import files
files.upload() # upload kaggle.json
!mkdir -p ~/.kaggle
!mv kaggle.json ~/.kaggle/
!ls ~/.kaggle
!chmod 600 /root/.kaggle/kaggle.json
!kaggle datasets download -d zaraks/pascal-voc-2007/
!unzip -qq pascal-voc-2007.zip
!rsync -avh VOCtest_06-Nov-2007/VOCdevkit/VOC2007/ VOCtrainval_06-Nov-2007/VOCdevkit/VOC2007/
%cd rcnn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment