PyTorch Image Segmentation Tutorial with U-NET: everything from scratch baby

PyTorch Image Segmentation Tutorial with U-NET: everything from scratch baby

Aladdin Persson

3 года назад

203,118 Просмотров

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


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

Elif Deniz
Elif Deniz - 21.08.2023 21:25

How did you do the masking in the dataset? How did you create the dataset, where can I learn the detailed explanation?

Ответить
Stuart Ward
Stuart Ward - 15.08.2023 00:38

Carvana kaggle dataset does not seem to have val_images and val_mask

Ответить
Chris Gardiner
Chris Gardiner - 05.08.2023 03:51

thank you for this video! after watching a handful of times, I've managed to get it predicting on my own custom dataset, thanks entirely to your instruction.
curious though - any advice on where to start getting a successful model to make a prediction on a single image, and call it by a script?

Ответить
Trung Le
Trung Le - 02.08.2023 12:11

Thank you add. where is this source code? thanks.

Ответить
BIN ZHANG
BIN ZHANG - 24.07.2023 14:09

Dear professor,

I am very interested in your program, and I have two questions now,

(1) How to use code to map between irregular images, complete training through the unet model, and then conduct testing?

Is the mask used for preprocessing data? Is there any special software available for preprocessing?

Ответить
Anna Choi
Anna Choi - 09.07.2023 21:05

learnt soo much from this thank you! love the proper structure instead of line by line commands in colab or sth

Ответить
Got
Got - 02.07.2023 23:55

Thanks! Great work. Useful practical information

Ответить
Kolaparthi Deepak
Kolaparthi Deepak - 24.06.2023 13:47

how can i test implemented model when test dataset is given??? anyone help ...

Ответить
Karthik
Karthik - 20.06.2023 17:42

thanku so much the explanations made it very clear 🙌💯

Ответить
Alma G
Alma G - 07.06.2023 13:55

i followed your tutorial step by step and used the same dataset and it did an amazing job. The first dataset (CARVANA) I used worked fine, but once I changed it, the results went downhill. I tried it on CASIAv2, but my dice score is always 0.0 and my predicted masks are just black... i don't know how to fix this, if anyone has any ideas, i beg you, do let me know!

Ответить
amee_rus
amee_rus - 30.05.2023 13:54

Thank you so much my guy. I hope one day I can also do this with my own knowledge and understanding

Ответить
Tim Stassen
Tim Stassen - 24.05.2023 18:38

@AladdinPersson
What kind of PyCharm theme do you use? Looks awesome!

Ответить
Khit Nay
Khit Nay - 25.04.2023 09:29

Anyone else getting a consistent accuracy every epoch, a dice score of 0 and empty black images for the prediction? Don't know what I could be missing

Ответить
Sujith Kumar
Sujith Kumar - 20.04.2023 18:50

so, what changes do i need to make if I want to perform a multi class segmentation here can you help me?

Ответить
Shogun Kage
Shogun Kage - 18.04.2023 21:43

I have a problem, import torchvision.transforms.functional gives module error and says it is not a library

Ответить
Shridhar Pol
Shridhar Pol - 23.03.2023 12:36

Hey there, thanks for making this video.
I tried running this code but it's popping a type error while running the model part of the it.
TypeError: unsupported operand type(s) for %: 'list' and 'int'
Tried looking up for possible solutions but didn't help.
Would greatly appreciate if you could weigh in on this.
Thank you!

Ответить
Nachiket Kathoke
Nachiket Kathoke - 18.03.2023 15:55

Great video, man!

Ответить
John  Orozco
John Orozco - 13.03.2023 18:37

Very good explanation using pytorch and Unet, I was able to use that in 1024x1024 images but with 416x416 your DICE formula always shows 0.0, even if I have 99% accuracy, I don't know why...please one suggestion, thanks

Ответить
bb Maple
bb Maple - 12.03.2023 14:35

It's unbelievable that I got the "nan" loss in me laptop(NVIDIA 1650), but a pretty good result in the remote server(3080ti) with the same code.😅

Ответить
yue zhang
yue zhang - 10.03.2023 12:56

Hi everybody, why my acc data is 78.20....? And saved_images/pred_x.png are all black picture?

Ответить
Vinayak A.B
Vinayak A.B - 26.01.2023 11:27

what a great tutorial

Ответить
tar0kan
tar0kan - 23.01.2023 17:42

Unfortunately, it doesn't work with .tif files :(

Ответить
Ayush Jangid 5-Year IDD Mathematical Sciences
Ayush Jangid 5-Year IDD Mathematical Sciences - 02.01.2023 16:58

Thanks a ton!!!!! Learnt a hell lot of new things from this video other than image segmentation.
Your lectures are pure gem!!!!

Ответить
baby big
baby big - 02.01.2023 10:27

hi, may i ask you something
do i have to change the IMAGE_HEIGHT and IMAGE_WIDTH if i use my own dataset?

Ответить
Rahil Vig
Rahil Vig - 02.01.2023 00:52

What do I have to modify here if I've got 8 output classes rather than binary segmentation?

Ответить
Sujeet
Sujeet - 22.12.2022 06:52

Hey @Aladdin Persson here for binary classification you applied sigmoid to the outputs of the model and then just separated into two by threshold of 0.5, can you suggest anything similar for multiclass classification? can softmax be used there? if yes, how can i separated then further?

Ответить
Kd Creer 456
Kd Creer 456 - 18.12.2022 06:12

This is a very well done tutorial

Ответить
arya ladhani
arya ladhani - 29.11.2022 00:58

Validation set is not available on Kaggle

Ответить
Nathanael Ren
Nathanael Ren - 27.11.2022 06:22

Binary cross entropy? Don't you still need to use cross entropy as the loss function because each pixel is a "class?"

Ответить
Isaac. O Okunato
Isaac. O Okunato - 21.11.2022 18:02

Thanks for this Aladdin. I was able to train using my own data. Do you have an idea how I can deploy U-net model to my web app? Can't seem to find any resource on it. cheers

Ответить
zakaria said
zakaria said - 20.11.2022 21:42

thank you so much for this content

Ответить
baby big
baby big - 16.11.2022 04:58

Hi. Thank you for your video. It helped me a lot

Ответить
Jirong Yi
Jirong Yi - 12.11.2022 10:57

Thanks for creating this education video. Every concept is very clearly explained.

Ответить
PRM Master
PRM Master - 05.11.2022 14:26

How do you create a mask image file and can you create it yourself?

Ответить
Vineetha Murali
Vineetha Murali - 01.11.2022 08:26

Can we only use this if we have the masks in the train dataset ?

Ответить
Abhisek Panigrahi
Abhisek Panigrahi - 29.10.2022 01:23

Hello, I implemented it but I don't know why my loss is going negative after each epoch starting from -46 to -150. Can you help what might be the cause . its binary segmentation.

Ответить
Fidan Rle
Fidan Rle - 14.10.2022 11:23

Thanks for the video. Why you used scaler for backward ? I did not totally understand that.

Ответить
Rafi Ibn Sultan
Rafi Ibn Sultan - 14.10.2022 07:54

You go too fast man, had to play it on .75x

Ответить
Frank
Frank - 14.10.2022 05:22

very good video

Ответить
rbaleksandar
rbaleksandar - 28.09.2022 21:12

Thanks for the tutorial.

Hmm, that trick you added to avoid the requirement of having input perfectly dividable by 16 might lead to big issues depending on the type of imagery that is being processed by the network. Imagine satellite imagery with a GSD (ground sampling distance) of 100m. A single pixel is literally 100x100m and skipping one leads to skipping multiple houses. :D Just saying this in case people come across your tutorial and just blindly copy paste the code.

NOTE: Kaggle requires phone number for verifying your account. For those of you (like me), who do not want to hand out such private information, find another set. In the end U-Net is used in many fields with different types of images (e.g. medical ones) and the chances are you will not be doing segmentation on cars. :D

Ответить
Orly Enrique Apolo Apolo
Orly Enrique Apolo Apolo - 15.08.2022 13:22

Great video man. You are working with RGB images (3 bands or channels). Do you think is possible use this architecture for images with more than 3 channels or bands. I'm thinking in hyperspectral cameras, for example.

Ответить
AliceDavid Edu
AliceDavid Edu - 31.07.2022 16:27

Thanks for the video

Ответить
odysseus x
odysseus x - 28.07.2022 06:36

Thank you so much for this informative and detailed tutorial.

Ответить
Abdul Rahman
Abdul Rahman - 20.07.2022 19:07

Hey aladdin my dice score is going over 1 Idk why that is, please help!!!

Ответить
Aylin Mousavian
Aylin Mousavian - 20.07.2022 07:50

Many thanks of writing this specifically with PyTorch from scratch, I love your videos doing from scratch, you are awesome

Ответить
Jefferson
Jefferson - 10.06.2022 11:20

thank you so much,I learnt a lot from this vedio. You are awesome!!!

Ответить