CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 20:06:31 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/"5849e0207324534d94076a992222583e"
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=to86EXVQUseKTuWvncix61xehZWGPbP%2ByWXoqwhoS3%2BUQDdMacSPusJKG00RkjbwdbI6qEm62%2B3nOnGV9QaF14XTnRBCZ9%2Fwr1XDsFgGF9zzXFgnp4gzyODQYspmUvMXQQ1rynx9Q%2Bf19r%2FyxLBC541OvLCZofI66O9deSViUvhnZ5LPMbB%2FUZqioJ03uyl3OukoftFJ34XQyduwu123TbODPpJmc9sVWchJ1mksi4g30zSuAgUpw%2FG0Cm8qlH2JrNqjzf%2Fh8hkL6vD6Hfz08A%3D%3D--uEYjsKUEy%2BfADG6A--4j2FqTzJjMVgfM2kCJi3ng%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.201963853.1753301190; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 20:06:30 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 20:06:30 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B320:36F97A:108F0D3:13A5B96:688140C6
Merge pull request #20535 from SamFC10:onnx-q · opencv/opencv@cce78cc · GitHub
Copy file name to clipboardExpand all lines: modules/dnn/include/opencv2/dnn/all_layers.hpp
Copy file name to clipboardExpand all lines: modules/dnn/src/int8layers/quantization_utils.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/layers/resize_layer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/onnx/onnx_graph_simplifier.cpp
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
Commit cce78cc
authored
Merge pull request #20535 from SamFC10:onnx-q
dnn : int8 quantized layers support in onnx importer
* added quantized layers support in onnx importer
* added more cases in eltwise node, some more checks
* added tests for quantized nodes
* relax thresholds for failed tests, address review comments
* refactoring based on review comments
* added support for unsupported cases and pre-quantized resnet50 test
* relax thresholds due to int8 resize layer1 parent 9085b93 commit cce78ccCopy full SHA for cce78cc
File tree
Expand file treeCollapse file tree
9 files changed
+794
-53
lines changedFilter options
- modules/dnn
- include/opencv2/dnn
- src
- int8layers
- layers
- onnx
- test
Expand file treeCollapse file tree
9 files changed
+794
-53
lines changedmodules/dnn/include/opencv2/dnn/all_layers.hpp
Copy file name to clipboardExpand all lines: modules/dnn/include/opencv2/dnn/all_layers.hpp+7Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
387 | 387 |
| |
388 | 388 |
| |
389 | 389 |
| |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
390 | 397 |
| |
391 | 398 |
| |
392 | 399 |
| |
|
+4-1Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4055 | 4055 |
| |
4056 | 4056 |
| |
4057 | 4057 |
| |
| 4058 | + | |
| 4059 | + | |
| 4060 | + | |
4058 | 4061 |
| |
4059 | 4062 |
| |
4060 | 4063 |
| |
| |||
4389 | 4392 |
| |
4390 | 4393 |
| |
4391 | 4394 |
| |
4392 |
| - | |
| 4395 | + | |
4393 | 4396 |
| |
4394 | 4397 |
| |
4395 | 4398 |
| |
|
+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
| 147 | + | |
147 | 148 |
| |
148 | 149 |
| |
149 | 150 |
| |
| |||
173 | 174 |
| |
174 | 175 |
| |
175 | 176 |
| |
| 177 | + | |
176 | 178 |
| |
177 | 179 |
| |
178 | 180 |
| |
|
modules/dnn/src/int8layers/quantize_dequantize_layer.cpp renamed to modules/dnn/src/int8layers/quantization_utils.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/int8layers/quantization_utils.cpp+53Lines changed: 53 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| 13 | + | |
13 | 14 |
| |
14 | 15 |
| |
15 | 16 |
| |
| |||
77 | 78 |
| |
78 | 79 |
| |
79 | 80 |
| |
| 81 | + | |
80 | 82 |
| |
81 | 83 |
| |
82 | 84 |
| |
| |||
143 | 145 |
| |
144 | 146 |
| |
145 | 147 |
| |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
146 | 194 |
| |
147 | 195 |
| |
148 | 196 |
| |
| |||
153 | 201 |
| |
154 | 202 |
| |
155 | 203 |
| |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
156 | 209 |
| |
157 | 210 |
|
modules/dnn/src/layers/resize_layer.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/layers/resize_layer.cpp+115-39Lines changed: 115 additions & 39 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
| 52 | + | |
| 53 | + | |
52 | 54 |
| |
53 | 55 |
| |
54 | 56 |
| |
| |||
131 | 133 |
| |
132 | 134 |
| |
133 | 135 |
| |
134 |
| - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
135 | 139 |
| |
| 140 | + | |
136 | 141 |
| |
137 | 142 |
| |
138 | 143 |
| |
| |||
164 | 169 |
| |
165 | 170 |
| |
166 | 171 |
| |
167 |
| - | |
| 172 | + | |
168 | 173 |
| |
169 |
| - | |
170 |
| - | |
171 |
| - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
172 | 190 |
| |
173 |
| - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
174 | 194 |
| |
175 |
| - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
176 | 204 |
| |
177 |
| - | |
178 |
| - | |
179 |
| - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
180 | 208 |
| |
181 |
| - | |
182 |
| - | |
| 209 | + | |
183 | 210 |
| |
184 |
| - | |
| 211 | + | |
185 | 212 |
| |
186 |
| - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
187 | 219 |
| |
188 |
| - | |
189 |
| - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
190 | 227 |
| |
191 | 228 |
| |
192 | 229 |
| |
193 | 230 |
| |
194 |
| - | |
| 231 | + | |
195 | 232 |
| |
196 | 233 |
| |
197 | 234 |
| |
| |||
202 | 239 |
| |
203 | 240 |
| |
204 | 241 |
| |
205 |
| - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
206 | 274 |
| |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
| 275 | + | |
212 | 276 |
| |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
221 | 282 |
| |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 |
| - | |
228 |
| - | |
229 |
| - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
230 | 301 |
| |
231 | 302 |
| |
232 | 303 |
| |
| |||
363 | 434 |
| |
364 | 435 |
| |
365 | 436 |
| |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
366 | 442 |
| |
367 | 443 |
| |
368 | 444 |
| |
|
modules/dnn/src/onnx/onnx_graph_simplifier.cpp
Copy file name to clipboardExpand all lines: modules/dnn/src/onnx/onnx_graph_simplifier.cpp+20-1Lines changed: 20 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
594 | 594 |
| |
595 | 595 |
| |
596 | 596 |
| |
597 |
| - | |
| 597 | + | |
| 598 | + | |
598 | 599 |
| |
599 | 600 |
| |
600 | 601 |
| |
| |||
663 | 664 |
| |
664 | 665 |
| |
665 | 666 |
| |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
666 | 685 |
| |
667 | 686 |
| |
668 | 687 |
| |
|
You can’t perform that action at this time.
0 commit comments