Implement and Train U-NET From Scratch for Image Segmentation - PyTorch

  Рет қаралды 20,645

Uygar Kurt

Uygar Kurt

Күн бұрын

Пікірлер: 74
@sairampenjarla
@sairampenjarla 11 ай бұрын
one of the most cleanest code, straight forward logic, excellent explanation. You've earned my respect, like, subscription. Thank you sensei.
@uygarkurtai
@uygarkurtai 11 ай бұрын
Thank you, I'm flattered!
@manuelsteele7755
@manuelsteele7755 3 ай бұрын
You have excellent communication on how the model is implemented. The clarification is enormous. This is the best YT video I have seen for explaining the layers. I can't think of one I saw (and I saw many) that clearly helped me understand the layers of a model like yours does. Thank you. I am a PhD student in Data Science at Arizona State. We are studying U-Net for a graduate course on medical image processing. I also need it for my dissertation topic.
@uygarkurtai
@uygarkurtai 3 ай бұрын
@@manuelsteele7755 thank you for your kind words :) I'm glad it helped!
@bikrammajhi7278
@bikrammajhi7278 5 күн бұрын
Great video. Good Work. Thank you !!
@uygarkurtai
@uygarkurtai 2 күн бұрын
Thank you!
@oerdoganist
@oerdoganist Жыл бұрын
great work. Keep up the quality training free, lots of us learning with your videos. 👍
@uygarkurtai
@uygarkurtai Жыл бұрын
Thank you :)
@diandiansun
@diandiansun 22 күн бұрын
Amazing!!! its so awesome!! YOU ARE MY GOD!!!😍
@uygarkurtai
@uygarkurtai 22 күн бұрын
Thank you!
@learntestenglish
@learntestenglish Жыл бұрын
Great to find a source about this unique topic, thanks for your efforts and great teaching 🥰
@uygarkurtai
@uygarkurtai Жыл бұрын
Thank you :)
@eranfeit
@eranfeit 10 күн бұрын
Great tutorial
@uygarkurtai
@uygarkurtai 10 күн бұрын
Thank you!
@Samuel-san-x9x
@Samuel-san-x9x 6 ай бұрын
I like this video , so clear , and I was able to follow and do the same thing. I understook Unet thanks to you . Thank you so much . Could you do a video on DDPM ? specially conditional or unconditional DDPM using Unet ? Thanks a million.
@uygarkurtai
@uygarkurtai 6 ай бұрын
@@Samuel-san-x9x thank you! I already have a DDPM video. Check it out here: kzbin.info/www/bejne/gnjIYaueh9iYm8ksi=QSAnwVGYrL5Vdafz
@Samuel-san-x9x
@Samuel-san-x9x 5 ай бұрын
@@uygarkurtai thank you.
@NisarAhmad-ch3kc
@NisarAhmad-ch3kc 11 ай бұрын
Thank you. Great Work! Simple, step by step! Do you also plan to implement 3D Unet in tensorflow?
@uygarkurtai
@uygarkurtai 11 ай бұрын
Thank you! I don't think I'll get into the variations of U-Net.
@FernandoPC25
@FernandoPC25 11 ай бұрын
Thank you very much Uygar! I loved this tutorial, really helpful, carry on! I was also curious about the amount of memory your GPU has. Could you please share that information?
@uygarkurtai
@uygarkurtai 11 ай бұрын
Thank you! I used Kaggle's P100 GPU. It has 16GB if I'm not wrong.
@FernandoPC25
@FernandoPC25 10 ай бұрын
Hello Uygar, I wanted to ask you something. I tried to replicate your experiment in Kaggle, using GPU P100 but I am having memory problems, CUDA runs out of memory. What proceduce do you recommend if this happens? (Like putting num_workers=4 or something like this) Thank you very much! @@uygarkurtai
@uygarkurtai
@uygarkurtai 10 ай бұрын
Is it possible thath you use images with higher resolution? In that case you need a bigger gpu or you can try quantization or something@@FernandoPC25
@FernandoPC25
@FernandoPC25 10 ай бұрын
I think that I am using the same dataset than you. I will try with the different GPUs of kaggle notebook. Thank you very much sensei!
@islevkurt1532
@islevkurt1532 Жыл бұрын
It was a great video👏👏
@uygarkurtai
@uygarkurtai Жыл бұрын
Thank you :)
@jamest.3210
@jamest.3210 8 ай бұрын
Hi, great video! It already helped me a lot! Thanks! I'll try to train a U-Net with my own data. Can you tell me if there is anything else I need to be aware of? Does it matter what kind of data files (jpg, png, gif or tiff) I use or do they have to be jpg files + gif files with labels for the training?
@uygarkurtai
@uygarkurtai 8 ай бұрын
Great to hear that! You can choose any format as long as you can load it.
@AlperenK.
@AlperenK. 10 ай бұрын
You are great! Adamsın :)
@uygarkurtai
@uygarkurtai 10 ай бұрын
Thank you! Tesekkurler :)
@ElminsterWindwalker
@ElminsterWindwalker 5 ай бұрын
Do we need to add .UNSQUEEZE(1) to mask = img_mask[1].float().to(device) and why?Thanks!
@uygarkurtai
@uygarkurtai 5 ай бұрын
@@ElminsterWindwalker unsqueeze adjusts the dimensions of the tensors. If it works we don't need to.
@fatiherden-dm7yo
@fatiherden-dm7yo 8 ай бұрын
Uygar hocam selam, ben modelinizi çalıştırdım fakat çıktıda predicted mask tamamen siyah olmaktadır. Aynı dataseti kullanıyorum. Bu datasette doğru çalıştırabilirsem başka bir datasette proje yapmama gerekiyor. sebebi ne olabilir?
@uygarkurtai
@uygarkurtai 8 ай бұрын
merhaba, data preperation yaparken bir yeri atliyorsun yuksek ihtimal. Image channellar'i karistirdiginda bu durum oluyor cogunlukla.
@debarchanbasu768
@debarchanbasu768 7 ай бұрын
The code reads okay but RuntimeError: Given groups=1, weight of size [64, 3, 3, 3], expected input[1, 64, 512, 512] to have 3 channels, but got 64 channels instead Can't seem to figure what's going wrong!
@uygarkurtai
@uygarkurtai 7 ай бұрын
you have a shape mismatch error. You have to change variables according to your input data.
@김화겸-y6e
@김화겸-y6e Жыл бұрын
Amazing! Thnks for sharing your knowledge and skillsksfsdf
@uygarkurtai
@uygarkurtai Жыл бұрын
Thank you :)
@jasonleo6582
@jasonleo6582 3 күн бұрын
Hi, Is there a way to download the dataset locally?
@uygarkurtai
@uygarkurtai 2 күн бұрын
Yes! If you go to the link of the dataset, there's a download section to download it as a .zip file.
@mohamedabdelaziz457
@mohamedabdelaziz457 9 ай бұрын
I have an error its No such file or directory as i put the paths of image and mask. Can you help me solving this error?
@uygarkurtai
@uygarkurtai 9 ай бұрын
hey. Probably you typed a wrong path to images and masks. Doulbe check please
@artursradionovs9543
@artursradionovs9543 14 күн бұрын
How many masks and images are used in the dataset?
@uygarkurtai
@uygarkurtai 12 күн бұрын
I don't really remember. But you can check the dataset.
@afolabiowoloye804
@afolabiowoloye804 8 ай бұрын
Nice work. Please, my work entails using a similar model to segment multiple parasitized cells from the uninfected cells in a microscope slide image. any hint will be appreciated, please.
@uygarkurtai
@uygarkurtai 8 ай бұрын
Hey. There're much more up-to-date models. If you want to use segmentation on a project I suggest you check them out.
@afolabiowoloye804
@afolabiowoloye804 8 ай бұрын
@@uygarkurtai Thanks for your timely response, it means a lot to me. Would you please recommend videos or material for me?
@uygarkurtai
@uygarkurtai 8 ай бұрын
@@afolabiowoloye804 It's a pleasure. I found this repo. You can check it out. github.com/mrgloom/awesome-semantic-segmentation
@afolabiowoloye804
@afolabiowoloye804 8 ай бұрын
@@uygarkurtai Thanks, a lot
@jenushadijafari6041
@jenushadijafari6041 6 ай бұрын
@@uygarkurtai such a great repo. tnx
@shoaibshafiahmed1983
@shoaibshafiahmed1983 10 ай бұрын
i am getting this error when training any idea how to fix this Given groups=1, weight of size [512, 1024, 3, 3], expected input[1, 512, 476, 18] to have 1024 channels, but got 512 channels instead
@uygarkurtai
@uygarkurtai 10 ай бұрын
Hey. What's your input image size?
@shoaibshafiahmed1983
@shoaibshafiahmed1983 10 ай бұрын
@@uygarkurtai It's a hyperspectral cube of size 349x1905x144 with 15 classes.
@shoaibshafiahmed1983
@shoaibshafiahmed1983 10 ай бұрын
​@uygarkurtai it's a hyperspectral cube of size 349×1905×144 and 15 output classes
@uygarkurtai
@uygarkurtai 10 ай бұрын
@@shoaibshafiahmed1983 you got to resize your image or modify the model parameters accordingly in that case
@shoaibshafiahmed1983
@shoaibshafiahmed1983 10 ай бұрын
@@uygarkurtai I am working on a school project that has data as a hyperspectral image need to perform semantic segemntation using UNet with pytorch are you open to work on it privately or help me out solve the errors that am receiving?
@katayoonhessni
@katayoonhessni 5 ай бұрын
thanks so much
@uygarkurtai
@uygarkurtai 5 ай бұрын
Thank you!
@Ece-kx6qk
@Ece-kx6qk Жыл бұрын
Great video thanks
@uygarkurtai
@uygarkurtai Жыл бұрын
Thank you :)
@aymendebiche8095
@aymendebiche8095 6 ай бұрын
Hallo, danke Ihnen für dieses Video . ich habe aber nicht verstanden,woher haben Sie die manual_test und manual_test_mask bekommen . bei der daten ordner haben wir nur die"test.zip",test_hq.zip",,"train.zip","train_hq.zip","train_mask.zip" ich habe schon immer error für die path des manual_mask und manual_test_mask beim die Inferance Teil .
@uygarkurtai
@uygarkurtai 6 ай бұрын
Hey, thank you! I got them from Kaggle competition. I supposed to have given the link in the video. I supposed to be showing the competition page too. You can just download from there.
@强朱-f9w
@强朱-f9w 2 ай бұрын
我也遇到相同问题了 请问你是怎么解决的
@TinLee99
@TinLee99 5 ай бұрын
i've trained your model through 30 epoch, but when i use model to predict It's too bad !!! then i continue to train 10 epoch more, but it's still to bad, i don't know why, i use your dataset, i use your scripts;
@ElminsterWindwalker
@ElminsterWindwalker 5 ай бұрын
Me too!
@TinLee99
@TinLee99 5 ай бұрын
@@ElminsterWindwalker i have fixed, his code is perfect, It was my fault
@uygarkurtai
@uygarkurtai 5 ай бұрын
@@TinLee99 that usually happens when you use a different dataset with different image channels. In that case you have to do slight modifications in your code. Are you using a different dataset?
@TinLee99
@TinLee99 5 ай бұрын
@@uygarkurtai i use pet dataset, i trained each through 30 epoch and i can see result, but when i modify upsample from transposedv2 to upsample of pytorch, i see my result that is better, i don't no why
@fpvx3922
@fpvx3922 Жыл бұрын
Thanks
@uygarkurtai
@uygarkurtai Жыл бұрын
thank you :)
@ibozum1
@ibozum1 11 ай бұрын
Tebrikler ve paylaşım için teşekkürler. Oldukça açıklayıcı ve destekleyici bir paylaşım. Ben de hemen beğenip abone oluyorum. :)
@uygarkurtai
@uygarkurtai 11 ай бұрын
Çok teşekkür ederim :)
The U-Net (actually) explained in 10 minutes
10:31
rupert ai
Рет қаралды 134 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 700 М.
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 419 М.
73 - Image Segmentation using U-Net - Part1 (What is U-net?)
18:13
DigitalSreeni
Рет қаралды 391 М.
I made maps that show time instead of space
10:44
Václav Volhejn
Рет қаралды 1 МЛН
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 134 М.
208 - Multiclass semantic segmentation using U-Net
31:20
DigitalSreeni
Рет қаралды 92 М.
Implement Llama 3 From Scratch - PyTorch
1:01:03
Uygar Kurt
Рет қаралды 3,1 М.
Learn Machine Learning Like a GENIUS and Not Waste Time
15:03
Infinite Codes
Рет қаралды 354 М.