| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I pulled this and analyzed some videos across a bunch of DLC projects. Works great, thanks for the simplification. LGTM. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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.