-
Hello, First of all thanks a lot for this great lib ! I have an issue with SAM and the bbox segmentation. I followed the tutorial here which run perfectly on my notebook. When I use my data which are from a .shp I have a error "No valid pixel coordinates found." Here is my code :
Here is the error:
TypeError Traceback (most recent call last) File ~\Anaconda3\envs\Yolo8\lib\site-packages\samgeo\samgeo.py:559, in SamGeo.predict(self, point_coords, point_labels, boxes, point_crs, mask_input, multimask_output, return_logits, output, index, mask_multiplier, dtype, return_results, **kwargs) TypeError: 'NoneType' object is not subscriptable My bbox_list look like this: I have tried different format but can't find a way to have a segmentation. Can you help me ? Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
What is the crs of the image? |
Beta Was this translation helpful? Give feedback.
You are my hero !
Solution :
raster in EPSG:3857
.shp stays in EPSG:4326
then :