307 - Segment your images in python without training using Segment Anything Model (SAM)

307 - Segment your images in python without training using Segment Anything Model (SAM)

DigitalSreeni

1 год назад

55,346 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Grace Al Khawand
Grace Al Khawand - 16.11.2023 17:16

CUDA works only on windows and linux apparently, is there a workaround to make it work for Mac, please?

Ответить
Syed Neloy Ahmed
Syed Neloy Ahmed - 11.11.2023 22:28

Hello, Thanks for the great video. But I have a question, Can I export the masked output as shp or tiff format?

Ответить
Shantilal Zanwar
Shantilal Zanwar - 05.11.2023 03:14

I am getting CUDA FALSE, sorry but simple question, how to install it ?

Ответить
Shantilal Zanwar
Shantilal Zanwar - 04.11.2023 14:08

Nice one thanks

Ответить
Nitesh takarker
Nitesh takarker - 08.10.2023 06:50

Thank you for the informative video tutorial! I'm currently working on agriculture land cover monitoring, and I'm wondering if this model can be used for that purpose. Can you confirm if it's suitable for agriculture land cover monitoring?

Ответить
Theo Valentino
Theo Valentino - 19.09.2023 23:47

A video for fine tuning Segement Anything Model would be great

Ответить
Omoregie Bright
Omoregie Bright - 11.09.2023 08:37

I use a MAC -> Anaconda -> Jupyter notebook. it says CUDA is available: False. 
How can i fix this?.

Ответить
Engineering Mind
Engineering Mind - 03.09.2023 16:11

Can we used this one on segmentation of geotiff file format data?

Ответить
ajay patro
ajay patro - 18.08.2023 10:22

Hy, sir I am from Geoinformatics background, and I want to get started with Py to process image processing on remote sensed data, where should I start what Gui would you recommend for Py Spyder or vs code is fine i want to visualize the data too while working on it.

Ответить
Streaming Dev
Streaming Dev - 05.08.2023 05:52

I would love to know how they do the hover and onclick segment / mask

Ответить
Asha V
Asha V - 04.08.2023 10:33

Sir, Getting error with sam chcekpoint please suggest how it can be resolved

Ответить
Benoit Chouinard
Benoit Chouinard - 27.06.2023 20:14

Hello, what kind of GPU are you using? I want to know if it's possible to do this in real time at at least 1Hz for video.

Ответить
tektronix475
tektronix475 - 21.06.2023 00:30

Hey there ppl! . Is it possible to test the model in CPU? How?.
I got an: CUDA is available: False warning trying to do that.Thx!

Ответить
Max Gadd
Max Gadd - 20.06.2023 13:19

your contributions are amazing. wow. thank you so much

Ответить
Yang Yang
Yang Yang - 08.06.2023 00:43

Thank you for sharing! By the way, I like your Spyder IDE.

Ответить
Raphael Machado
Raphael Machado - 25.05.2023 14:24

please more videos about this model 🙏

Ответить
Elmer Jaén
Elmer Jaén - 22.05.2023 00:10

Great tutorial! Thanks for sharing. I would like to create a new cut out image based on the segmentation made by the model. The web demo of SAM already does this and I would like to do the same but using python. Any ideas in how should I attack this problem? Thanks in advance!😄

Ответить
Olga Chambers
Olga Chambers - 19.05.2023 16:20

thanks a lot, it works great for my microscopic data, just very slow segmentation for live monitoring

Ответить
Varun Kota
Varun Kota - 19.05.2023 14:21

I don't have a GPU but I have a colab pro plus subscription, can I run this on Colab, can somebody tell me how I can do that please?

Ответить
Senthil Kumar T.K
Senthil Kumar T.K - 13.05.2023 18:55

Thank u for this excellent video sir. Currently this is doing instance segmentation. Is it possible to alter this code to perform semantic segmentation ?

Ответить
Hikvruz Hunter
Hikvruz Hunter - 08.05.2023 06:54

Hi, could you make a tutorial on how to connect SAM outputs with convolutional networks to determine what object it is or extract information? Regards.
Great video!

Ответить
Fatma Elik
Fatma Elik - 30.04.2023 22:07

Finally omg 😃 Sir please use pytorch

Ответить
Porchelvan Anbarasu
Porchelvan Anbarasu - 29.04.2023 16:36

How to save the mask as vector or the masked image ?

Ответить
Bernd Peglow
Bernd Peglow - 29.04.2023 06:23

promosm 😂

Ответить
Ankit Prashnani
Ankit Prashnani - 26.04.2023 22:07

Does this make the other models we discussed on this channel, like UNet, ResNet etc., obsolete? Is it still worth it to learn about them?

Ответить
Prithvi Raj Pani
Prithvi Raj Pani - 26.04.2023 11:50

Hi Sreeni. Thanks for this lively tutorial of SAM examples. May I know the GPU memory you have? I have run the house.jpg (which is 200KB) and neurons.jpg (which is examples on my CPU (with 16GB RAM) and they worked fine. But when I tried to work with an image that is 25MB size, my system reported as OOM. So, I was wondering if we need a high memory GPU or high RAM CPU to run this for even simple images?

Ответить
Antony Jerald
Antony Jerald - 20.04.2023 07:13

Can you please show how to segment an object using the text prompt

Ответить
buket karaoğlu
buket karaoğlu - 19.04.2023 10:53

How can ı labelimg data using sam's mask output? Is this possible?

Ответить
sarath kumar
sarath kumar - 19.04.2023 09:27

how to measure the area of segmented image??

Ответить
datapro007
datapro007 - 17.04.2023 23:23

Wow! I watched your video again and ran through the example you provided. SAM is a great annotation tool and a real labor saver. Fabulous presentation Sreeni.

Ответить
Itay Hilel
Itay Hilel - 15.04.2023 16:51

can you do a video using the text prompt with the code?

Ответить
Tyler Hargrove
Tyler Hargrove - 14.04.2023 21:29

How do you apply labels to them? Making a mask is one thing, but how do you label classes?

Ответить
Feanor 1
Feanor 1 - 14.04.2023 15:20

I'm trying to create tumor segmentator with SAM. When i give mri images to it, it is segments anything in the images absolutely magnificently, but the problem is that it segments all the things and it does not gives any meaningful label. I can't distinguish the tumor masks among all the maskes. I don't know how to do it. I'm open to any suggestion. I apretiace.

Ответить
Faiçal AMMISAID
Faiçal AMMISAID - 13.04.2023 21:15

how to controle segmented classes like only houses or road and houses only

Ответить
Mohammed KRAMECHE
Mohammed KRAMECHE - 13.04.2023 08:15

@DigitalSreeni an example for segmentation with training plz ?:D

Ответить
edmald1978
edmald1978 - 12.04.2023 17:06

To extract labels I did this function maybe can help:

def create_labeled_mask(anns, height, width, max_num_classess):
if len(anns) == 0:
return

sorted_anns = sorted(anns, key=(lambda x: x['area']), reverse=True)
sorted_anns = sorted_anns[:max_num_classess]

label = 1
labeled_mask = np.zeros((height, width))

for ann in sorted_anns:
m = ann['segmentation']
labeled_mask[m > 0] = label
label += 1
labeled_mask = labeled_mask.astype(np.uint8)
return labeled_mask

Ответить
Bharath S
Bharath S - 12.04.2023 14:24

How does it work on images without dye staining?

Ответить
Chandresh Trivedi
Chandresh Trivedi - 12.04.2023 05:17

Thank you.
Other than the fact that it is open source, what advantage does this toolkit offer over Image-Pro and it’s programming environment for microscopy?

Ответить
Nyari Imani
Nyari Imani - 11.04.2023 15:52

SWEEEEET!!! Thank you for this!

Ответить
Johnny Smith
Johnny Smith - 11.04.2023 15:21

Can you do binary segmentation using SAM?

Ответить
datapro007
datapro007 - 11.04.2023 14:48

What a great and timely video. Thank you! I wasn't aware of SAM prior to seeing your presentation.

Ответить
Maurício Jean
Maurício Jean - 11.04.2023 01:28

can we use tiff images?

Ответить
edmald1978
edmald1978 - 10.04.2023 15:49

Thanks!

Ответить
edmald1978
edmald1978 - 10.04.2023 15:26

How to get the labels of the segmentation?

Ответить
Rushiraj Parmar
Rushiraj Parmar - 10.04.2023 13:04

Heyy, thanks Sreeni for your awesome content as always! BTW is there any way I can access a specific portion of mask from the segmentation mask dictionary?? Let's say if I just want to access the mask value where the person is in the image? This could also differ from image to image so I don't know if it works

Ответить
Sara Kassani
Sara Kassani - 10.04.2023 00:00

ViT stands for Vision Transformers. I used UNETR and SwinUNTER (vision transformers) and both of them had excellent performance specifically if your dataset size is very small.

Ответить
bindu rao
bindu rao - 08.04.2023 23:16

Thanks

Ответить
Sofia Valdez
Sofia Valdez - 08.04.2023 23:15

I would imagine researchers will want to use SAM to pre-process images for input into other models. But, it seems that SAM takes 20-30 seconds to segment images which is not feasible for thousands of training images. What are your thoughts on how SAM can be used in cases like these? Do you think there will be a way to speed up the segmentation per image?

Ответить
Gustavo Juantorena
Gustavo Juantorena - 08.04.2023 21:10

Thank you for the video

Ответить
Dr. Aravinda C V NMAMIT
Dr. Aravinda C V NMAMIT - 08.04.2023 19:23

Excellent one superb

Ответить