Add NVIDIA Jetson Orin platform support#418
Add NVIDIA Jetson Orin platform support#418oldhero5 wants to merge 1 commit intofacebookresearch:mainfrom
Conversation
Adds platform detection module with auto-configuration for Jetson vs x86, comprehensive unit tests, and quick install script with automatic detection. Fixes: - Replace decord with decord2 for ARM64 compatibility (closes facebookresearch#240) - Fix UTF-8 encoding crash in video predictor on Jetson (closes facebookresearch#285) - Clarify Python version requirements for edge devices (addresses facebookresearch#243) Added: - sam3/platform.py: Platform detection utilities (is_jetson, get_platform_info) - tests/test_platform.py: 18 unit tests with comprehensive mocking - install.sh: Auto-detecting installation script - Comprehensive Jetson installation documentation (docs/JETSON_SETUP.md) - Test script for Jetson platforms (examples/jetson_test.py) - Jetson-specific installation section in README.md - [jetson] extras in pyproject.toml for jetson-stats Tested on: - NVIDIA Jetson AGX Orin Developer Kit - JetPack 6.2 (L4T R36.4.7) - Python 3.10.12 - PyTorch 2.8.0 - CUDA 12.6.68
|
Hi @oldhero5! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
Summary
Adds NVIDIA Jetson Orin platform support to SAM3, enabling the model to run on edge devices.
Key Changes:
decordtodecord2for ARM64 compatibilityFixes: #240, #285
Addresses: #243
Changes
New Files
sam3/platform.pytests/test_platform.pyinstall.shdocs/JETSON_SETUP.mdexamples/jetson_test.pyModified Files
README.mdpyproject.toml[jetson]extras, updated to Python >=3.9, decord2sam3/__init__.pysam3/model/sam3_video_predictor.pyTest Plan
ufmt checkpasses on all new/modified Python filespytest tests/test_platform.py- 18 unit tests passTest Configuration
Performance Results
Breaking Changes
None. All existing functionality is preserved.
Additional Notes