You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get error with following lines: from sam2.build_sam import build_sam2 from sam2.sam2_image_predictor import SAM2ImagePredictor
the message says:Unresolved reference 'sam2'
I have already excuted the command : pip install -e ".[notebooks]"
but I still can not import the package “sam2”
and another question,why is the root directory doesn't contain init.py,is this the reason?
could you please help?thanks
The text was updated successfully, but these errors were encountered:
Hi @qycherry, it's likely because the installation didn't work properly. In case reinstallation doesn't resolve the issue, you can try manually adding it to the path as follows
export PYTHONPATH=<your-path-to-sam2-repo>
where <your-path-to-sam2-repo> is the repo path you cloned that contains the sam2 directory.
I get error with following lines:
from sam2.build_sam import build_sam2
from sam2.sam2_image_predictor import SAM2ImagePredictor
the message says:Unresolved reference 'sam2'
I have already excuted the command :
pip install -e ".[notebooks]"
but I still can not import the package “sam2”
and another question,why is the root directory doesn't contain init.py,is this the reason?
could you please help?thanks
The text was updated successfully, but these errors were encountered: