Skip to content

Instantly share code, notes, and snippets.

@twobob
Created October 12, 2022 22:40
Show Gist options
  • Save twobob/68d8a55b2bf4a577c8afb431fb145f60 to your computer and use it in GitHub Desktop.
Save twobob/68d8a55b2bf4a577c8afb431fb145f60 to your computer and use it in GitHub Desktop.
Downloading files and ckpt from Kaggle, minimal hassle
! pip install kaggle
! mkdir ~/.kaggle
!cp /content/drive/MyDrive/kaggle.json ~/.kaggle/kaggle.json
# AN INDIVIDUAL .ckpt FILE
LINK='omgsupportteam/dd-tb-fine-22-10-11-22-42-36'
FILENAME = 'last.ckpt'
! kaggle datasets download $LINK -f $FILENAME
ZIPNAME=f"{FILENAME}.zip"
! unzip $ZIPNAME -d /content/
# A FILE SET for training
LINK='twobob/tbdance50'
! kaggle datasets download $LINK
FILENAME = LINK.split('/')[1]
ZIPNAME=f"{FILENAME}.zip"
! unzip $ZIPNAME -d /content/temp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment