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 got `MissingConfigException: Cannot find primary config 'sam2_hiera_l.yaml'`
This is usually because you haven't run the pip install -e . step above, so sam2_configs isn't in your Python's sys.path. Please run this installation step. In case it still fails after the installation step, you may try manually adding the root of this repo to PYTHONPATH via
export SAM2_REPO_ROOT=/path/to/segment-anything # path to this repoexport PYTHONPATH="${SAM2_REPO_ROOT}:${PYTHONPATH}"
to manually add sam2_configs into your Python's sys.path.
But I can't find out
how sam2_configs are inserted by executing
pip install -e .
I know that acting means python setup.py
But in that file there is no indication that insert python.syspath
The text was updated successfully, but these errors were encountered:
Please reopen or create a new issue if you encounter failures with this step.
I know that acting means python setup.py
But in that file there is no indication that insert python.syspath
Regarding pip install -e ., it would usually create a link to the SAM 2 repo path (in my environment, it adds a link in my Anaconda environment at ~/anaconda3/envs/base/lib/python3.10/site-packages/__editable__.SAM_2-1.0.pth) to allow editable installations. See details in https://setuptools.pypa.io/en/latest/userguide/development_mode.html and pypa/setuptools#3548.
By the segment-anything-2/INSTALL.md's comment
It says that
This is usually because you haven't run the
pip install -e .
step above, sosam2_configs
isn't in your Python'ssys.path
. Please run this installation step. In case it still fails after the installation step, you may try manually adding the root of this repo toPYTHONPATH
viato manually add
sam2_configs
into your Python'ssys.path
.But I can't find out
how sam2_configs are inserted by executing
I know that acting means python setup.py
But in that file there is no indication that insert python.syspath
The text was updated successfully, but these errors were encountered: