Skip to content

sam.predict with BBOX : No valid pixel coordinates found. TypeError: 'NoneType' object is not subscriptable #270

Answered by alex6H
alex6H asked this question in Q&A
Discussion options

You must be logged in to vote

You are my hero !

Solution :
raster in EPSG:3857
.shp stays in EPSG:4326

then :

# Use box prompts
sam.predict(
            boxes= bbox_list,
            point_crs="EPSG:4326",
            output="mask2.tif", 
            dtype="uint8",
           )

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@alex6H
Comment options

@alex6H
Comment options

@giswqs
Comment options

@alex6H
Comment options

Answer selected by alex6H
@alex6H
Comment options

@giswqs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants