microsoft / farmvibes-ai

FarmVibes.AI: Multi-Modal GeoSpatial ML Models for Agriculture and Sustainability
https://microsoft.github.io/farmvibes-ai/
MIT License
686 stars 119 forks source link

farmvibes-ai local setup #160

Closed marias65 closed 7 months ago

marias65 commented 7 months ago

Your country: USA Your contact info to reach out to you: msbksan@iastate.edu What is your scenario for using FarmVibes.AI?: I am a computer science college student trying to implement it on my own for a research project I am a part of. My goal is to use the segmentation notebooks to segment surrounding farmland.

I am just trying to set up farmvibes on a local machine by following the quickstart instructions but when I try to run the farmvibes-ai local setup I get a message saying "farmvibes-ai: command not found". I've included a screenshot because I am fairly sure that I am in the correct folder and I have downloaded all the dependencies without a problem so I am not sure what is wrong? Some help would be great!

GetImage

rafaspadilha commented 7 months ago

Hi, @marias65. Thanks for using FarmVibes.AI.

Seems like you did not have farmvibes-ai installed.

Did you run pip install ./src/vibe_core from the root of the repo, as explained in the Quickstart guide?

marias65 commented 7 months ago

Yes, I did run pip install ./src/vibe_core before trying to run the setup command. I tried it again just in case and this was the output. Is this what it is supposed to look like?

GetImage

rafaspadilha commented 7 months ago

Please, could you run pip install --upgrade pip and then retry installing vibe_core?

marias65 commented 7 months ago

Thank you, I upgraded pip and reinstalled vibe_core but I am still getting the same "farmvibes-ai: command not found error" no matter what folder I run the command in

renatolfc commented 7 months ago

From the first screenshot you shared, it seems you don’t have a virtualenv activated.

This means pip probably used a local bin directory to install farmvibes-ai in.

Can you try running ~/.local/bin/farmvibes-ai instead of plain farmvibes-ai when running farmvibes commands?

marias65 commented 7 months ago

That seems to have worked!! Thank you so much!

renatolfc commented 7 months ago

Nice!

If you’re using bash, you might want to add that directory to your path by appending a line with export PATH=$PATH:$HOME/.local/.bin to your ~/.bashrc file.