Repository navigation
Conversation
…ithub, removed the user guide link
…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
…abGym workflow map
…layout/sizing with different window sizes
…ish the 3 sections from each other
…that directs users to the workflow map tab. The button is colored with the corresponding color in the workflow map.
… now preprocessing says its optional
…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.
…um threshold value
…which was unecessary
…Detector using LabGym” embedded in home/training_module/train_detectors; “Sorting Behavior Examples using LabGym” embedded in home/training_module/sort_behavior_examples
Owner
|
Great work! |
Owner
|
Onto the next 👍🏻 |
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.
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:
Manual testing:
Known limitations: