Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit eda41af

Browse files
authored
Use respectful language. (#731)
`blacklist` -> `denylist` Some light reformatting included.
1 parent d9bb9f1 commit eda41af

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

Datasets/Imagenette/ImageNet.swift

+13-10
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,19 @@
1818
// https://arxiv.org/abs/1409.0575
1919

2020
// 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
3134

3235
import Foundation
3336
import ModelSupport

0 commit comments

Comments
 (0)