We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
grounded-sam-2-auto-label.ipynb
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'.
No response
The text was updated successfully, but these errors were encountered:
Hi @capjamesg 👋🏻 could you take a look at this?
Sorry, something went wrong.
@eddy961206 I have just pushed a fix to the autodistill-grounded-sam-2 package. This issue should now be fixed. Can you try to run the notebook again?
autodistill-grounded-sam-2
Please note that installation may take several minutes as SAM 2 is a large package that takes a while to build in development environments.
@capjamesg It works perfectly. Thanks for your great work!!!
No branches or pull requests
Search before asking
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
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: