transformers - 💡(How to fix) Fix difference in performance of sam3 video model compared to original sam3 implementation

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Hi, i ran the original sam3 video model (from meta) and the transformers sam3 video model on the same video with the same text prompt. I noticed that the original sam3 model detections were more accurate, and even that in the transformers' version some frames didn't have detections at all (whereas the original sam3 did correctly detect the object). i attached an example frame.

<img width="1436" height="1077" alt="Image" src="https://github.com/user-attachments/assets/0f67ae17-fc7a-45c8-9ddd-bebfaecbd69f" /> <img width="1436" height="1077" alt="Image" src="https://github.com/user-attachments/assets/ada8e09f-1b44-4607-b172-127890e42865" />

i also noticed that the transformers model takes less GPU memory, and runs faster, so maybe it is initialized with different hyper-parameters compared to the original?

bottom line, i expected the results to be identical. any reason for such a difference? i use the same code for video loading\processing in both cases.

help would be greatly appriciated,.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING