Skip to content

feat(gui): add guided workflow map and training-folder summaries - #3

Merged
btmlnsn merged 37 commits into
btmlnsn:publication/stagingfrom
alisaficiciyan:pr/workflow-map-training-ux
Sep 23, 2026
Merged

btmlnsn merged 37 commits into
btmlnsn:publication/stagingfrom
alisaficiciyan:pr/workflow-map-training-ux

Conversation

@alisaficiciyan

Copy link
Copy Markdown

Summary

Author and primary contributor: Alisa Ficiciyan

Integration and test refinements: Bobby Tomlinson

This PR adds a guided in-app workflow map, contextual resource links, and behavior-count summaries for Categorizer training folders. Together, these improvements help users understand the LabGym workflow, find relevant guidance in context, and assess whether behavior-example folders are sufficiently balanced before training.


Changes

Resource Integration

Problem
Users had no way to access the YouTube tutorial videos directly through the LabGym interface. The Home Page link pointed to the GitHub repo rather than the LabGym site, and there was no way to jump from a given step to more detailed guidance without leaving the app.

Implementation
Added YouTube tutorial hyperlinks to the Preprocessing Video, Draw Markers, Train Detectors, and Sort Behavior Examples panels. Updated the Home Page link to point to labgym.org.

Impact
Users can access relevant tutorials and documentation without leaving their current task, helping new users orient themselves within the overall LabGym workflow.


Workflow Map Tab

Problem
LabGym’s multi-stage workflow (video prep, tracking, classification, post-classification analysis) wasn’t visualized anywhere in the app, making it hard for new users to see how the different panels fit together or which Practical Guide sections applied to each step.

Implementation
Added a persistent, non-closable Workflow Map tab (WorkflowMapPanel in gui_main.py) that draws a color-coded diagram of the 4 workflow sections and their steps. Clicking a box opens a popup (BoxInfoPopup) describing that step with hyperlinks to the corresponding Practical Guide pages. Added a color-coded “i” info button (add_info_button in gui_utils.py) to the top of most panels that jumps directly to the Workflow Map tab, colored to match the workflow section it belongs to.

Impact
Gives users a persistent visual reference for the LabGym pipeline and one-click access to step-specific documentation, making the workflow easier to learn and navigate.


Categorizer Example Counts

Problem
When preparing or sorting behavior training examples, users had no easy way to see how many examples existed per behavior category, making it hard to know whether they’d collected enough or well-balanced data before training a categorizer.

Implementation
Added an automatic behavior count detention triggered when a folder is selected for prepared training examples or sorted behavior examples in PanelLv2_TrainCategorizers (gui_categorizer.py). A “View Behavior Counts” button appears once counts are available, opening a popup listing each behavior and its count. Counts are highlighted yellow when more than 1 standard deviation from the mean, and shown in red text with an “add: N” hint when below a user-adjustable minimum threshold (default 250). Titles differentiate the “Prepared Training Examples” and “Sorted Behavior Examples” popups. Both popups also include a legend explaining the meanings of red text and yellow highlighting, plus a threshold input so users can change the minimum on the fly.

Impact
Helps users quickly spot underrepresented or imbalanced behavior categories before training, improving categorizer training data quality without manually counting files.

Appearance and navigation refinements

Improved Workflow Map navigation so information shortcuts follow the actual notebook page identity, not fixed tab positions. Added native light/dark appearance support for the map and standardized related link styling and runtime application icons.


Testing

Automated focused validation on the prepared component branch:

  • 31 tests passed.
  • Covered behavior-count rules, workflow-map navigation and transforms, notebook-page identity, and GUI appearance.
  • Behavior-count coverage includes empty folders, single-class folders, and folders containing AVI/JPG example pairs.

Manual testing:

  • Comprehensive visual smoke-testing

Known limitations:

  • None ; the Workflow Map is an in-app orientation and navigation aid

alisaficiciyan and others added 30 commits September 23, 2026 16:23
…sics to the bottom left of the UI in the preprocessing videos window
…markers in preprocessing to the bottom left of the UI in the draw markers window
…ubtraction to the bottom left of the UI in the analyze behaviors window
…that directs users to the workflow map tab. The button is colored with the corresponding color in the workflow map.
…is; changed the color of the i button to purple for the pages that correspond to this 4th section
…ap and get a pop-up including a description of what that step does, and which sections in the practical guide correspond to that step
…ames in the pop-ups; changed the pop-up positioning to always be in the center of the LabGym window; changed the hyperlinks to the specific parts/sections of the guide
… for the prepared training examples. Displays all the behavior names and the number of examples that exist for each of those behaviors.
…o prepared training examples. 4 examples counts are displayed per row, and each example count is highlighted yellow if it is 1 SD away from the mean count, and in red text if the count is <250.
…eed to be added to each behavior to reach 250. If an example count is past the 250 threshold, then it is not displayed.
…prepared examples, a button will pop up. Once you click on the button, the text box that displays all the behavior counts will appear as a pop up centered in the labgym window. Click anywhere else in the labgym window to exit the pop up.
…ddition to the prepared training examples folder.
…r. Added a legend to the top of both pop-ups explaining what the red text and yellow highlighting indicate.
…Detector using LabGym” embedded in home/training_module/train_detectors; “Sorting Behavior Examples using LabGym” embedded in home/training_module/sort_behavior_examples
@btmlnsn btmlnsn changed the title Pr/workflow map training ux feat(gui): add guided workflow map and training-folder summaries Sep 23, 2026
@btmlnsn
btmlnsn merged commit 69a9d9e into btmlnsn:publication/staging Sep 23, 2026
6 checks passed
@btmlnsn

btmlnsn commented Sep 23, 2026

Copy link
Copy Markdown
Owner

Great work!

@btmlnsn

btmlnsn commented Sep 23, 2026

Copy link
Copy Markdown
Owner

Onto the next 👍🏻

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