Open spsaswat opened 8 months ago
https://pub.dev/packages/segment_anything/install
Please test the above package first then try to integrate to the app.
If the package does not work, use the SAM's default model file, which will be in .pth format. Convert it into tflite and see how it goes.
@Donutcheese, https://github.com/spsaswat/plantdis/blob/main/concept_maps/PlantDis_concept_map.pptx use the concept map to get the overall idea.
Use segment anything model's prompt feature to select an individual leaf and process it Use either point or bounding box selection.
Below are some example ipynb.
https://github.com/facebookresearch/segment-anything/tree/main/notebooks