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

  Рет қаралды 169,287

Krish Naik

Krish Naik

Күн бұрын

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 жыл бұрын
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.
@nurafiqahmahizan
@nurafiqahmahizan 2 жыл бұрын
simple and comprehensive explanation. thank you sir!
@mertceylan2080
@mertceylan2080 2 жыл бұрын
Short and brilliant tutorial ! Thank you so much Krish... May Allah bless you
@arjunpukale3310
@arjunpukale3310 4 жыл бұрын
Sir please upload a video on how to convert image dataset stored in directory as numpy array with image augmentation
@SAURAVkumar-sg8mk
@SAURAVkumar-sg8mk 2 жыл бұрын
thankyou sir,,,it helped me in data generation for my CNN model
@alluprasad5976
@alluprasad5976 4 жыл бұрын
Thank you Krish..do more on segmentation and detection
@cool_videos6016
@cool_videos6016 4 жыл бұрын
How can you data augmentation on selected image classes when a dataset is imbalanced
@pawansran4690
@pawansran4690 3 жыл бұрын
This video has been really helpful. Thank you so much
@vishaljhaveri7565
@vishaljhaveri7565 2 жыл бұрын
Thank you, Krish Sir. It was a good tutorial.
@talasrour5068
@talasrour5068 Жыл бұрын
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
@sandipansarkar9211
@sandipansarkar9211 4 жыл бұрын
That was a superb video.Just want to get my hands dirty with practise.Thanks Krish.
@ausheekhamesra6583
@ausheekhamesra6583 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
@movsesghazaryan1020
@movsesghazaryan1020 2 жыл бұрын
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.
@heenagirdher6443
@heenagirdher6443 3 жыл бұрын
Thank you so much sir for such a great tutorial
@zebafariha8312
@zebafariha8312 Жыл бұрын
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
@saibaba2962
@saibaba2962 4 ай бұрын
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.
@sahubiswajit1996
@sahubiswajit1996 4 жыл бұрын
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 жыл бұрын
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
@aryansingh2105
@aryansingh2105 3 жыл бұрын
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.🙏🏻
@kin_1997
@kin_1997 2 жыл бұрын
love your content man very helpfull
@Motivational-quotes143
@Motivational-quotes143 6 ай бұрын
How can we increase the dataset for numeric dataset?
@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 ?
@pruthvirudraswamimath860
@pruthvirudraswamimath860 2 ай бұрын
Hello sir I want anemia prediction from eye image project and how it works plz sir
@jeamsdere9636
@jeamsdere9636 3 жыл бұрын
thank sir, it was great tutorial
@wolfinstincts29
@wolfinstincts29 9 ай бұрын
the fourth dimension is for batch number
@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
@VictorVelazquezEspitia
@VictorVelazquezEspitia 3 жыл бұрын
Excelent video, thank you
@imanefahim8557
@imanefahim8557 3 жыл бұрын
Nice video, I did data augmentation "on fly" inside my model, any ide how to visualize it?
@satyaganesh7159
@satyaganesh7159 4 жыл бұрын
sir please create a tutorial on MNIST dataset with indepth intution, which will be useful
@sourinroy992
@sourinroy992 4 жыл бұрын
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 жыл бұрын
in other type you can use like a undersampling and oversampling concepts
@wajeehanaz9115
@wajeehanaz9115 2 жыл бұрын
Sir i want to increase image dataset using smote technique ...please tell me how to do it???
@NomanNawaz-i9j
@NomanNawaz-i9j Жыл бұрын
how to change the images save location after augmentation , i want to save images after augmentation in my pc drive ?
@siddhantkumar698
@siddhantkumar698 Жыл бұрын
Can we use GAN to generate images for CNN
@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??
@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
@SoumyaPanigrahi-wt7il
@SoumyaPanigrahi-wt7il Жыл бұрын
how to create preview folder and use if i am using colab?????????????????????/
@satinder_sartaaj
@satinder_sartaaj 3 жыл бұрын
How can we balance image dataset by using this augmentation??
@codingtamilanshorts
@codingtamilanshorts 4 жыл бұрын
Data argumantation for MATLAB code of CNN is available ??
@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.
@rutveek6050
@rutveek6050 Жыл бұрын
getting bluish images ? how to solve?
@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 ?
@louerleseigneur4532
@louerleseigneur4532 3 жыл бұрын
Thanks Krish
@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?
@foruniversity2525
@foruniversity2525 2 жыл бұрын
thank you very much
@wanianawaz6999
@wanianawaz6999 3 жыл бұрын
Could not import PIL.Image. The use of `load_img` requires PIL. sir this error occur continiously , how we can install pil in jupyter?
@christopherami8142
@christopherami8142 3 жыл бұрын
same here ?
@kamleshsahane9439
@kamleshsahane9439 3 жыл бұрын
pip install pillow
@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
@notgamer8802
@notgamer8802 2 жыл бұрын
which link did you implement program right now?
@yughendermeda6231
@yughendermeda6231 Жыл бұрын
Thank You Sir
@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
@abhinavgarg5611
@abhinavgarg5611 2 жыл бұрын
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.
@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 жыл бұрын
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.
@andrmtts
@andrmtts 3 жыл бұрын
thank you!
@vjukulkarni6057
@vjukulkarni6057 3 жыл бұрын
How if we have n numbers of images
@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
@subhadeepdutta5501
@subhadeepdutta5501 3 жыл бұрын
If I have .nii file and how to augment based on CT, MR
@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
@ajanthakaipu1790
@ajanthakaipu1790 4 жыл бұрын
Sir please explain graph convolution neural network
@arshad1781
@arshad1781 4 жыл бұрын
nice
@tausifahmed751
@tausifahmed751 3 жыл бұрын
MANKIND'S ANGEL YOU ARE, YOU ARE MY SAVIOUR. INDIA ROXX
@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
@nidhikundu3620
@nidhikundu3620 4 жыл бұрын
how to do data augmentation of multiple images together??
@gujjalapatiraju7435
@gujjalapatiraju7435 4 жыл бұрын
Loop through the images you have in a folder and apply this on each image.
@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 4 жыл бұрын
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?
@mianshani9115
@mianshani9115 4 жыл бұрын
Source code link??
@EngRiadAlmadani
@EngRiadAlmadani 4 жыл бұрын
Good jop
@Kumar08
@Kumar08 4 жыл бұрын
Please provide Github link for this code.
@prasunprakash2297
@prasunprakash2297 4 жыл бұрын
Please provide the github link for this code
@priyankadinda6670
@priyankadinda6670 4 жыл бұрын
where to create the 'preview folder.
@divyarajvs8890
@divyarajvs8890 4 жыл бұрын
FileNotFoundError: [Errno 2] No such file or directory:
@sksujanislam3906
@sksujanislam3906 4 жыл бұрын
@@divyarajvs8890 create the preview folder in the same location where the notebook file is located.
@renarayana4177
@renarayana4177 4 жыл бұрын
Can you share the code???
@nishatchowdhury1466
@nishatchowdhury1466 4 жыл бұрын
I have 90 real datasets..bt i need total 1000 dataset..shall i apply this technique for machine learning??
@prajwalbanagar3179
@prajwalbanagar3179 3 жыл бұрын
I have 30 and have CNN to do😆
@darpan810
@darpan810 4 жыл бұрын
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 жыл бұрын
Pip install pillow
@darpan810
@darpan810 4 жыл бұрын
@@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
@ranjithkumarsamala6416
@ranjithkumarsamala6416 4 жыл бұрын
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 4 жыл бұрын
Please send this code
@aravindnaidu4819
@aravindnaidu4819 3 жыл бұрын
blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html
@shreenivaschityala3699
@shreenivaschityala3699 4 жыл бұрын
Indian Andrew Ng
@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
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 50 МЛН
Girl, dig gently, or it will leak out soon.#funny #cute #comedy
00:17
Funny daughter's daily life
Рет қаралды 42 МЛН
WORLD BEST MAGIC SECRETS
00:50
MasomkaMagic
Рет қаралды 44 МЛН
Tutorial 25- Data Augmentation In CNN-Deep Learning
7:39
Krish Naik
Рет қаралды 100 М.
Build a Deep CNN Image Classifier with ANY Images
1:25:05
Nicholas Renotte
Рет қаралды 607 М.
127 - Data augmentation using keras
20:10
DigitalSreeni
Рет қаралды 73 М.
Stanford's FREE data science book and course are the best yet
4:52
Python Programmer
Рет қаралды 696 М.
Creating Image Dataset using Google Teachable Machine | GeeksforGeeks
12:30
Image Classification using CNN Keras | Full implementation
17:56
Coding Lane
Рет қаралды 176 М.
Angry Sigma Dog 🤣🤣 Aayush #momson #memes #funny #comedy
00:16
ASquare Crew
Рет қаралды 50 МЛН