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
sam.predict(boxes=boxes, point_crs="EPSG:4326", output="mask.tif", dtype="uint8")
The code line in the section "Segment the image" can not work just with the origin codes in "sam2_box_prompt2". the error is "IndexError: too many indices for array: array is 3-dimensional, but 4 were indexed" and who can help me out?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
sam.predict(boxes=boxes, point_crs="EPSG:4326", output="mask.tif", dtype="uint8")
The code line in the section "Segment the image" can not work just with the origin codes in "sam2_box_prompt2". the error is "IndexError: too many indices for array: array is 3-dimensional, but 4 were indexed" and who can help me out?
Beta Was this translation helpful? Give feedback.
All reactions