Skip to content

Commit e9ffdef

Browse files
authored
Update README.md
1 parent 081679b commit e9ffdef

File tree

1 file changed

+35
-6
lines changed
  • quantization/image_classification/trt/resnet50

1 file changed

+35
-6
lines changed

quantization/image_classification/trt/resnet50/README.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ wget https://image-net.org/data/ILSVRC/2012/ILSVRC2012_devkit_t12.tar.gz --no-ch
1616
```
1717
Untar the tarballs to `val` and `ILSVRC2012_devkit_t12` folder separately.
1818

19-
The dataset layout should look like this:
19+
The dataset layout should look like this: Following sample code expects this dataset layout.
2020

2121
```
2222
|-- ILSVRC2012_devkit_t12
@@ -38,15 +38,44 @@ The dataset layout should look like this:
3838
| | `-- make_hash.m
3939
| `-- readme.txt
4040
|-- meta.bin
41+
|-- synset_words.txt
4142
`-- val
42-
|-- n01440764
43-
| |-- ILSVRC2012_val_00000293.JPEG
44-
| |-- ILSVRC2012_val_00002138.JPEG
45-
| |-- ILSVRC2012_val_00003014.JPEG
43+
|-- ILSVRC2012_val_00000001.JPEG
44+
|-- ILSVRC2012_val_00000002.JPEG
45+
|-- ILSVRC2012_val_00000003.JPEG
4646
...
4747
```
48-
Note: If the data in `val` folder is not grouped by class, please run following command to reconstruct the layout
48+
49+
However, if you are using ImageNet, then please run following command to reconstruct the layout to be grouped by class.
4950
```shell
5051
cd val/
5152
wget -qO- https://raw.githubusercontent.com/soumith/imagenetloader.torch/master/valprep.sh | bash
5253
```
54+
```
55+
|-- ILSVRC2012_devkit_t12
56+
| |-- COPYING
57+
| |-- data
58+
| | |-- ILSVRC2012_validation_ground_truth.txt
59+
| | `-- meta.mat
60+
| |-- evaluation
61+
| | |-- VOCreadrecxml.m
62+
| | |-- VOCreadxml.m
63+
| | |-- VOCxml2struct.m
64+
| | |-- compute_overlap.m
65+
| | |-- demo.val.pred.det.txt
66+
| | |-- demo.val.pred.txt
67+
| | |-- demo_eval.m
68+
| | |-- eval_flat.m
69+
| | |-- eval_localization_flat.m
70+
| | |-- get_class2node.m
71+
| | `-- make_hash.m
72+
| `-- readme.txt
73+
|-- meta.bin
74+
`-- val
75+
|-- n01440764
76+
| |-- ILSVRC2012_val_00000293.JPEG
77+
| |-- ILSVRC2012_val_00002138.JPEG
78+
| |-- ILSVRC2012_val_00003014.JPEG
79+
...
80+
```
81+

0 commit comments

Comments
 (0)