kaggle

Published by onesixx on

Kaggle API 설치

$ conda install -c conda-forge kaggle

kaggle 사용자 토큰 생성

kaggle계정> Account> API> [Create New API Token] => kaggle.json

{“username”:”onesixx”,”key”:”abcd9666f403aa5f777666dbbe6c60d6″}

$ kaggle
# 에러는 발생하지만, ~/.kaggle 폴더가 생김. 


# 다운받은 kaggle.json을 ~/.kaggle/로 옯겨줌
$ cp ~/my/git/mmdetection/sixxtools/kaggle.json ~/.kaggle/
$ chmod 600 ~/.kaggle/kaggle.json

$ kaggle competitions list
$ kaggle --help

kaggle API로 데이터 다운로드하기

https://www.kaggle.com/c/titanic/data : kaggle competitions download -c titanic

https://www.kaggle.com/competitions/cowboyoutfits/data?select=images : kaggle competitions download -c cowboyoutfits

$ kaggle competitions download -c cowboyoutfits -p ~/my/git/mmdetection/data/cowboy
$ cd ~/my/git/mmdetection/data/cowboy
$ unzip cowboyoutfits.zip
$ rm    comboyoutfits.zip
Categories: vision

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x