File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ while [[ "$#" -gt 0 ]]; do
5858done
5959
6060setup_kaggle_env () {
61+ mkdir -p ~ /.kaggle || log " '~/.kaggle' directory already exists"
6162 echo ' {"username":"mohammadzainabbas","key":"648d4a46bff4f3fd9380f74378844993"}' > ~ /.kaggle/kaggle.json && chmod 600 ~ /.kaggle/kaggle.json
6263}
6364
@@ -66,7 +67,7 @@ download_kaggle_data() {
6667}
6768
6869cleanup () {
69- rm -rf " $data_dir " /raw_data || echo " Unable to find '$data_dir '/raw_data directory"
70+ rm -rf " $data_dir " /raw_data || log " Unable to find '$data_dir '/raw_data directory"
7071 unzip -q " $data_dir /gan-getting-started.zip" " photo_jpg/*" -d " $data_dir " /raw_data -f
7172}
7273
@@ -75,7 +76,7 @@ log "Setting up kaggle enviornment ..."
7576setup_kaggle_env
7677log " Downloading kaggle data ..."
7778download_kaggle_data
78- log " Cleanup and unzipping the data ..."
79+ log " Unzipping the data ..."
7980cleanup
8081
8182log " All done !!"
You canβt perform that action at this time.
0 commit comments