huchenlei / stable-diffusion-ps-pea

Use Stable Diffusion in Photopea!
GNU General Public License v3.0
74 stars 3 forks source link

[DevTask] Implement segment anything support #7

Open huchenlei opened 1 year ago

huchenlei commented 1 year ago

Due to constraint on Adobe JS API, it is not possible to get the canvas click event. It is also not possible to get details from the history queue.

So the SAM support won't be live picking points on canvas, and do segmentation. The only feature to port is segment the whole picture / selected part of the picture, and output one/multiple segmented map.