Skip to content

fix(ui): render OBB and classification result tables - #271

Merged
isLinXu merged 1 commit into
Tencent:mainfrom
onion-hong:codex/fix-webui-task-results
Sep 11, 2026
Merged

fix(ui): render OBB and classification result tables#271
isLinXu merged 1 commit into
Tencent:mainfrom
onion-hong:codex/fix-webui-task-results

Conversation

@onion-hong

Copy link
Copy Markdown
Contributor

The WebUI exposes OBB and classification tasks but builds its result table only from Results.boxes. An image with one rotated detection is plotted correctly while the table and object count show zero.

Read OBB coordinates and angle from Results.obb; read top class probabilities from Results.probs. Preserve horizontal-box output and label classification summaries as classes shown. Remove the silent per-row exception handler so malformed results are not presented as successful zero detections.

Validation: 4 tests passed on this independent branch using real Results containers for OBB, horizontal detection, empty detection and classification. Tests execute the actual inference method with a fake model; they do not require Gradio installation or model downloads. This validates result parsing, not a live browser rendering session. Test Ruff lint/format, production critical-error lint and git diff --check pass. Repository-wide lint/format retain existing findings; codespell is unavailable.

Based directly on main b44ea12. No training or A2 changes included.

@isLinXu

isLinXu commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

LGTM

@isLinXu
isLinXu merged commit 639c405 into Tencent:main Sep 11, 2026
12 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants