You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Amazing work! However, I didn't find the text prompt support , is there any plan to release it?
Reacted by kymillev, Alec Helbling, Vishaal Udandarao, rckrice, Joya Chen, Jared Adolf-Bryfogle, Arka Sadhu, Atsuyuki Miyai, Yoon, Seungje, Antlitz.ai and 23 more
Reacted by Navdeeppal Singh, Alec Helbling, Arka Sadhu, Josip Tomo Licardo, Kashu Yamazaki, Joya Chen, Caleb Hemara, Diego, theblackcat102, Chengjian Feng and 25 more
Reacted by Michael Görner, Adeel Hassan, Andrina Arnold, Adam Sorrenti, chenerg, Kamron Bhavnagri, craston, Tristan Gūwalgiya Chen, Fabiano Manschein, Nahid Alam and 19 more
Reacted by chenerg, jwli6, So Uchida, Teo, Terrasse and ST
This is correct, the ability to take text prompts as input is not currently released.
Reacted by Romain Fernandez, John Bollenbacher, Shuhei Kurita, Thomas Bean, Eric Cañas, Felix Warmuth, LisaKoen, chinmay5, Mithil Salunkhe, tetsu-kikuchi and 16 more
This is correct, the ability to take text prompts as input is not currently released.
so, is there a plan to release the text prompts ability?
Reacted by Romain Fernandez, elenacliu, Yoon, Seungje, Wei Zhong, Csaba Botos, John Bollenbacher, Sachit Menon, Adeel Hassan, Cemberk, Ryan and 23 more
The paper state that text can be a prompt (theoretically). And describe a little bit the procedure (page 22) that seem to involve a bit retraining SAM including couples (image, text) embeddings computed by a CLIP model. And finally, doing inference with SAM, by using the CLIP model to create direct prompt for SAM, as CLIP aligned the embeddings of text with the embeddings of the image. Not sure there is easy way to unleash this functionality, even more if it involves retraining (I guess the .pth provided does not include the CLIP training).
Reacted by elenacliu, Diego, FrankFundel, MaybeShewill-CV, Csaba Botos, Winter Qi, Ege Özgüroğlu, Mithil Salunkhe, shipeng, Wenbo Hu and 4 more
@Rocsg I can imagine that by using only a few examples and a linear projection layer on both spaces one could see if the SAM feature space is aligned with the CLIP feature space or not. If there's no alignment the matching error would be still high.
We believe directly using the text from text features from CLIP is not good. Because the explainability of CLIP is bad. Using the text features matched with opposite semantic regions lead to wrong results.
And we can see the self-attention of CLIP links irrelevant regions, with serious noisy activations across labels.
We suggest using the corrected heatmap to generate points to replace the manual input points.
This is our similarity map from the raw prediction of CLIP and results on SAM.
Besides, it's very simple, just use the original CLIP without any fine-tuning or extra supervisions. It's also another solution besides text->box->mask, with requires the least training and supervision cost.
Reacted by sash9966, qiufengmama, Zijian Zhou, Tianyi Zhang, Kabbwen123, Northrend, gerty168, Antony1227, Yunbo Lyu, jkp and 2 more
Reacted by Alex Just, lightfield botanist, Balaji Varatharajan, Siddharth Sah, Zijian Zhou, Pritom Gogoi, June Lee, Daniel Sungho Jung, Yunbo Lyu, Malik Haroon Khokhar and 4 more
Activity
ORippler commentedon Apr 5, 2023
From their FAQ.
ericmintun commentedon Apr 5, 2023
This is correct, the ability to take text prompts as input is not currently released.
LuoYingzhao commentedon Apr 6, 2023
so, is there a plan to release the text prompts ability?
Rocsg commentedon Apr 6, 2023
The paper state that text can be a prompt (theoretically). And describe a little bit the procedure (page 22) that seem to involve a bit retraining SAM including couples (image, text) embeddings computed by a CLIP model. And finally, doing inference with SAM, by using the CLIP model to create direct prompt for SAM, as CLIP aligned the embeddings of text with the embeddings of the image. Not sure there is easy way to unleash this functionality, even more if it involves retraining (I guess the .pth provided does not include the CLIP training).
botcs commentedon Apr 9, 2023
@Rocsg I can imagine that by using only a few examples and a linear projection layer on both spaces one could see if the SAM feature space is aligned with the CLIP feature space or not. If there's no alignment the matching error would be still high.
Eli-YiLi commentedon Apr 13, 2023
We believe directly using the text from text features from CLIP is not good. Because the explainability of CLIP is bad. Using the text features matched with opposite semantic regions lead to wrong results.
This is our work about CLIP's explainability: https://github.com/xmed-lab/CLIP_Surgery
And we can see the self-attention of CLIP links irrelevant regions, with serious noisy activations across labels.


We suggest using the corrected heatmap to generate points to replace the manual input points.


This is our similarity map from the raw prediction of CLIP and results on SAM.
Besides, it's very simple, just use the original CLIP without any fine-tuning or extra supervisions. It's also another solution besides text->box->mask, with requires the least training and supervision cost.
jmiemirza commentedon Apr 15, 2023
https://github.com/luca-medeiros/lang-segment-anything
this project looks interesting
jashvira commentedon Apr 19, 2023
Maybe they were waiting for DinoV2?
yassineAlouini commentedon Jun 28, 2023
It looks like the
Grounded-SAMpaper implement this => https://github.com/IDEA-Research/Grounded-Segment-Anything.As pointed out by @jashvira, it is based on Grounding-Dino that is itself using Dino.