Skip to content

Commit 4070131

Browse files
committed
update readme
1 parent 5d72c5a commit 4070131

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ All the models are implemented in pytorch/mxnet/tensorflown first, and export a
1010

1111
## News
1212

13+
- `2 Apr 2021`. [mingyu6yang](https://github.com/mingyu6yang) added a python wrapper for retinaface, [makaveli10](https://github.com/makaveli10) added DenseNet-121.
1314
- `17 Mar 2021`. [wuzuowuyou](https://github.com/wuzuowuyou) added refinedet, which utilized libtorch to do postprocessing.
1415
- `5 Mar 2021`. [chgit0214](https://github.com/chgit0214) added the LPRNet.
1516
- `31 Jan 2021`. RepVGG added by [upczww](https://github.com/upczww).
@@ -82,6 +83,7 @@ Following models are implemented.
8283
|[repvgg](./repvgg)| RepVGG, pytorch implementation from [DingXiaoH/RepVGG](https://github.com/DingXiaoH/RepVGG) |
8384
|[lprnet](./lprnet)| LPRNet, pytorch implementation from [xuexingyu24/License_Plate_Detection_Pytorch](https://github.com/xuexingyu24/License_Plate_Detection_Pytorch) |
8485
|[refinedet](./refinedet)| RefineDet, pytorch implementation from [luuuyi/RefineDet.PyTorch](https://github.com/luuuyi/RefineDet.PyTorch) |
86+
|[densenet](./densenet)| DenseNet-121, from torchvision.models |
8587

8688
## Model Zoo
8789

densenet/README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Densenet121
22

3-
The Pytorch implementation is [makaveli10/densenet](https://github.com/makaveli10/torchtrtz/tree/main/densenet).
3+
The Pytorch implementation is [makaveli10/densenet](https://github.com/makaveli10/torchtrtz/tree/main/densenet). Model from torchvision.
44
The tensorrt implemenation is taken from [makaveli10/cpptensorrtz](https://github.com/makaveli10/cpptensorrtz/).
55

66
## How to Run
@@ -13,8 +13,8 @@ git clone https://github.com/makaveli10/torchtrtz.git
1313
1414
// go to torchtrtz/densenet
1515
// Enter these two commands to create densenet121.wts
16-
$ python models.py
17-
$ python gen_trtwts.py
16+
python models.py
17+
python gen_trtwts.py
1818
```
1919

2020
2. build densenet and run
@@ -26,11 +26,12 @@ mkdir build
2626
cd build
2727
cmake ..
2828
make
29-
sudo ./densenet -s // serialize model to file i.e. 'LPRnet.engine'
29+
sudo ./densenet -s // serialize model to file i.e. 'densenet.engine'
3030
sudo ./densenet -d // deserialize model and run inference
3131
```
3232

3333
3. Verify output from [torch impl](https://github.com/makaveli10/torchtrtz/blob/main/densenet/README.md)
34+
3435
TensorRT output[:5]:
3536
```
3637
[-0.587389, -0.329202, -1.83404, -1.89935, -0.928404]

refinedet/README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
For the Pytorch implementation, you can refer to [luuuyi/RefineDet.PyTorch](https://github.com/luuuyi/RefineDet.PyTorch)
44

55
## How to run
6+
67
```
78
1. generate wts file. from pytorch
89
python gen_wts_refinedet.py
@@ -19,21 +20,22 @@ make
1920
```
2021

2122
## dependence
23+
2224
```
2325
TensorRT7.0.0.11
2426
OpenCV >= 3.4
2527
libtorch >=1.1.0
2628
```
2729

28-
2930
## feature
31+
3032
1.tensorrt Multi output
3133
2.L2norm
3234
3.Postprocessing with libtorch
3335

34-
3536
## More Information
3637

3738
See the readme in [home page.](https://github.com/wang-xinyu/tensorrtx)
3839
[tensorrt tutorials](https://github.com/wang-xinyu/tensorrtx/tree/master/tutorials)
3940
For more detailed guidance, see [yhl blog](https://www.cnblogs.com/yanghailin/p/14525128.html)
41+

retinaface/README.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,13 @@ sudo ./retina_r50 -d // deserialize model file and run inference.
4444

4545
3. check the images generated, as follows. 0_result.jpg
4646

47-
4. we also provide a tensorrt model in python
47+
4. we also provide a python wrapper
4848

49-
```
50-
// install python-tensorrt, pycuda, etc.
51-
// ensure the retina_r50.engine and libdecodeplugin.so have been built
52-
python retinaface_trt.py
53-
```
54-
55-
49+
```
50+
// install python-tensorrt, pycuda, etc.
51+
// ensure the retina_r50.engine and libdecodeplugin.so have been built
52+
python retinaface_trt.py
53+
```
5654

5755
# INT8 Quantization
5856

@@ -70,4 +68,5 @@ sudo ./retina_r50 -d // deserialize model file and run inference.
7068

7169
## More Information
7270

73-
See the readme in [home page.](https://github.com/wang-xinyu/tensorrtx)
71+
Check the readme in [home page.](https://github.com/wang-xinyu/tensorrtx)
72+

0 commit comments

Comments
 (0)