Closed emdavis02 closed 4 months ago
The recent updates to the inference module enhance the flexibility of video input and output handling. The _make_provider_from_cli
function now supports multiple paths derived from CSV files, allowing for batch processing of videos. This improvement streamlines the process, improves error handling, and ensures users can easily work with diverse file types and structures.
Files | Change Summary |
---|---|
sleap/nn/inference.py |
Enhanced _make_provider_from_cli to support multiple video inputs and CSV-derived paths; updated return signature to include lists of providers and paths; improved error handling and logging for input files. Main function adjusted to process new return values for batch processing. |
sequenceDiagram
participant User
participant CLI
participant Inference
participant Provider
User->>CLI: Provide input arguments
CLI->>Inference: Call _make_provider_from_cli(args)
Inference->>Provider: Read CSV or Directory
Provider->>Inference: Return list of providers, data paths, output paths
Inference->>Inference: Process each provider and path
Inference->>User: Execute inference and return results
🐇 In fields where video hops and plays,
A change has come to brighten our days.
With paths aplenty from CSVs wide,
We leap through data, our joy our guide.
So gather your clips, let’s dance and prance,
For every input now has a chance! 🎥✨
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?
Description
After having expanded sleap-track to support multiple videos inputs at once, we want to further simplify this process for projects with a large numbers of inputs.
Types of changes
Does this address any currently open issues?
1870
Outside contributors checklist
Thank you for contributing to SLEAP!
:heart:
Summary by CodeRabbit
New Features
Bug Fixes
Documentation