axinc-ai / ailia-models

The collection of pre-trained, state-of-the-art AI models for ailia SDK
2.04k stars 325 forks source link

Add GUI to segment anything #1297

Closed larryaxinc closed 1 year ago

larryaxinc commented 1 year ago

1266

kyakuno commented 1 year ago

@larryaxinc We want to change Positive coordinate: [(500, 375)] by mouse click. Can you set args.pos from mouse position, and update segmentation image by calling recognize_from_image? And image_embedding is constant with same image, so please cache image_embedding from img_enc, and only infer sam_net.

kyakuno commented 1 year ago

I want to segment where I clicked, like in this video. https://github.com/YavorGIvanov/sam.cpp

kyakuno commented 1 year ago

Thanks. Worked fine.