Tutorial 26- Create Image Dataset using Data Augmentation using Keras-Deep Learning-Data Science

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ย. 2024
  • Please join as a member in my channel to get additional benefits like materials in Data Science, live streaming for Members and many more
    / @krishnaik06 In this video we will understand about the max pooling layer in CNN
    Please do subscribe my other channel too
    / @krishnaikhindi
    Keras blog: blog.keras.io/...
    Connect with me here:
    Twitter: / krishnaik06
    facebook: / krishnaik06
    Instagram: / krishnaik06

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

  • @Prachi_Mayank
    @Prachi_Mayank 4 ปีที่แล้ว +8

    thank u thank u for always helping me like an angel... u are just great sir..keep it up... people like us who are new in this field need your support, so thank u again sir.

  • @arjunpukale3310
    @arjunpukale3310 4 ปีที่แล้ว +10

    Sir please upload a video on how to convert image dataset stored in directory as numpy array with image augmentation

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

    Short and brilliant tutorial ! Thank you so much Krish... May Allah bless you

  • @alluprasad5976
    @alluprasad5976 4 ปีที่แล้ว +5

    Thank you Krish..do more on segmentation and detection

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

    simple and comprehensive explanation. thank you sir!

  • @cool_videos6016
    @cool_videos6016 4 ปีที่แล้ว +7

    How can you data augmentation on selected image classes when a dataset is imbalanced

  • @SAURAVkumar-sg8mk
    @SAURAVkumar-sg8mk 2 ปีที่แล้ว +1

    thankyou sir,,,it helped me in data generation for my CNN model

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

    That was a superb video.Just want to get my hands dirty with practise.Thanks Krish.

  • @vishaljhaveri7565
    @vishaljhaveri7565 2 ปีที่แล้ว +1

    Thank you, Krish Sir. It was a good tutorial.

  • @pawansran4690
    @pawansran4690 3 ปีที่แล้ว +1

    This video has been really helpful. Thank you so much

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

    Just wondering how I could change the names of the augmented images that are being saved? For example instead of the randomized numbers "cat_0_1449.jpeg", how could I save it as cat_1, cat_2, cat_3.... Thank you

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

    please i need to know how can apply the same technique to a dataset of 258 image and generate 20 copies from each single image and save it and achieving 1000 as total

  • @heenagirdher6443
    @heenagirdher6443 3 ปีที่แล้ว +1

    Thank you so much sir for such a great tutorial

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

    love your content man very helpfull

  • @movsesghazaryan1020
    @movsesghazaryan1020 2 ปีที่แล้ว +1

    is there a way of using those images without saving them on hard drive?
    edit: you can use .fit() . You need to give datagen.flow(...) as an argument.
    For anyone looking for the same question's answer.

  • @saibaba2962
    @saibaba2962 3 หลายเดือนก่อน

    Dear Sir,
    I am doing research on healthcare and have an MRI dataset. I need to perform data augmentation on MRI images. Could you please suggest any tools or Python code for MRI data augmentation?
    Thank you.

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

    Sir, can you please show how can I augment data on multiple images(folder of certain labelled pic) to make imbalanced data a balanced one. I am struggling with that

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

    Why we are doing this line?
    x = x.reshape((1,) + x.shape) # this is a Numpy array with shape (1, 3, 150, 150)

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

      Even I am stuck in this. Did you get it?

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

      1,3 is colour code ,150*150 size of image

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

      Because ImageDataGenerator takes data in that form where,
      1----number of images
      3----number of channels
      150x150---image size

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

      @@avneshdarsh9880 1---batch size 3---channel ( RGB ) and 150*150

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

    Hi Krish,
    after augmenting the images when we pass the data for training , do we need to maintain height and width of all images same ?

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

    thank sir, it was great tutorial

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

    Sir if possible please make a video on how to create a synthetic categorical dataset for generating a CSV file. I have watched your video in which you have used DataFrame for the generation of artificial data, but attributes in that dataset have no correlation. Thank you.🙏🏻

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

    In this augmentation if we do all augmentations at a time won't it mix everything , means it will flip as well as rotate as well as elongate in single image

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

    so here we have to store different images in separate folders and similarly store results in separate folders and then use the new data set for the learning algorithms right?

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

    do you have to save it do local drive ? or could you possibly pass the augmented data within the training dataset ?

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

    Sir,
    is image augmentation applied only at the input image (e.g. the image that shows the cat or dog), or also on the label image (binary image)?
    Thank you.

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

    Excelent video, thank you

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

    the fourth dimension is for batch number

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

    How can we balance image dataset by using this augmentation??

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

    sir please create a tutorial on MNIST dataset with indepth intution, which will be useful

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

    Thanks Krish

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

    is data augmentation only applicable to image datasets? what about other types of datasets?

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

      Sourin Roy yes as far as I am concerned. I may be wrong.

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

      in other type you can use like a undersampling and oversampling concepts

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

    Thank You Sir

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

    thank you very much

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

    Let's say My problem is not classification but image to image problem where both the input and output are both images. and I want to expand my data. In this case how can I apply imagedatagenerator to get the same transformations applied to both the input images and output images.????? Thanks in advance

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

    i haven't used kaggle dataset and my images are no labelled like an image is a cat or dog ....what condition should i apply in the if else block for appending 1 if a dog and 0 if cat

  • @tausifahmed751
    @tausifahmed751 3 ปีที่แล้ว +1

    MANKIND'S ANGEL YOU ARE, YOU ARE MY SAVIOUR. INDIA ROXX

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

    nice

  • @Motivational-quotes143
    @Motivational-quotes143 5 หลายเดือนก่อน

    How can we increase the dataset for numeric dataset?

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

    Sir, can u please make video on data augmentation using multiple image and how to split image data into train and test??

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

    thank you!

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

    Data argumantation for MATLAB code of CNN is available ??

  • @NomanNawaz-i9j
    @NomanNawaz-i9j ปีที่แล้ว

    how to change the images save location after augmentation , i want to save images after augmentation in my pc drive ?

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

    Nice video, I did data augmentation "on fly" inside my model, any ide how to visualize it?

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

    Good jop

  • @wanianawaz6999
    @wanianawaz6999 3 ปีที่แล้ว +1

    Could not import PIL.Image. The use of `load_img` requires PIL.
    sir this error occur continiously , how we can install pil in jupyter?

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

    Can we use GAN to generate images for CNN

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

    Sir i want to increase image dataset using smote technique ...please tell me how to do it???

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

    How thia data set used in website??? Such as i want to make data set for Hat pics and put that pic on real time face detection..?
    Could you tell me how to use?

  • @abhinavgarg5611
    @abhinavgarg5611 2 ปีที่แล้ว +3

    For those facing this error
    FileNotFoundError: [Errno 2] No such file or directory
    create a folder named preview in the same path where your notebook or py file is located and then you will be able to see augmented images in this folder

  • @Jaydeep-ve4jy
    @Jaydeep-ve4jy ปีที่แล้ว

    Hi Krish, thank you for the amazing video. Is there a way we can also preserve labelled data while performing image data augmentation?

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

      If you have corresponding .xml files, then "Roboflow" (google it plz) may work for you. Let me know if you need further help.

  • @pruthvirudraswamimath860
    @pruthvirudraswamimath860 2 หลายเดือนก่อน

    Hello sir I want anemia prediction from eye image project and how it works plz sir

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

    which link did you implement program right now?

  • @SoumyaPanigrahi-wt7il
    @SoumyaPanigrahi-wt7il ปีที่แล้ว

    how to create preview folder and use if i am using colab?????????????????????/

  • @ZulfiqarAli-cg5qw
    @ZulfiqarAli-cg5qw 2 ปีที่แล้ว

    I need help ..Mara error aarha haii save to dir py... augmentation naii show ho rahii preview ma mif someone knw plz help ma

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

    getting bluish images ? how to solve?

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

    Is it applicable for machine learning??

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

    Sir please upload a video on image pre processing for model fit()

  • @aisyahrobi3623
    @aisyahrobi3623 3 ปีที่แล้ว +1

    FileNotFoundError: [Errno 2] No such file or directory...can someone help me with this... I really need help for my project

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

      Use full path of the preview folder in place of save_to_dir='preview' it will work.

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

    your video is very helpful. Can you tell me which data augmentation technique is used for time frequency domain spectrogram (images) ?

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

      don't go deeper into this topic, just cover the basic one

  • @forever-fz1hk
    @forever-fz1hk 4 ปีที่แล้ว

    krish sir just one question please answer....to speed up my processing iam practising them on kaggle as it provides much fast speed....but please answer how to train a image from my computer...or how to set path

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

      U probably cannot do that

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

    Sir please explain graph convolution neural network

  • @9-se-5
    @9-se-5 3 ปีที่แล้ว

    Hi sir getting this error please help em out Input data in `NumpyArrayIterator` should have rank 4. You passed an array with shape', (2720, 4106, 3))

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

      you must have forgoten to put this line
      x = x.reshape((1,) + x.shape)
      at 3:41
      to put and 1 in front of it to make it rank 4

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

    If I have .nii file and how to augment based on CT, MR

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

    Source code link??

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

    How if we have n numbers of images

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

    i am stuck with so many error please help me out

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

    i have getting error any one can help us

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

    FileNotFoundError: [Errno 2] No such file or directory: is the error i am getting even i though i copy the correct path from my system where the image file exists

    • @Omarismail-vs4jl
      @Omarismail-vs4jl 3 ปีที่แล้ว

      make sure you place it in the same directory your notebook is in. for example Anaconda3/cat.jpg

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

      Hello, I also have the same error as you....how you solve it?

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

    Please provide the github link for this code

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

    Please provide Github link for this code.

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

    Can you share the code???

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

    how to do data augmentation of multiple images together??

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

      Loop through the images you have in a folder and apply this on each image.

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

    I have 90 real datasets..bt i need total 1000 dataset..shall i apply this technique for machine learning??

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

    where to create the 'preview folder.

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

      FileNotFoundError: [Errno 2] No such file or directory:

    • @sksujanislam3906
      @sksujanislam3906 3 ปีที่แล้ว +1

      @@divyarajvs8890 create the preview folder in the same location where the notebook file is located.

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

    same technique I applied but showing error
    "Could not import PIL.Image. The use of `load_img` requires PIL."
    Please help sir

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

      Pip install pillow

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

      @@santhanalakshmism22 will try thanks

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

      @@darpan810 My pleasure

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

      @@santhanalakshmism22 getting same error after this run command

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

      Did u install pillow ? Please check the version

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

    Indian Andrew Ng

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

    dude, please do post code in descritption

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

      blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html

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

    Please send this code

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

      blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html

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

    I want to increase (augment) the number of images that i have (50 images) using ImageDataGeneator.
    I found the following code, but it only augments one image per time (one file). I am new to python, so, if there any other easier method to automatically augment the 50 images at once and save the outcome in a new folder...
    Any solution

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

      import numpy as np
      import keras
      from keras.preprocessing.image import ImageDataGenerator, array_to_img,
      img_to_array, load_img
      datagen = ImageDataGenerator(rotation_range =15,
      width_shift_range = 0.2,
      height_shift_range = 0.2,
      rescale=1./255,
      shear_range=0.2,
      zoom_range=0.2,
      horizontal_flip = True,
      fill_mode = 'nearest',
      data_format='channels_last',
      brightness_range=[0.5, 1.5])
      # This is my problem, It loads only one file, and i am searching for an
      automated method to load number of files together and save them in
      another folder.
      img = load_img(r"C:\Users\user 1\Pictures\people_1\1.jpg")
      x = img_to_array(img)
      x = x.reshape((1,) + x.shape)
      i = 0
      for batch in datagen.flow (x, batch_size=1, save_to_dir =r'C:\Users\user
      1\Pictures\people_1\preview', save_prefix ='people2', save_format='jpg'):
      i+=1
      if i>10:
      break

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

      The expected result from the above code is 10 augmented images extracted from the main file of 1.jpg, while I have another 50 files, I am searching for a quicker method to augment them all in one code

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

    Thank You Sir