File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ @ echo off
2+ setlocal enabledelayedexpansion
3+
4+ if not exist " %userprofile% \.kaggle\kaggle.json" (
5+ set /p USERNAME = Kaggle username:
6+ echo .
7+ set /p APIKEY = Kaggle API key:
8+
9+ mkdir " %userprofile% \.kaggle"
10+ echo {" username" :" !USERNAME! " ," key" :" !APIKEY! " } > " %userprofile% \.kaggle\kaggle.json"
11+ attrib +R " %userprofile% \.kaggle\kaggle.json"
12+ )
13+
14+ pip install kaggle --upgrade
15+
16+ kaggle competitions download -c carvana-image-masking-challenge -f train_hq.zip
17+ powershell Expand-Archive train_hq.zip -DestinationPath data\imgs
18+ move data\imgs\train_hq\* data\imgs\
19+ rmdir /s /q data\imgs\train_hq
20+ del /q train_hq.zip
21+
22+ kaggle competitions download -c carvana-image-masking-challenge -f train_masks.zip
23+ powershell Expand-Archive train_masks.zip -DestinationPath data\masks
24+ move data\masks\train_masks\* data\masks\
25+ rmdir /s /q data\masks\train_masks
26+ del /q train_masks.zip
27+
28+ exit /b 0
You can’t perform that action at this time.
0 commit comments