CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 23:06:16 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/opencv/opencv.git
etag: W/"9ce7144bbb5308333e86bee3c333d340"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=L%2F6zN6lk%2FbJ12FpwYfl9aGOG1vOgV27L%2FHDJzNIgSH1Bh%2FBI7GiuSpySqe6IQ8f3MunvYPelHoDb2gt3OuU1Y8O3BuY796jyTA1tBoz6YAI32nfW374u9N6lFcso4M%2BAsefzBo0s0Nd0zYPevEIX47icNvbzXLZH5Tc3A3kFcS921r3XbZoul1vekMw46O41YVfxYnW840gJ3gL%2F6dcZo75lIkPSbpi2VB8RzKt76Nw7IFLhu9Nxbk4YLy3yWrDjftepnM%2FtYur%2F8%2BX83G6lEQ%3D%3D--J5vcIY8XIeE0ArZd--dqDheR8jqWFOn05gOTqb%2Fg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2124866681.1753225575; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 23:06:15 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 23:06:15 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B606:3644F0:1A984A:245BE5:68801967
Merge pull request #23604 from dkurt:dnn_no_protobuf · opencv/opencv@a8d3d1f · GitHub
Copy file name to clipboardExpand all lines: modules/dnn/src/caffe/caffe_importer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/onnx/onnx_graph_simplifier.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/onnx/onnx_graph_simplifier.hpp
Copy file name to clipboardExpand all lines: modules/dnn/src/onnx/onnx_importer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/tensorflow/tf_importer.cpp
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Commit a8d3d1f
authored
Merge pull request #23604 from dkurt:dnn_no_protobuf
Build DNN without Protobuf
DNN module can be built without Protobuf for Darknet, TFLite, OpenVINO, Torch (not PyTorch) models.
```
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_LIST=dnn \
-DWITH_PROTOBUF=OFF \
-DWITH_OPENCL=OFF
7.1M lib/libopencv_dnn.so.4.7.0
```
```
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_LIST=dnn \
-DWITH_OPENCL=OFF
3.9M lib/libopencv_dnn.so.4.7.0
```
### Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
- [x] I agree to contribute to the project under Apache 2 License.
- [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [x] The PR is proposed to the proper branch
- [x] There is a reference to the original bug report and related work
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake1 parent 85b04f0 commit a8d3d1fCopy full SHA for a8d3d1f
File tree
Expand file treeCollapse file tree
7 files changed
+83
-23
lines changedFilter options
- modules/dnn
- src
- caffe
- onnx
- tensorflow
Expand file treeCollapse file tree
7 files changed
+83
-23
lines changed+12-14Lines changed: 12 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
6 |
| - | |
7 |
| - | |
8 |
| - | |
9 | 5 |
| |
10 | 6 |
| |
11 | 7 |
| |
| |||
104 | 100 |
| |
105 | 101 |
| |
106 | 102 |
| |
107 |
| - | |
108 |
| - | |
109 | 103 |
| |
110 | 104 |
| |
111 | 105 |
| |
| |||
120 | 114 |
| |
121 | 115 |
| |
122 | 116 |
| |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
129 |
| - | |
130 |
| - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
131 | 129 |
| |
132 | 130 |
| |
133 | 131 |
| |
|
modules/dnn/src/caffe/caffe_importer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/caffe/caffe_importer.cpp+17-1Lines changed: 17 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
591 | 591 |
| |
592 | 592 |
| |
593 | 593 |
| |
594 |
| - | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
595 | 611 |
| |
596 | 612 |
| |
597 | 613 |
|
+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
45 |
| - | |
| 45 | + | |
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 |
| - | |
| 63 | + | |
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 |
| - | |
| 83 | + | |
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
|
modules/dnn/src/onnx/onnx_graph_simplifier.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/onnx/onnx_graph_simplifier.cpp+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| 10 | + | |
10 | 11 |
| |
11 | 12 |
| |
12 | 13 |
| |
| |||
1265 | 1266 |
| |
1266 | 1267 |
| |
1267 | 1268 |
| |
| 1269 | + |
modules/dnn/src/onnx/onnx_graph_simplifier.hpp
Copy file name to clipboardExpand all lines: modules/dnn/src/onnx/onnx_graph_simplifier.hpp+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| 10 | + | |
10 | 11 |
| |
11 | 12 |
| |
12 | 13 |
| |
| |||
36 | 37 |
| |
37 | 38 |
| |
38 | 39 |
| |
| 40 | + | |
39 | 41 |
|
modules/dnn/src/onnx/onnx_importer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/onnx/onnx_importer.cpp+24-2Lines changed: 24 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| 46 | + | |
46 | 47 |
| |
47 | 48 |
| |
48 | 49 |
| |
49 | 50 |
| |
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
| 54 | + | |
53 | 55 |
| |
54 | 56 |
| |
55 | 57 |
| |
| |||
4170 | 4172 |
| |
4171 | 4173 |
| |
4172 | 4174 |
| |
| 4175 | + | |
| 4176 | + | |
| 4177 | + | |
| 4178 | + | |
| 4179 | + | |
| 4180 | + | |
| 4181 | + | |
| 4182 | + | |
| 4183 | + | |
| 4184 | + | |
| 4185 | + | |
| 4186 | + | |
| 4187 | + | |
| 4188 | + | |
| 4189 | + | |
| 4190 | + | |
| 4191 | + | |
| 4192 | + | |
| 4193 | + | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
4173 | 4197 |
| |
4174 | 4198 |
| |
4175 |
| - | |
4176 |
| - | |
|
modules/dnn/src/tensorflow/tf_importer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/tensorflow/tf_importer.cpp+23-3Lines changed: 23 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
| 39 | + | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| |||
3225 | 3225 |
| |
3226 | 3226 |
| |
3227 | 3227 |
| |
3228 |
| - | |
3229 |
| - | |
3230 | 3228 |
| |
3231 | 3229 |
| |
3232 | 3230 |
| |
| |||
3276 | 3274 |
| |
3277 | 3275 |
| |
3278 | 3276 |
| |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
| 3280 | + | |
| 3281 | + | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
| 3289 | + | |
| 3290 | + | |
| 3291 | + | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
3279 | 3299 |
| |
3280 | 3300 |
|
You can’t perform that action at this time.
0 commit comments