Open GPIOX opened 9 months ago
The first problem may be the python version, >= 3.9
Hello, may I ask if I have the following error, how should I solve it?
Traceback (most recent call last):
File "D:\MobileSAM\MobileSAMv2\Inference.py", line 122, in
Hi, it usually means that the model didn't predict any object on that image, so the obj_results is empty.
Hi, it usually means that the model didn't predict any object on that image, so the obj_results is empty.
But I used the official photo input, why did I fail to predict the object? I also reported the same error when I used another photo input
python 3.9, same question
Thank you for releasing MobileSAMv2. It is a useful tool in my research and saves more training time and memory
I would report two bugs in using MobileSAMv2 and I deal with these questions:
1. TypeError: 'type' object is not subscriptable: Many codes such as scale_factor: list[float] or None = None, report TypeError.
To do this correctly, maybe you should try:
from typing import List, Dict, Tuple scale_factor: List[float] or None = None
2. MobileSAMv2/efficientvit/models/nn/act.py: 21 Line: "gelu": partial(nn.GELU, approximate="tanh") report ValueError: partial object functools.partial(<class 'torch.nn.modules.activation.GELU'>, approximate='tanh') has incorrect arguments
My solution is replacing "partial(nn.GELU, approximate="tanh")" as nn.GELU
This is the first time I've used the issue feature, so I apologize for any mistakes.