Created
July 19, 2017 15:45
-
-
Save timehaven/6fc1b1d4782ad14cf170f1aff88debc6 to your computer and use it in GitHub Desktop.
Revisions
-
timehaven created this gist
Jul 19, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ cd /path/to/demo/data/ # Download train.zip from Kaggle using # https://www.kaggle.com/c/dogs-vs-cats/data ls -l train.zip -rw-r--r--@ 1 user group 543M Jun 12 10:39 train.zip unzip -qq train.zip mkdir -p train_demo/cats validation_demo/cats \ train_demo/dogs validation_demo/dogs cp train/dog.7[4-7]*.jpg validation_demo/dogs cp train/cat.7[4-7]*.jpg validation_demo/cats cp train/dog.1???.jpg train_demo/dogs cp train/cat.1???.jpg train_demo/cats mv train train_orig mv validation validation_orig ln -s train_demo train ln -s validation_demo validation ls validation_demo/dogs | wc ls validation_demo/cats | wc ls train_demo/dogs | wc ls train_demo/cats | wc 444 444 5724 444 444 5724 1000 1000 13000 1000 1000 13000