Segment Farmbot photos with Segment Anything

Hi all,

I have been having a go at the new Farmbot library features and was trying out the Segment Anything. However i seem to be stucked with this issue where the segment_anything module is not detected even after successfully doing a pip install of it. I have tried to install it locally as well but i still get a module not found error for segment_anything.

Has anybody tried it yet or face similar error messages? Thanks!

phoque6

Hi all,

Managed to resolve the issue by installing manually the segment-anything module through Pycharm’s python intrepreter under settings.

However while segmentation is running an error occurs : AttributeError: module ‘backend_interagg’ has no attribute ‘FigureCanvas’

This is solved by downgrading matplotlib to version 3.5.2 and downgrading numpy<2.0.

Everything runs smoothly now!

phoque6



4 Likes

Hi all,
Have you tried this api : https://slaice.ai/ it can save you lot of time while using segment anything.
This api allow you to use the model directly

1 Like

Hi ph900,

Thanks for the tip! will give it a try.

Thanks!

phoque6