-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Migrate image and video utilities from vlm-tools #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
|
vlmrun/common/__init__.py
Outdated
|
|
||
| from .image import encode_image, download_image | ||
|
|
||
| __all__ = ["encode_image", "download_image"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the init file and make users import image utilities via from vlmrun.common.image import encode_image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve the requirements conflicts and rebase on main.
- Add encode_image and download_image functions - Add VideoItertools for CLIP-based frame sampling - Add comprehensive tests and documentation - Update dependencies and README Co-Authored-By: Sudeep Pillai <[email protected]>
- Move CLIP import inside try block - Make VideoItertools import optional in __init__.py - Allow image utilities to work without torch dependencies Co-Authored-By: Sudeep Pillai <[email protected]>
Co-Authored-By: Sudeep Pillai <[email protected]>
- Fix frame_generator fixture to use proper iterator pattern - Add hasattr check in VideoItertools.__del__ for safer cleanup Co-Authored-By: Sudeep Pillai <[email protected]>
Co-Authored-By: Sudeep Pillai <[email protected]>
…paths - Remove vlmrun/common/__init__.py to enforce explicit imports - Update test_image.py to import directly from image module - Update README.md examples to use direct imports This change improves code clarity by making imports more explicit. Co-Authored-By: Sudeep Pillai <[email protected]>
5fffcf9 to
86e5f08
Compare
Migrate Image and Video Utilities from vlm-tools
This PR migrates utility methods for image, video, and other tools from vlm-tools to vlmrun-python-sdk, specifically into the vlmrun/common directory.
Changes
Testing
Link to Devin run: https://app.devin.ai/sessions/6ee804e6261142bb9b1fd0f7c5299a8d
Instructions from user: