-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Search before asking
- I have searched the Roboflow Notebooks issues and found no similar bug report.
Notebook name
grounded-sam-2-auto-label.ipynb
Bug
I didn't modify 'grounded-sam-2-auto-label.ipynb'.
When I execute
'from autodistill_grounded_sam_2 import GroundedSAM2'
cell,
I get an error like this :
ModuleNotFoundError Traceback (most recent call last)
in <cell line: 1>()
----> 1 from autodistill_grounded_sam_2 import GroundedSAM2
2 frames
/usr/local/lib/python3.10/dist-packages/autodistill_grounded_sam_2/helpers.py in load_SAM()
77 urllib.request.urlretrieve(url, SAM_CHECKPOINT_PATH)
78
---> 79 from sam2.build_sam import build_sam2
80 from sam2.sam2_image_predictor import SAM2ImagePredictor
81
ModuleNotFoundError: No module named 'sam2'
I exectued 'pip install git+https://github.com/autodistill/autodistill-grounded-sam-2 rf_groundingdino -q' this cell before. but I can't find why it can't find module named 'sam2'.
Environment
- Google Colab
- Window
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
- Yes I'd like to help by submitting a PR!