Skip to content

Commit ae93d38

Browse files
authored
[PyTorch] Added support of inference (#361)
* [PyTorch] Added support of inference
1 parent 2c6d9de commit ae93d38

19 files changed

+1033
-7
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ DLI supports inference using the following frameworks:
2323
- [ONNX Runtime][onnx-runtime].
2424
- [MXNet][mxnet].
2525
- [OpenCV DNN][opencv-dnn] (C++ and Python API).
26+
- [PyTorch][pytorch].
2627

2728
More information about DLI is available on the web-site
2829
([here][dli-ru-web-page] (in Russian)
@@ -99,6 +100,9 @@ Novgorod State University Publishing House, 2021. – 423 p.
99100
- [`validation_results_mxnet_gluon_modelzoo.md`](results/validation/validation_results_mxnet_gluon_modelzoo.md)
100101
is a table that confirms correctness of inference implementation
101102
based on MXNet for [GluonCV-models][gluoncv-omz].
103+
- [`validation_results_pytorch.md`](results/validation/validation_results_pytorch.md)
104+
is a table that confirms correctness of inference implementation
105+
based on PyTorch for [TorchVision][torchvision].
102106

103107
- [`mxnet_models_checklist.md`](results/mxnet_models_checklist.md) contains a list
104108
of deep models inferred by MXNet checked in the DLI benchmark.
@@ -108,6 +112,8 @@ Novgorod State University Publishing House, 2021. – 423 p.
108112
of deep models inferred by TensorFlow checked in the DLI benchmark.
109113
- [`tflite_models_checklist.md`](results/tflite_models_checklist.md) contains a list
110114
of deep models inferred by TensorFlow Lite checked in the DLI benchmark.
115+
- [`pytorch_models_checklist.md`](results/pytorch_models_checklist.md) contains a list
116+
of deep models inferred by PyTorch checked in the DLI benchmark.
111117

112118
- `src` directory contains benchmark sources.
113119

@@ -184,11 +190,13 @@ Report questions, issues and suggestions, using:
184190
[onnx-runtime-github]: https://github.com/microsoft/onnxruntime
185191
[mxnet]: https://mxnet.apache.org
186192
[opencv-dnn]: https://docs.opencv.org/4.7.0/d2/d58/tutorial_table_of_content_dnn.html
193+
[pytorch]: https://pytorch.org
187194
[benchmark-app]: https://github.com/openvinotoolkit/openvino/tree/master/samples/cpp/benchmark_app
188195
[dli-ru-web-page]: http://hpc-education.unn.ru/dli-ru
189196
[dli-web-page]: http://hpc-education.unn.ru/dli
190197
[open-model-zoo]: https://github.com/opencv/open_model_zoo
191198
[gluoncv-omz]: https://cv.gluon.ai/model_zoo/index.html
199+
[torchvision]: https://pytorch.org/vision/stable/models.html
192200
[mmst-2021]: https://hpc-education.unn.ru/files/conference_hpc/2021/MMST2021_Proceedings.pdf
193201
[dli-wiki]: https://github.com/itlab-vision/dl-benchmark/wiki
194202
[dli-wiki-build]: https://github.com/itlab-vision/dl-benchmark/wiki#how-to-build

requirements_frameworks.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
openvino-dev[caffe,mxnet,tensorflow2]==2022.3.0
2-
gluoncv
1+
openvino-dev[caffe,mxnet,tensorflow2,pytorch]==2022.3.0
2+
gluoncv
3+
torchvision

results/pytorch_models_checklist.md

+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# Model validation and performance analysis status for PyTorch
2+
3+
## Public models
4+
5+
The list of models is from [TorchVision][torchvision].
6+
7+
### Image classification on ImageNet
8+
9+
Model | Availability in [TorchVision][torchvision] (0.15.1)| Availability in the validation table |
10+
-|-|-|
11+
alexnet|+|+|
12+
densenet121|+|+|
13+
densenet161|+|+|
14+
densenet169|+|+|
15+
densenet201|+|+|
16+
googlenet|+|+|
17+
inception_v3|+|+|
18+
mnasnet0_5|+|+|
19+
mnasnet0_75|+|+|
20+
mnasnet1_0|+|+|
21+
mnasnet1_3|+|+|
22+
mobilenet_v2|+|+|
23+
resnext50_32x4d|+|+|
24+
resnext101_32x8d|+|+|
25+
resnet18|+|+|
26+
resnet34|+|+|
27+
resnet50|+|+|
28+
resnet101|+|+|
29+
resnet152|+|+|
30+
shufflenet_v2_x0_5|+|+|
31+
shufflenet_v2_x1_0|+|+|
32+
shufflenet_v2_x1_5|+|+|
33+
shufflenet_v2_x2_0|+|+|
34+
squeezenet1_0|+|+|
35+
squeezenet1_1|+|+|
36+
vgg11|+|+|
37+
vgg11_bn|+|+|
38+
vgg13|+|+|
39+
vgg13_bn|+|+|
40+
vgg16|+|+|
41+
vgg16_bn|+|+|
42+
vgg19|+|+|
43+
vgg19_bn|+|+|
44+
wide_resnet50_2|+|+|
45+
wide_resnet101_2|+|+|
46+
47+
### Object detection
48+
49+
Model | Availability in [TorchVision][torchvision] (0.15.1)| Availability in the validation table |
50+
-|-|-|
51+
fasterrcnn_resnet50_fpn|+|-|
52+
fasterrcnn_resnet50_fpn_v2|+|-|
53+
fasterrcnn_mobilenet_v3_large_fpn|+|-|
54+
fasterrcnn_mobilenet_v3_large_320_fpn|+|-|
55+
fcos_resnet50_fpn|+|-|
56+
retinanet_resnet50_fpn|+|-|
57+
retinanet_resnet50_fpn_v2|+|-|
58+
ssd300_vgg16|+|-|
59+
ssdlite320_mobilenet_v3_large|+|-|
60+
61+
### Semantic segmentation
62+
63+
Model | Availability in [TorchVision][torchvision] (0.15.1)| Availability in the validation table |
64+
-|-|-|
65+
deeplabv3_mobilenet_v3_large|+|-|
66+
deeplabv3_resnet50|+|-|
67+
deeplabv3_resnet101|+|-|
68+
fcn_resnet50|+|-|
69+
fcn_resnet101|+|-|
70+
lraspp_mobilenet_v3_large|+|-|
71+
72+
### Instance segmentation
73+
74+
Model | Availability in [TorchVision][torchvision] (0.15.1)| Availability in the validation table |
75+
-|-|-|
76+
maskrcnn_resnet50_fpn|+|-|
77+
maskrcnn_resnet50_fpn_v2|+|-|
78+
79+
80+
### Keypoint Detection
81+
82+
Model | Availability in [TorchVision][torchvision] (0.15.1)| Availability in the validation table |
83+
-|-|-|
84+
keypointrcnn_resnet50_fpn|+|-|
85+
86+
87+
<!-- LINKS -->
88+
[torchvision]: https://pytorch.org/vision/stable/models.html

0 commit comments

Comments
 (0)