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
I wanted to run sam.predict() on an image for which I previously generated a vector file (.shp) containing several point geometries indicating the objects I want to segment. The documentation says that the points to be used in sam.predict() can also be specified as a file path to a vector dataset. However, I keep receiving an error (see below). I think the error lies in the vector_to_geojson() function that gets called within predict(). If I don't supply it with a URL then it fails because it wants to call download_file() but I only specify a file path so I would not expect download_file() to be called. Is this a bug? Or did I misunderstand the allowed input format?
Environment Information
Description
I wanted to run sam.predict() on an image for which I previously generated a vector file (.shp) containing several point geometries indicating the objects I want to segment. The documentation says that the points to be used in sam.predict() can also be specified as a file path to a vector dataset. However, I keep receiving an error (see below). I think the error lies in the vector_to_geojson() function that gets called within predict(). If I don't supply it with a URL then it fails because it wants to call download_file() but I only specify a file path so I would not expect download_file() to be called. Is this a bug? Or did I misunderstand the allowed input format?
What I Did
Code:
Output:
The text was updated successfully, but these errors were encountered: