microsoft / farmvibes-ai

FarmVibes.AI: Multi-Modal GeoSpatial ML Models for Agriculture and Sustainability

Home Page:https://microsoft.github.io/farmvibes-ai/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error running basemap_segmentation workflow - sam_inference failed

RMNT opened this issue Β· comments

In which step did you encounter the bug?

Workflow execution

Are you using a local or a remote (AKS) FarmVibes.AI cluster?

Local cluster

Bug description

I am new to using bingmaps so it might be a mistake on my part.

In the website I created a key, copied it and pasted to the BING-MAPS_API_KEY constant. I did not change anything else in the code. After running the code I get this:

                  🌎 FarmVibes.AI 🌍 farm_ai/segmentation/segment_basemap 🌏 
                                 Run name: Basemap segmentation
                         Run id: 4e232c4a-d514-4b34-9987-eb2647fa7b13
                                       Run status: failed
                                     Run duration: 00:00:22

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Task Name                 ┃ Status ┃ Start and End Time ┃ Duration ┃ Progress   
┑━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
β”‚ sam_inference                              β”‚failedβ”‚...β”‚...β”‚00:00:17β”‚ ━━━━━━━━━━━━━━━━━━━━  0/1    β”‚
β”‚ basemap_download.merge                     β”‚doneβ”‚...β”‚...β”‚00:00:00β”‚  ━━━━━━━━━━━━━━━━━━━━  1/1     β”‚
β”‚ basemap_download.to_sequence               β”‚doneβ”‚...β”‚...β”‚00:00:00β”‚  ━━━━━━━━━━━━━━━━━━━━  1/1     β”‚
β”‚ ingest_points.download                     β”‚doneβ”‚...β”‚...β”‚00:00:01β”‚  ━━━━━━━━━━━━━━━━━━━━  1/1     β”‚
β”‚ basemap_download.basemap_download.download β”‚doneβ”‚...β”‚...β”‚00:00:00β”‚  ━━━━━━━━━━━━━━━━━━━━  25/25   β”‚
β”‚ ingest_points.unpack                       β”‚doneβ”‚...β”‚...β”‚00:00:01β”‚  ━━━━━━━━━━━━━━━━━━━━  1/1     β”‚
β”‚ basemap_download.basemap_download.list     β”‚doneβ”‚...β”‚...β”‚00:00:03β”‚  ━━━━━━━━━━━━━━━━━━━━  1/1     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Key details:

Key type: Basic / Dev/Test
Created date: 02/02/2024
Expiration date: None
Key Status: Enabled
Security Enabled: No

What may I be doing wrong?

Steps to reproduce the problem

No response

Hi, @RMNT. Thanks for raising the issue. It seems that nothing is wrong with the BingMaps steps of the workflow, but rather to the segmentation op that failed.

Please, could you provide the content of the reason attribute of your run object?

client = get_default_vibe_client()

run = client.run(....)

print(run.reason)

Additionally, did you follow the steps of our documentation for importing the SAM ONNX model to your local cluster?
You can check the instructions in our Troubleshooting page.

We noticed the script that downloads the SAM models, trace them to ONNX, and export to FarmVibes cluster is missing from the repo (as reported in #153). Your issue might be related to this and the reason might confirm this. If this is the case, you can expect them to be included in the next release. Thank you for your patience.

@RMNT PR #157 adds the missing script and you should be able to run the SAM workflows and notebooks.
Thank you for your patience.

Please, let me know if you are able to test it and if any issues come up.

Closing this issue for now. @RMNT, feel free to reopen it if you encounter any more issues.