Skip to content
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

Add grounded sam 2 #355

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions experimental/beacon_dist/utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def test_valid_configuration_loss_bad_prediction_yields_nonzero_loss(self):
loss = valid_configuration_loss(batch.class_label, query, model_output)

# Verification
self.assertGreater(loss, 0.0)
self.assertGreater(loss.item(), 0.0)

def test_valid_configuration_loss_missing_exclusive_keypoints_are_valid(self):
# Setup
Expand All @@ -136,7 +136,7 @@ def test_valid_configuration_loss_missing_exclusive_keypoints_are_valid(self):
loss = valid_configuration_loss(batch.class_label, query, model_output)

# Verification
self.assertAlmostEqual(loss, 0.0)
self.assertAlmostEqual(loss.item(), 0.0)

def test_query_from_class_samples(self):
# Setup
Expand Down
4 changes: 2 additions & 2 deletions third_party/python/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ load("@pip//:requirements.bzl", "requirement")

compile_pip_requirements_3_8(
name = "requirements_3_8",
requirements_in=":requirements.in",
requirements_in=":requirements_3_8.in",
requirements_txt=":requirements_3_8.txt",
extra_args=["--allow-unsafe"],
timeout="eternal",
)

compile_pip_requirements_3_10(
name = "requirements_3_10",
requirements_in=":requirements.in",
requirements_in=":requirements_3_10.in",
requirements_txt=":requirements_3_10.txt",
extra_args=["--allow-unsafe"],
timeout="eternal",
Expand Down
25 changes: 25 additions & 0 deletions third_party/python/requirements_3_10.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
sympy==1.13.1
numpy==1.24.4
jupyterlab==4.0.8
matplotlib==3.7.5
Pillow==10.4.0
pandas==1.5.3
scikit-learn==1.2.0
tqdm==4.67.1
opencv-python==4.7.0.72
Wand==0.6.11
torch==2.5.1
setuptools==67.6.1
ipdb==0.13.13
ipympl==0.9.3
beautifulsoup4==4.12.2
line_profiler==4.0.3
PyYAML==6.0
PyGObject==3.44.1
click==8.1.7
spatialmath-python==1.1.8
reportlab==4.1.0
seaborn==0.13.2
depthai==2.28.0.0
rosbags==0.9.23
sam-2 @ git+https://github.com/IDEA-Research/Grounded-SAM-2.git@dd4c5141b75e4838dd486c64f773c43b4db3a07b
Loading