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
sudo ./yolov5 -s // serialize model to plan file i.e. 'yolov5s.engine'
48
50
sudo ./yolov5 -d ../samples // deserialize plan file and run inference, the images in samples will be processed.
51
+
```
49
52
50
53
3. check the images generated, as follows. _zidane.jpg and _bus.jpg
51
54
52
55
4. optional, load and run the tensorrt model in python
53
56
57
+
```
54
58
// install python-tensorrt, pycuda, etc.
55
59
// ensure the yolov5s.engine and libmyplugins.so have been built
56
60
python yolov5_trt.py
57
61
```
58
62
63
+
# INT8 Quantization
64
+
65
+
1. Prepare calibration images, you can randomly select 1000s images from your train set. For coco, you can also download my calibration images `coco_calib` from [BaiduPan](https://pan.baidu.com/s/1GOm_-JobpyLMAqZWCDUhKg) pwd: a9wh
66
+
67
+
2. unzip it in yolov5/build
68
+
69
+
3. set the macro `USE_INT8` in yolov3.cpp and make
0 commit comments