-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #790 from datalad-handbook/mnt-dvc
Maintenance - Speed up sections with imagenette dataset
- Loading branch information
Showing
41 changed files
with
136 additions
and
145 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
### DVC | ||
# download the data | ||
$ curl -s https://s3.amazonaws.com/fast-ai-imageclas/imagenette2-160.tgz \ | ||
-O imagenette2-160.tgz | ||
$ wget -q https://osf.io/d6qbz/download -O imagenette2-160.tgz | ||
# extract it | ||
$ tar -xzf imagenette2-160.tgz | ||
# move it into the directories | ||
$ cp -r imagenette2-160/train data/raw/ | ||
$ cp -r imagenette2-160/val data/raw/ | ||
# remove the archive and extracted folder | ||
$ rm -rf imagenette2-160 | ||
$ rm imagenette2-160.tgz | ||
$ mv train data/raw/ | ||
$ mv val data/raw/ | ||
# remove the archive | ||
$ rm -rf imagenette2-160.tgz |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
### DVC | ||
$ git commit -m "control data with DVC" | ||
[master 597708c] control data with DVC | ||
[master baac3ef] control data with DVC | ||
3 files changed, 12 insertions(+) | ||
create mode 100644 data/raw/train.dvc | ||
create mode 100644 data/raw/val.dvc |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
### DVC-DataLad | ||
$ cd ../DVC-DataLad | ||
# Requires >= 0.13.4! | ||
$ datalad download-url \ | ||
--archive \ | ||
--message "Download Imagenette dataset" \ | ||
'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2-160.tgz' \ | ||
https://osf.io/d6qbz/download \ | ||
-O 'data/raw/' | ||
[INFO] Downloading 'https://s3.amazonaws.com/fast-ai-imageclas/imagenette2-160.tgz' into '/home/me/DVCvsDL/DVC-DataLad/data/raw/' | ||
[INFO] Downloading 'https://osf.io/d6qbz/download' into '/home/me/DVCvsDL/DVC-DataLad/data/raw/' | ||
download_url(ok): /home/me/DVCvsDL/DVC-DataLad/data/raw/imagenette2-160.tgz (file) | ||
add(ok): data/raw/imagenette2-160.tgz (file) | ||
save(ok): . (dataset) | ||
[INFO] Adding content of the archive /home/me/DVCvsDL/DVC-DataLad/data/raw/imagenette2-160.tgz into annex AnnexRepo(/home/me/DVCvsDL/DVC-DataLad) | ||
[INFO] Initiating special remote datalad-archives | ||
[INFO] Finished adding /home/me/DVCvsDL/DVC-DataLad/data/raw/imagenette2-160.tgz: Files processed: 13394, renamed: 13394, +annex: 13394 | ||
[INFO] Initiating special remote datalad-archives | ||
[INFO] Finished adding /home/me/DVCvsDL/DVC-DataLad/data/raw/imagenette2-160.tgz: Files processed: 2701, renamed: 2701, +annex: 2701 | ||
[INFO] Finished extraction | ||
add-archive-content(ok): /home/me/DVCvsDL/DVC-DataLad (dataset) | ||
action summary: | ||
add (ok: 1) | ||
add-archive-content (ok: 1) | ||
download_url (ok: 1) | ||
save (ok: 1) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
### DVC | ||
$ git add .dvc/config | ||
$ git commit -m "add local remote" | ||
[master de96b97] add local remote | ||
[master 8f24d9f] add local remote | ||
1 file changed, 4 insertions(+) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
### DVC | ||
$ dvc push | ||
13396 files pushed | ||
2703 files pushed |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
### DVC | ||
$ cd DVC-2 | ||
$ dvc fetch data/raw/val.dvc | ||
3925 files fetched | ||
789 files fetched |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
### DVC-DataLad | ||
### DVC-DataLad2 | ||
$ datalad get data/raw/val | ||
[INFO] To obtain some keys we need to fetch an archive of size 98.9 MB | ||
[INFO] To obtain some keys we need to fetch an archive of size 15.1 MB | ||
[INFO] datalad-archives special remote is using an extraction cache under /home/me/DVCvsDL/DVC-DataLad-2/.git/datalad/tmp/archives/8f2938add6. Remove it with DataLad's 'clean' command to save disk space. | ||
get(ok): data/raw/val (directory) | ||
action summary: | ||
get (ok: 3926) | ||
get (ok: 790) |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
### DVC-DataLad | ||
$ datalad drop data/raw/val | ||
drop(ok): data/raw/val (directory) | ||
action summary: | ||
drop (ok: 3925) | ||
drop (ok: 790) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
### DVC-DataLad | ||
$ datalad get data/raw/val | ||
get(ok): data/raw/val (directory) | ||
action summary: | ||
get (ok: 790) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
### DVC | ||
$ dvc metrics show | ||
metrics/accuracy.json: | ||
accuracy: 0.6920152091254753 | ||
accuracy: 0.8022813688212928 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
$ git diff SGD -- metrics/accuracy.json | ||
diff --git a/metrics/accuracy.json b/metrics/accuracy.json | ||
index ea992fb10..a137ca8f2 100644 | ||
index f847bc7c..38044953 100644 | ||
--- a/metrics/accuracy.json | ||
+++ b/metrics/accuracy.json | ||
@@ -1 +1 @@ | ||
-{"accuracy": 0.7782002534854245} | ||
-{"accuracy": 0.752851711026616} | ||
\ No newline at end of file | ||
+{"accuracy": 0.8174904942965779} | ||
+{"accuracy": 0.8136882129277566} | ||
\ No newline at end of file |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
$ datalad create imagenette | ||
[INFO] Creating a new annex repo at /home/me/usecases/imagenette | ||
[INFO] scanning for unlocked files (this may take some time) | ||
create(ok): /home/me/usecases/imagenette (dataset) |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.