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

The software crashes when loading the model #185

Open
lonelywanderer8 opened this issue Sep 1, 2024 · 3 comments
Open

The software crashes when loading the model #185

lonelywanderer8 opened this issue Sep 1, 2024 · 3 comments

Comments

@lonelywanderer8
Copy link

I encountered a software crash while loading the SAM model.
Error message:
Traceback (most recent call last):
File "D:\anaconda\envs\anylabelme\lib\site-packages\anylabeling\utils.py", line 15, in run
self.func(*self.args, **self.kwargs)
File "D:\anaconda\envs\anylabelme\lib\site-packages\anylabeling\services\auto_labeling\model_manager.py", line 438, in _load_model
from .segment_anything import SegmentAnything
File "D:\anaconda\envs\anylabelme\lib\site-packages\anylabeling\services\auto_labeling\segment_anything.py", line 20, in
from .sam2_onnx import SegmentAnything2ONNX
File "D:\anaconda\envs\anylabelme\lib\site-packages\anylabeling\services\auto_labeling\sam2_onnx.py", line 11, in
class SegmentAnything2ONNX:
File "D:\anaconda\envs\anylabelme\lib\site-packages\anylabeling\services\auto_labeling\sam2_onnx.py", line 20, in SegmentAnything2ONNX
def encode(self, cv_image: np.ndarray) -> list[np.ndarray]:
TypeError: 'type' object is not subscriptable

@pinnintipraneethkumar
Copy link
Contributor

which python version you are using? if you are using python 3.8 and earlier please upgarde to python3.9 or later and try.

@zhoujialos
Copy link

I also encountered a software crash while loading the SAM model. My python version is python3.12

@chrish222
Copy link

chrish222 commented Oct 10, 2024

Also application crash while loading the SAM model (tried 2 models, which are downloaded from huggingface). My Python version is 3.10.6 (win10). Using the latest standalone-gpu exe ([0.4.8]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants