Skip to content

Conversation

@Juliaj
Copy link

@Juliaj Juliaj commented Nov 30, 2025

Sync fork with upstream main.

Testing

  • This has been pushed to test py-pi with version rai-gsam2 1.0.1.
pip install --extra-index-url https://test.pypi.org/simple/ rai-gsam2==1.0.1

rentainhe and others added 30 commits September 5, 2024 14:57
* support sam 2.1

* refine config path and ckpt path

* update README
* update dockerfile

* fix: zero object detection error

* fix: zero object detection error
rentainhe and others added 12 commits April 21, 2025 01:06
Co-authored-by: Sami Haidar Wehbe <sami@autoenhance.ai>
IDEA-Research#97)

* feat:add grounded_sam2_tracking_camera_with_continuous_id.py (closes IDEA-Research#74)

* update README
`all_class_names` was not sorted together along with `all_object_ids` and `all_object_boxes`. This causes issue when drawing boxes on multi-class grounding detection.
…scoring candidate (IDEA-Research#118)

* Update setup.py

support 5090

* Update grounded_sam2_local_demo.py

fix: handle (N,K,H,W) masks when multimask_output=True by picking the top-scoring candidate

When multimask_output=True, the predictor returns masks with shape (N,K,H,W). The previous code called squeeze(1) assuming K==1 and crashed (“cannot select an axis to squeeze out…”).
This patch selects the best candidate per instance (argmax over scores) to reduce it to (N,H,W).

Note: similar assumptions may exist in other files, but I haven't tested them, so this change is scoped to this file only.
…process_grounded_object_detection for compatibility with the latest version of transformers (IDEA-Research#119)
@Juliaj Juliaj changed the title Sync with upstream main Sync fork with upstream main Nov 30, 2025
@Juliaj
Copy link
Author

Juliaj commented Nov 30, 2025

@maciejmajek, I saw you had trouble to sync with upstream main. This is my attempt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.