Repository navigation
fix(app): tidy class labels and input shapes on application cards - #62
Merged
Merged
Conversation
The application card listed the Human Detection model's class labels under a Keywords heading, which only fits keyword spotting. Each application can now name its class label field: the vision card shows Label: Person detected, and keyword spotting keeps its Keywords list.
nikunj95
force-pushed
the
fix/bcc-hd-label
branch
from
October 30, 2026 21:34
0481a47 to
eced45e
Compare
More Information put the class labels on a row of their own under the Keywords or Label heading. They now start on the heading's line, and when keyword spotting's labels wrap, the following rows start under the first label rather than back under the heading.
The captain chose wrapped keyword rows that start where the Keywords heading starts, so each row after the first uses the card's full width. The labels now sit in the heading's own wrapping line instead of a nested row beside it.
The AkidaTag reports a keyword model's input shape as 49 x 10 x 1 while the BrainBoard1500 reports 49x10x1. More Information now drops the spaces, so every board's shape reads like 49x10x1 or 96x96x3.
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.
Three changes to the More Information section of an application card, both from the captain's testing of the keyword spotting and human detection demos.
A heading that fits the demo. The Vision Human Detection card listed its class label under a Keywords heading ("Keywords: person"). That heading fits keyword spotting, where the labels are the words the board listens for, but the vision demo only says whether a person is in view. The board's details reply carries each model's class labels (already without silence and unknown); the app put every application's labels under one hard-coded heading. Each application can now name that field itself:
Label:withPerson detected. The board sendspersonin lowercase, so the app capitalizes it.Keywords:with the labels as the board sends them.Labels on the heading's line. The labels used to sit on a row of their own under the heading. They now start on the heading's line, so the vision card reads
Label: Person detectedon one line. The heading and its labels share one wrapping line, so when keyword spotting's ten labels wrap, the following rows start at the left edge of the word Keywords and use the card's full width. This looks the same on the BrainBoard1500 and the AkidaTag, which report the same ten keywords.One way to write an input shape. The AkidaTag reports its keyword model's input shape as
49 x 10 x 1, while the BrainBoard1500 reports49x10x1and96x96x3. The card now drops the spaces, so every board's shape reads like49x10x1.__tests__/formatInputShape.test.tscovers both spellings.This changes only the app; the board firmware and its wire format are untouched.
__tests__/applicationClassLabels.test.tsxopens More Information on both cards and pins each heading together with its labels on one line.How to test
49 x 10 x 1. The keywords have the same layout as step 5: the keywords start on the Keywords: line and the wrapped rows start at the left edge of the word Keywords.