Created
October 12, 2022 22:40
-
-
Save twobob/68d8a55b2bf4a577c8afb431fb145f60 to your computer and use it in GitHub Desktop.
Downloading files and ckpt from Kaggle, minimal hassle
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
! 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