CARVIEW |
Select Language
HTTP/2 200
date: Tue, 22 Jul 2025 22:16:02 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/"b353b6b51feb8c341bff523021083560"
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=VXOktxZ3MbKp3PXBKbvUMw18QwYy%2FJdq1VeHaLKcCgxopvyDoIuOpcLJBNkhm9l037%2F2u7urhUFw76%2BA8l9zGA7OdpOHZTzlFBxATnv9uvdEORMNmdhGhH5lRMUF0B9uGmdbxcDIDt%2BGEzuHNNoTDdHfNGLCnYeuy4nNM46q1fsbA8%2Fb4oxqmM2hBzSv4cAN9RM2j%2Bw7%2FlJdg1ktx83mPdsnimH%2FZseJxPcPdIpMNtlGM%2FERO%2FDyiL2hAxv8jI8pgo%2FMF9VfEE36hqviN1%2Fy%2Fw%3D%3D--IHiZ8udrYLZTaJPu--YqlwgsU797d0UsNZSPNFXQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.624551734.1753222561; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 22:16:01 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Wed, 22 Jul 2026 22:16:01 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: ACAC:1A99C5:1823A5:204EAE:68800DA1
Merge pull request #24463 from dkurt:dnn_shared_nodes_fusion · opencv/opencv@fa56623 · GitHub
Copy file name to clipboardExpand all lines: modules/dnn/src/graph_simplifier.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/test/test_onnx_importer.cpp
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Commit fa56623
authored
Merge pull request #24463 from dkurt:dnn_shared_nodes_fusion
DNN graph fusion with shared nodes #24463
### Pull Request Readiness Checklist
For now, nodes from matched pattern are removed during the matching process so if nodes are used in similar subgraph, they cannot be found.
required for #24397
**Merge with extra**: opencv/opencv_extra#1115
A part from [model_name ](https://github.com/onnx/models/blob/main/vision/object_detection_segmentation/fcn/model/fcn-resnet101-11.onnx) with two Resize subgraphs with shared nodes:

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 fe4d518 commit fa56623Copy full SHA for fa56623
File tree
Expand file treeCollapse file tree
3 files changed
+82
-6
lines changedFilter options
- modules/dnn
- src
- onnx
- test
Expand file treeCollapse file tree
3 files changed
+82
-6
lines changedmodules/dnn/src/graph_simplifier.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/graph_simplifier.cpp+46-4Lines changed: 46 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
168 |
| - | |
169 | 168 |
| |
170 |
| - | |
171 |
| - | |
172 | 169 |
| |
173 | 170 |
| |
174 | 171 |
| |
| |||
191 | 188 |
| |
192 | 189 |
| |
193 | 190 |
| |
| 191 | + | |
194 | 192 |
| |
195 | 193 |
| |
196 | 194 |
| |
197 | 195 |
| |
198 | 196 |
| |
199 | 197 |
| |
200 | 198 |
| |
201 |
| - | |
| 199 | + | |
| 200 | + | |
202 | 201 |
| |
203 | 202 |
| |
204 | 203 |
| |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
205 | 247 |
| |
206 | 248 |
| |
207 | 249 |
|
modules/dnn/src/onnx/onnx_graph_simplifier.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/onnx/onnx_graph_simplifier.cpp+28Lines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1136 | 1136 |
| |
1137 | 1137 |
| |
1138 | 1138 |
| |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
1139 | 1166 |
| |
1140 | 1167 |
| |
1141 | 1168 |
| |
| |||
1207 | 1234 |
| |
1208 | 1235 |
| |
1209 | 1236 |
| |
| 1237 | + | |
1210 | 1238 |
| |
1211 | 1239 |
| |
1212 | 1240 |
| |
|
modules/dnn/test/test_onnx_importer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/test/test_onnx_importer.cpp+8-2Lines changed: 8 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
| 57 | + | |
| 58 | + | |
58 | 59 |
| |
59 | 60 |
| |
60 | 61 |
| |
| |||
76 | 77 |
| |
77 | 78 |
| |
78 | 79 |
| |
79 |
| - | |
| 80 | + | |
| 81 | + | |
80 | 82 |
| |
81 | 83 |
| |
82 | 84 |
| |
| |||
248 | 250 |
| |
249 | 251 |
| |
250 | 252 |
| |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
251 | 257 |
| |
252 | 258 |
| |
253 | 259 |
| |
|
You can’t perform that action at this time.
0 commit comments