Skip to content

Conversation

@maximpavliv
Copy link
Contributor

@maximpavliv maximpavliv commented Aug 22, 2025

This PR removes additional snapshot validation and fallback logic that had been introduced in #3036.

These checks are redundant, since snapshot resolution and validation are already fully handled by utils.py and the Snapshot class. Duplicating this logic inside dlc_torch.analyze_videos() made the method unnecessarily long and difficult to follow.

analyze_videos() is a high-level orchestration method (creating inference runners, loading models, running inference, tracking, etc.), and is not the right place for such low-level checks. If changes of this kind are needed, they should be implemented in utils.py, in the Snapshot class, or in the TorchSnapshotManager class, in order to respect the modularity principle and keep responsibilities clearly separated.

This cleanup improves readability and maintainability of the code, while keeping snapshot handling logic centralized where it belongs.

@maximpavliv maximpavliv requested a review from AlexEMG August 22, 2025 15:00
@MMathisLab MMathisLab self-requested a review August 24, 2025 20:29
@arashsm79
Copy link
Contributor

I pulled this and analyzed some videos across a bunch of DLC projects. Works great, thanks for the simplification.

LGTM.

@AlexEMG AlexEMG merged commit 2b30006 into main Sep 16, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants