Last active
May 24, 2020 13:33
-
-
Save sizhky/81c6f16e544d7e05fe5ae48a23a4599d to your computer and use it in GitHub Desktop.
load voc into colab from kaggle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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