|
18 | 18 | // https://arxiv.org/abs/1409.0575
|
19 | 19 |
|
20 | 20 | // Post-processing applied:
|
21 |
| -// 1) Download ImageNet files (eg ILSVRC2012_img_train.tar (A), ILSVRC2012_img_val.tar (B)) |
22 |
| -// A) untar tar file to produce 1000 tar files in a folder called 'train': |
23 |
| -// untar each + create directories: |
24 |
| -// > mkdir n01440764; tar -xvf n01440764.tar -C n01440764; rm n01440764.tar |
25 |
| -// B) untar 50k images to a folder called `val`: |
26 |
| -// move images to labeled subfolders using pytorch script: |
27 |
| -// https://raw.githubusercontent.com/soumith/imagenetloader.torch/master/valprep.sh |
28 |
| -// remove blacklisted validation images: |
29 |
| -// https://raw.githubusercontent.com/fastai/imagenet-fast/master/imagenet_nv/blacklist.sh |
30 |
| -// 2) create imagenet.tgz: tar -czvf imagenet.tgz train val |
| 21 | +// 1) Download ImageNet files. |
| 22 | +// A) ILSVRC2012_img_train.tar |
| 23 | +// B) ILSVRC2012_img_val.tar |
| 24 | +// A) Untar tar files to produce 1000 tar files in a folder called "train". |
| 25 | +// Untar each + create directories: |
| 26 | +// mkdir n01440764; tar -xvf n01440764.tar -C n01440764; rm n01440764.tar |
| 27 | +// B) Untar 50k images to a folder called "val". |
| 28 | +// - Move images to labeled subfolders using PyTorch script: |
| 29 | +// https://raw.githubusercontent.com/soumith/imagenetloader.torch/master/valprep.sh |
| 30 | +// - Remove denylisted validation images: |
| 31 | +// https://raw.githubusercontent.com/fastai/imagenet-fast/master/imagenet_nv/blacklist.sh |
| 32 | +// 2) Create imagenet.tgz from "train" and "val". |
| 33 | +// tar -czvf imagenet.tgz train val |
31 | 34 |
|
32 | 35 | import Foundation
|
33 | 36 | import ModelSupport
|
|
0 commit comments