You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vta/examples/resnet18/pynq/README.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,20 @@
2
2
3
3
Follow the first two parts of the [Installation Guide](../../../docs/how_to/install.md) to make sure that the VTA python libraries are installed, and that the RPC server is running on the Pynq FPGA dev board.
4
4
5
-
Simply run the following python script:
5
+
We recommend leaving the `config.json` to its default parameterization (of course you can change the target between "sim" and "pynq").
6
+
7
+
Simply run the example program. We rely on pickle to store parameters which now only works with python2.
6
8
```bash
7
-
python imagenet_predict.py
9
+
python2 imagenet_predict.py
8
10
```
9
11
10
-
This will run imagenet classification using the ResNet18 architecture on a VTA design that performs 8-bit integer inference, to perform classification on a cat image `cat.jpg`.
12
+
The script will first download the following files into `_data/` directory:
13
+
*`cat.jpg` which provides a test sample for the ImageNet classifier
14
+
*`quantize_graph.json` which describes the NNVM graph of the 8-bit ResNet-18
15
+
*`quantize_params.plk` which contains the network parameters
16
+
*`synset.txt` which contains the ImageNet categories
17
+
18
+
Next, it will run imagenet classification using the ResNet18 architecture on a VTA design that performs 8-bit integer inference, to perform classification on a cat image `cat.jpg`.
11
19
12
20
The script reports runtime measured on the Pynq board (in seconds), and the top-1 result category:
0 commit comments