fix(ui): render OBB and classification result tables - #271
Merged
Conversation
Collaborator
|
LGTM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.