Make this repo installable as pip package#150
Open
hongjiaherng wants to merge 2 commits intov-iashin:masterfrom
Open
Make this repo installable as pip package#150hongjiaherng wants to merge 2 commits intov-iashin:masterfrom
hongjiaherng wants to merge 2 commits intov-iashin:masterfrom
Conversation
…h pyproject.toml - Restructured codebase into video_features namespace package - Added pyproject.toml with hatchling build backend - Moved main.py to video_features/__main__.py for CLI entry point - Updated all imports to use video_features namespace - Fixed path resolution for configs and checkpoints using importlib.resources - Added optional dependencies for CPU/CUDA PyTorch with uv index support - Updated test utilities to use new package structure and fix PyTorch 2.6 compatibility - Fixed cross-drive path issues on Windows in sanity_check - All tests now pass with updated imports and paths
- Initialize Git LFS configuration - Track large checkpoint files (*.pth in vggish/hub/checkpoints) - Note: GitHub doesn't allow LFS uploads to public forks, so these files remain in .gitignore - Files will be automatically downloaded by the package when needed via torch.hub
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.
Description
This PR explores making
video_featuresusable as a pip-installable Python package, in addition to the existing script/Conda workflow.I was able to:
pip/uvExtractI3Dprogrammatically in another projectThis is an early PR to check whether this direction makes sense before spending time polishing, testing, and documenting. (i vibe-coded it)
What this enables
Install as a package
Use programmatically
Still usable as a CLI
Notes
Questions
video_featurespip-installable aligned with the project goals?ExtractI3D) as a public API acceptable?Thanks for taking a look!