-
Notifications
You must be signed in to change notification settings - Fork 67
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
I have this problem.IndexError: list index out of range. #55
Comments
It looks like |
Can you share your code? |
from metaseg import sahi_sliced_predict, SahiAutoSegmentation image_path = "A-9.bmp" print(boxes) the source code is as follows.When I use some pictures(image_path), I report this error. |
Can you try making the extension of the image png or jpg? |
As mentioned in #67 I found that commenting out the second "result" variable right after the get_sliced_predicition properly passed the output boxes to SahiAutoSegmentation().image_predict where as before it was always an empty array. its found in sahi_predictor.py
|
[]
vit_b model already exists as 'vit_b.pth'. Skipping download.
Traceback (most recent call last):
File "e:/AIGC/segment-anything-video/test", line 17, in
SahiAutoSegmentation().predict(
File "e:\AIGC\segment-anything-video\metaseg\sahi_predict.py", line 87, in predict
if type(input_box[0]) == list:
IndexError: list index out of range
how to deal it?
this
if type(input_box[0]) == list:input_boxes, new_boxes = multi_boxes(input_box, predictor, read_image)
The text was updated successfully, but these errors were encountered: