Commit 5fa83eb
committed
Fix ONNX pose parser: handle end2end corner bbox format
End-to-end YOLO models (end2end=True) output bounding boxes as
[x1, y1, x2, y2] (corner format) not [cx, cy, w, h] (center format).
The parser was applying center-to-corner conversion on already-corner
coords, producing garbage negative coordinates — so detections existed
but boxes drew offscreen.
Added format detection heuristic: if v2 > v0 and v3 > v1 and both
within input dimensions, treat as corner format. Otherwise center.
Also added debug logging to console for detection diagnostics.1 parent d945a16 commit 5fa83eb
1 file changed
+34
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
318 | 336 | | |
319 | 337 | | |
320 | 338 | | |
| |||
327 | 345 | | |
328 | 346 | | |
329 | 347 | | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
334 | 352 | | |
335 | 353 | | |
336 | 354 | | |
337 | 355 | | |
338 | 356 | | |
339 | 357 | | |
340 | 358 | | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
341 | 366 | | |
342 | 367 | | |
343 | 368 | | |
| |||
0 commit comments