128 - Malarial cell classification using CNN and data augmentation

แชร์
ฝัง

ความคิดเห็น • 52

  • @roodypf
    @roodypf 4 ปีที่แล้ว +2

    I like the idea that you can directly put a set of augmented images to the fit instead of augmenting and saving the images separately. Really informative, thanks!

    • @DigitalSreeni
      @DigitalSreeni  4 ปีที่แล้ว

      I'm glad you found the video informative.

  • @ocherki
    @ocherki 3 ปีที่แล้ว +6

    "we have this sad looking cell, because it's affected with malaria" - ahah, he does not only explain things clearly but also has a good sense of humor :)

  • @muhammadroshan7315
    @muhammadroshan7315 4 ปีที่แล้ว +6

    How can we do augmentation for semantic segmentation tasks? like I have RGB image and I want to apply same transformation to the mask (each pixel consists of class labels like 0 for forest, 1 for water, etc. ) And also, I have 1000 images, how many images is it safe for me to generate with data augmentation?

  • @proterotype
    @proterotype 3 ปีที่แล้ว

    Thanks for making this clear for me. Keep 'em comin

  • @ztabatabaei2612
    @ztabatabaei2612 3 ปีที่แล้ว

    You are the best, you solve a lot of problems for me! Thank you very much

  • @EkaterinaGolubeva-pr9ih
    @EkaterinaGolubeva-pr9ih ปีที่แล้ว +1

    In the Multiple images case, when we apply the ImageDataGenerator, where do we indicate how many augmented images we want to generate ?

    • @DigitalSreeni
      @DigitalSreeni  ปีที่แล้ว

      Isn't it just the batch size? The generator supplies augmented images for each batch.

  • @daviddamifogodaramola3596
    @daviddamifogodaramola3596 4 ปีที่แล้ว +2

    I am quite Confused as to how many images will be generated in the train_generator function, we didn't state it

    • @DigitalSreeni
      @DigitalSreeni  4 ปีที่แล้ว

      If you have 1600 images in your dataset, if you set batch size as 16, the generator will generate 16 images in each iteration of the training. Iteration is usually referred to as steps per epoch which we normally set as the total number of samples // batch_size. So in our example, each epoch of training will see 1600/16 which is 100 iterations and in each iteration it sees 16 images. Remember that all images are generated based on the original images, your original images will not be directly fed to the training algorithm.

  • @muhammadroshan7315
    @muhammadroshan7315 4 ปีที่แล้ว +1

    What if we donot have any background class in our segmentation mask? should we still apply reflection to the images and its mask? or can it cause any problems?

  • @muhammadalam2498
    @muhammadalam2498 4 ปีที่แล้ว +3

    Brilliant 10/10

  • @marydayanaa9130
    @marydayanaa9130 4 ปีที่แล้ว

    Really Informative. The way you explain each and every line of code is amazing. Thanks a lot.. please add some videos on IDRID dataset for diabetic retinopathy detection.

    • @DigitalSreeni
      @DigitalSreeni  4 ปีที่แล้ว

      Sorry, I'm not familiar with IDRID. But I hope the examples I show definitely apply to image analysis in other fields.

  • @lakpatamang2866
    @lakpatamang2866 4 ปีที่แล้ว +3

    how many images are generated per class with this augmentation? you did not explain this

  • @ZettyIlham
    @ZettyIlham 3 ปีที่แล้ว

    why does augmented images of both classes are mixed in the same augmented folder? Is it okay not to have them separated according to the corresponding folders as the original ones?

  • @applejuice5785
    @applejuice5785 3 ปีที่แล้ว

    since the images that get augemented are not getting used fr the model can I give the same folder to use for validation?

  • @ravimehta714
    @ravimehta714 2 ปีที่แล้ว

    Sir, I am getting such type of error:;
    ValueError: No gradients provided for any variable: ['conv2d_21/kernel:0', 'conv2d_21/bias:0', 'conv2d_22/kernel:0',,

  • @MridulBanikcse
    @MridulBanikcse 3 ปีที่แล้ว

    Thanks for the tutorial. Is it possible to use GridsearchCv() with image generator so that we can use different learning rate or optimizer in one go?

  • @aditiarora2128
    @aditiarora2128 2 ปีที่แล้ว

    sir can we apply imageaugmentation on single folder containg thousands of images without seperate training and testing folder?

  • @ronylpatil
    @ronylpatil 3 ปีที่แล้ว

    Sir what about the labels if we have all tha images in one single folder???

  • @neginpirannanekaran1236
    @neginpirannanekaran1236 2 ปีที่แล้ว

    Thanks for the simple and effective video! I have a question about reading other types of images like nii or dicom. Is there any way to define flow_from_directory for such formats? If not, is it wise and safe to convert all dicom images to JPEG formats and then use flow_from_directory?

  • @anandsrivastava5951
    @anandsrivastava5951 ปีที่แล้ว

    Hello Digital Sreeni
    Greetings and sorry about asking. Query out of box
    Just incase if you have Segnet (paper of vijay badrinayan...) and fully convolutional network for multiclass; can you please share/ explain on your channel
    That will be a great help!!
    Thanks in advance!

  • @pujabharti344
    @pujabharti344 4 ปีที่แล้ว

    Hi Sreeni. I really feel all your videos are informative. I am facing one issue. When doing augmentation for both (images and Labels) we need to zip(train_generator, label_generator) and use Model.fit_generator(). It gives error: AttributeError: 'zip' object has no attribute 'shape'. Please suggest how I can get over this. Using UNET model.

    • @DigitalSreeni
      @DigitalSreeni  4 ปีที่แล้ว +1

      Use an easier way to augment images and masks, I recommend Albumentations library. I will record a video soon but if you cannot wait a few weeks for the video just look up Albumentations documentation.

  • @hihi-ph8hj
    @hihi-ph8hj 9 หลายเดือนก่อน

    Thank you very much for this very useful tutorial i really get very much information from you.
    I do have questions about the original dataset for example i do have 2 cats pic then i generater 4 more,from my understanding u said we use only the generated one (the 4 pic) ,what about the original dataset ???
    Do we need to train the model on it separated ??
    Or can i use it for test for exampl or for validation ???.
    My last question is,here we augment each class with same number of images,can i augment each class with different batch size so i can create more balanced dataset ?? Is this okay and a good practice???
    I hope u really answer my questions.
    And finally thank you very much,

    • @DigitalSreeni
      @DigitalSreeni  9 หลายเดือนก่อน

      Thank you for your positive feedback and questions! The purpose of data augmentation is to introduce variability and help the model generalize better. But if you want you can include the original dataset along with the augmented images during training.
      Yes, you can certainly use different batch sizes for augmenting each class. This practice can help balance the dataset and prevent the model from being biased towards any specific class during training.

  • @dibyakantaacharya4104
    @dibyakantaacharya4104 4 ปีที่แล้ว

    KeyError: 'Failed to format this callback filepath: "saved_models/weights-improvement-{epoch:02d}-{val_acc:.2f}.hdf5". Reason: \'val_acc\''
    sir i m getting this error ...please tell me the solution

    • @DigitalSreeni
      @DigitalSreeni  4 ปีที่แล้ว

      Change val_acc to val_accuracy and see if it works.

    • @dibyakantaacharya4104
      @dibyakantaacharya4104 4 ปีที่แล้ว +1

      @@DigitalSreeni it's working sir , thank u

    • @DigitalSreeni
      @DigitalSreeni  4 ปีที่แล้ว

      According to the 2.3.0 Release Notes:
      "Metrics and losses are now reported under the exact name specified by the user (e.g. if you pass metrics=['acc'], your metric will be reported under the string "acc", not "accuracy", and inversely metrics=['accuracy'] will be reported under the string "accuracy"."

  • @ztabatabaei2612
    @ztabatabaei2612 3 ปีที่แล้ว

    For this tutorial, I couldn't find cell-image and cell-validation! please upload them

  • @zainabkhan5859
    @zainabkhan5859 3 ปีที่แล้ว

    Sir please make a video on time series augmentation techniques

  • @marcusbranch2100
    @marcusbranch2100 4 ปีที่แล้ว

    There is a way to apply different rotations simultaneously??

    • @DigitalSreeni
      @DigitalSreeni  4 ปีที่แล้ว

      Not sure what you mean. If you want multiple rotations in one augmentation step it doesn't make sense to me. You are performing random rotation so why would it make any difference if you make 2 random rotations instead of one?

  • @shashireddy7371
    @shashireddy7371 4 ปีที่แล้ว

    Thanks Sreeni for sharng your knowledge . Could you please help me how to get label s of images after augmentation.
    Basically , here we are directly reading images inside ImageDataGenerator function. How we extract label for train and test image after augmentation so that we can use labels for model evaluations.
    Note : I have understood how we split train and test data in case non augmented data like you did in your video 71 Malarial classification

  • @beingraja9586
    @beingraja9586 4 ปีที่แล้ว

    What is steps per epoch can you please explain and waiting for different types of gans and lstm encoder decoder

    • @DigitalSreeni
      @DigitalSreeni  4 ปีที่แล้ว +1

      I explained this concept to another user's comment. So I am copying the response, hope it helps.
      If you have 1600 images in your dataset, if you set batch size as 16, the generator will generate 16 images in each iteration of the training. Iteration is usually referred to as steps per epoch which we normally set as the total number of samples // batch_size. So in our example, each epoch of training will see 1600/16 which is 100 iterations and in each iteration it sees 16 images. Remember that all images are generated based on the original images, your original images will not be directly fed to the training algorithm.

  • @mayukhbanerjee8877
    @mayukhbanerjee8877 2 ปีที่แล้ว

    Hi how can I generate abnormal rbc

  • @sivanit3150
    @sivanit3150 2 ปีที่แล้ว

    I really appreciate your efforts thanks for these videos. I have one query that is when i use binary cross entropy my model predicts only one class. I looked up for class weights yet I'm facing same issue. Hope to get a solution for this issue.

  • @merveozdas1193
    @merveozdas1193 3 ปีที่แล้ว

    Can you explain how you constitute .hdf5 file?

    • @DigitalSreeni
      @DigitalSreeni  3 ปีที่แล้ว

      You can use a tool like HDF View to explore the hdf5 file. The file contains model information, model weights, and optimizer weights. The optimizer weights can be ignored as they are purely used during training to figure out how to update the model weights. I will try to record a short video on this topic. Thanks for asking.

  • @dibyakantaacharya4104
    @dibyakantaacharya4104 4 ปีที่แล้ว

    sir .. you have used validation_images ...what is this??

    • @DigitalSreeni
      @DigitalSreeni  4 ปีที่แล้ว +1

      validation data is used to test accuracy of the model during and after training. You can hold out part of your data for validation using train_test_split or you can import other data and use it for validation/testing.

  • @gurinderjeetkaur7291
    @gurinderjeetkaur7291 4 ปีที่แล้ว

    please create some videos on MRI BraTS dataset for brain tumor segmentation also.

  • @ashilshah3376
    @ashilshah3376 ปีที่แล้ว

    Thank you so muchh, it helped :)

  • @monalipatel7175
    @monalipatel7175 3 ปีที่แล้ว

    Sir can u give me the code of predict.py