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

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024

Комментарии • 60

  • @oerdoganist
    @oerdoganist 9 месяцев назад +1

    great work. Keep up the quality training free, lots of us learning with your videos. 👍

  • @learntestenglish
    @learntestenglish Год назад

    Great to find a source about this unique topic, thanks for your efforts and great teaching 🥰

  • @sairampenjarla
    @sairampenjarla 7 месяцев назад +7

    one of the most cleanest code, straight forward logic, excellent explanation. You've earned my respect, like, subscription. Thank you sensei.

    • @uygarkurtai
      @uygarkurtai  7 месяцев назад

      Thank you, I'm flattered!

  • @islevkurt1532
    @islevkurt1532 Год назад +1

    It was a great video👏👏

  • @NisarAhmad-ch3kc
    @NisarAhmad-ch3kc 8 месяцев назад

    Thank you.
    Great Work! Simple, step by step!
    Do you also plan to implement 3D Unet in tensorflow?

    • @uygarkurtai
      @uygarkurtai  8 месяцев назад

      Thank you! I don't think I'll get into the variations of U-Net.

  • @AlperenK.
    @AlperenK. 6 месяцев назад

    You are great!
    Adamsın :)

    • @uygarkurtai
      @uygarkurtai  6 месяцев назад

      Thank you! Tesekkurler :)

  • @FernandoPC25
    @FernandoPC25 7 месяцев назад

    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  7 месяцев назад

      Thank you! I used Kaggle's P100 GPU. It has 16GB if I'm not wrong.

    • @FernandoPC25
      @FernandoPC25 7 месяцев назад

      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  7 месяцев назад

      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 7 месяцев назад

      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!

  • @jamest.3210
    @jamest.3210 4 месяца назад

    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  4 месяца назад

      Great to hear that! You can choose any format as long as you can load it.

  • @김화겸-y6e
    @김화겸-y6e 9 месяцев назад

    Amazing! Thnks for sharing your knowledge and skillsksfsdf

  • @ElminsterWindwalker
    @ElminsterWindwalker 2 месяца назад

    Do we need to add .UNSQUEEZE(1) to mask = img_mask[1].float().to(device) and why?Thanks!

    • @uygarkurtai
      @uygarkurtai  Месяц назад

      @@ElminsterWindwalker unsqueeze adjusts the dimensions of the tensors. If it works we don't need to.

  • @Ece-kx6qk
    @Ece-kx6qk Год назад

    Great video thanks

  • @debarchanbasu768
    @debarchanbasu768 3 месяца назад

    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  3 месяца назад

      you have a shape mismatch error. You have to change variables according to your input data.

  • @aymendebiche8095
    @aymendebiche8095 3 месяца назад

    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  3 месяца назад

      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.

  • @ibozum1
    @ibozum1 7 месяцев назад

    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  7 месяцев назад

      Çok teşekkür ederim :)

  • @shoaibshafiahmed1983
    @shoaibshafiahmed1983 7 месяцев назад

    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  7 месяцев назад

      Hey. What's your input image size?

    • @shoaibshafiahmed1983
      @shoaibshafiahmed1983 7 месяцев назад

      @@uygarkurtai It's a hyperspectral cube of size 349x1905x144 with 15 classes.

    • @shoaibshafiahmed1983
      @shoaibshafiahmed1983 7 месяцев назад

      ​@uygarkurtai it's a hyperspectral cube of size 349×1905×144 and 15 output classes

    • @uygarkurtai
      @uygarkurtai  7 месяцев назад

      @@shoaibshafiahmed1983 you got to resize your image or modify the model parameters accordingly in that case

    • @shoaibshafiahmed1983
      @shoaibshafiahmed1983 7 месяцев назад

      @@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?

  • @TinLee99
    @TinLee99 2 месяца назад

    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 2 месяца назад

      Me too!

    • @TinLee99
      @TinLee99 Месяц назад

      @@ElminsterWindwalker i have fixed, his code is perfect, It was my fault

    • @uygarkurtai
      @uygarkurtai  Месяц назад

      @@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 Месяц назад

      @@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

  • @fatiherden-dm7yo
    @fatiherden-dm7yo 5 месяцев назад

    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  4 месяца назад

      merhaba, data preperation yaparken bir yeri atliyorsun yuksek ihtimal. Image channellar'i karistirdiginda bu durum oluyor cogunlukla.

  • @mohamedabdelaziz457
    @mohamedabdelaziz457 6 месяцев назад

    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  6 месяцев назад

      hey. Probably you typed a wrong path to images and masks. Doulbe check please

  • @Samuel-san-x9x
    @Samuel-san-x9x 2 месяца назад

    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  2 месяца назад +1

      @@Samuel-san-x9x thank you! I already have a DDPM video. Check it out here: ruclips.net/video/LGe0xhRseeg/видео.htmlsi=QSAnwVGYrL5Vdafz

    • @Samuel-san-x9x
      @Samuel-san-x9x 2 месяца назад

      @@uygarkurtai thank you.

  • @afolabiowoloye804
    @afolabiowoloye804 4 месяца назад

    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  4 месяца назад

      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 4 месяца назад

      @@uygarkurtai Thanks for your timely response, it means a lot to me. Would you please recommend videos or material for me?

    • @uygarkurtai
      @uygarkurtai  4 месяца назад +1

      @@afolabiowoloye804 It's a pleasure. I found this repo. You can check it out. github.com/mrgloom/awesome-semantic-segmentation

    • @afolabiowoloye804
      @afolabiowoloye804 4 месяца назад

      @@uygarkurtai Thanks, a lot

    • @jenushadijafari6041
      @jenushadijafari6041 2 месяца назад

      @@uygarkurtai such a great repo. tnx

  • @katayoonhessni
    @katayoonhessni Месяц назад

    thanks so much

  • @fpvx3922
    @fpvx3922 11 месяцев назад

    Thanks