facebookresearch / facebookresearch/sam3

Printing torch properties fails on the Jetson Orin Agx

Open
#285 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
11.7k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

Platform:
* Jetson orin agx 32GB
* CUDA Version: 12.6
* PyTorch Version: 2.5.0a0+872d972e41.nv24.08

This line crashes the app (sam3_video_predictor.py:125)
```
logger.debug(
f"started new session {session_id}; {self._get_session_stats()}; "
f"{self._get_torch_and_gpu_properties()}"
)
```

With following error:
```
Error: Failed to start inference session: 'utf-8' codec can't decode byte 0x9e in position 116: invalid start byte
```

After removing the problematic code works as expected

Contributor guide

Open the contributing guide

Research direction

Start in sam3_video_predictor.py around line 125 and trace _get_torch_and_gpu_properties() while reproducing the failure on the Jetson Orin AGX environment described. Confirm that starting an inference session no longer fails with the UTF-8 decoding error when the debug message is assembled, and verify the existing inference path still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
computer-vision, machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.