Closed hajin-park closed 4 months ago
Attention: Patch coverage is 42.85714%
with 4 lines
in your changes missing coverage. Please review.
Project coverage is 74.13%. Comparing base (
7ed1229
) to head (33c9d62
). Report is 20 commits behind head on develop.
Files | Patch % | Lines |
---|---|---|
sleap/gui/learning/runners.py | 0.00% | 3 Missing :warning: |
sleap/nn/training.py | 66.66% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
The recent updates introduce several enhancements to visualization management in the SLEAP project. Key changes include renaming the save_viz
argument to view_viz
, adding new arguments delete_viz
and keep_viz
, and updating configuration settings across various files. These modifications improve user control over the retention and deletion of prediction visualization images during training and inference processes.
File(s) | Change Summary |
---|---|
docs/guides/cli.md , docs/notebooks/Training_and_inference_on_an_example_dataset.ipynb |
Renamed save_viz to view_viz , added delete_viz , introduced keep_viz argument |
sleap/config/pipeline_form.yaml , sleap/gui/learning/runners.py , sleap/nn/config/outputs.py , sleap/nn/training.py |
Added keep_viz , renamed save_visualizations to view_visualizations , added delete_viz , updated logic for saving/deleting visualization images |
sleap/training_profiles/... |
Renamed save_visualizations to view_visualizations , added delete_viz_images , introduced keep_viz_images parameter |
tests/data/models/... |
Added keep_viz_images parameter to various model configuration files |
tests/gui/test_dialogs.py |
Removed import of os |
tests/nn/test_training.py |
Updated test functions to include tmp_path for temp directories, added test_keep_viz_cli for testing the --keep_viz CLI option |
sequenceDiagram
participant User
participant CLI
participant TrainingModule
participant ConfigHandler
participant VizHandler
User->>CLI: Run training with --view_viz and --keep_viz
CLI->>ConfigHandler: Load configuration
ConfigHandler-->>CLI: Configuration loaded
CLI->>TrainingModule: Start training
TrainingModule->>VizHandler: Generate visualizations
VizHandler-->>TrainingModule: Visualizations generated
TrainingModule-->>CLI: Training completed
CLI-->>User: Training results with visualizations retained
In the code, we made a change,
Visualization rules rearrange.
View or keep, it's up to you,
Delete the old, display the new.
A rabbit's touch, small yet bright,
Enhances tools for clearer sight.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
From subgroup:
save_visualizations
@coderabbitai review
Description
This PR clarifies the use of the
Visualize Predictions During Training
checkbox by adding a newKeep Prediction Visualization Images After Training
checkbox to the training config GUI. If training visualization images are enabled, the images are deleted after training by default unless the new checkbox is enabled (checked).Types of changes
Does this address any currently open issues?
1016
Outside contributors checklist
Thank you for contributing to SLEAP!
:heart:
Summary by CodeRabbit
New Features
--keep_viz
argument to retain prediction visualization images after training.--save_viz
argument to--view_viz
.--delete_viz
argument for deleting visualization images after training.Tests
test_keep_viz_cli
to check the functionality of the--keep_viz
option.