Тёмный

Feeding your own data set into the CNN model in Keras 

Anuj shah
Подписаться 8 тыс.
Просмотров 88 тыс.
50% 1

This video explains how we can feed our own data set into the network. It shows one of the approach for reading the images into a matrix and labeling those images to a particular class. This loaded data is then used for training the designed CNN model. The code is available - learnandshare645.blogspot.in/2....
watch the updated video for feeding own dataset in CNN here : • Tutorial on CNN implem...
updated - github.com/anujshah1003/own_d...
You can support me on Paypal : www.paypal.me/anujshah645

Опубликовано:

 

2 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 308   
@leszekpawlowicz8564
@leszekpawlowicz8564 7 лет назад
Fantastic video (and your others as well). Wish I had found this months ago.
@poornachandrasandur5046
@poornachandrasandur5046 8 лет назад
Hi Anuj , It is a very helpful video for Deep Learning practitioners ... Thanks for the good work.. You enlightened me...Thanks , thanks a lot...
@mrharshsr
@mrharshsr 6 лет назад
Almost everything i was hoping to find was right here in this videos. Thanks a ton!
@capsworkz7579
@capsworkz7579 6 лет назад
Very nice video tutorial! Many thanks! Ran with a different data set of my own, very good results! :)
@AmulSharad
@AmulSharad 6 лет назад
Beautiful! Sir, your work is very commendable! Thank you so much :)
@anuradhabalasubramanian9845
@anuradhabalasubramanian9845 2 года назад
You are my saviour Sir ! looking out for the exact explanation . Thanks a lot Sir and keep up your great service . God Bless
@edwinvarghese
@edwinvarghese 6 лет назад
great tutorial Anuj. Thank you!
@susieliu8449
@susieliu8449 7 лет назад
Thank you for your video Mr Anuj~
@anujshah645
@anujshah645 6 лет назад
welcome. Check out this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html
@fatmaelsharkawy5466
@fatmaelsharkawy5466 8 лет назад
I need to ask if it is possible to feed pairs of image to the Keras and merge the result at the end or not
@parthpandya7833
@parthpandya7833 5 лет назад
Hi Anuj, I have the dataset which has both cats and dogs in the same image. I have labeled it using bounding box techniques, I have XML file of the dimensions and converted it to csv. How can i push it for training? I want to use object detection API for the same. Please help
@copachuu
@copachuu 4 года назад
Thank you so much for this tutorial.
@SANJEETkumar-yl5kt
@SANJEETkumar-yl5kt 5 лет назад
Please help......You have flatten the image matrix first, but may be convolution requires image still to be in matrix format than after that flattening of image is done (in model) perhaps. So how is this going to affect the model ?
@MariosN87
@MariosN87 6 лет назад
I have to categorize dog breeding based on images of dogs. It will be done with the same way like the video?
@geetanjalisharma3521
@geetanjalisharma3521 6 лет назад
sir, if iam trying to load the pretrainned model of alexnet i found some error , plz hlp me to fix it. error: ValueError: Layer #0 (named "conv2d_1" in the current model) was found to correspond to layer conv_1 in the save file. However the new layer conv2d_1 expects 1 weights, but the saved weights have 2 elements.
@saikumar-gc2yh
@saikumar-gc2yh 5 лет назад
Sir could you please tell me how to give names to that images if I have very bulky
@alejandrosalinas53
@alejandrosalinas53 5 лет назад
Man! You saved my career! I love you!
@anujshah645
@anujshah645 5 лет назад
kindly follow this videos for updated and better code and theory explanation for CNN ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NUuMg5m42-g.html
@chiranjeev8846
@chiranjeev8846 5 лет назад
have images been downloaded in jpeg format ?
@kadirsharif5519
@kadirsharif5519 5 лет назад
Can you tell me after convert the data into "categorical" how can i use it for real time prediction.... I am a student so can you please help me ?
@RameshKumar-st2bo
@RameshKumar-st2bo 7 лет назад
Nice Video (y) In my case, I have database with images with random labels, Is there any way to arrange the labels or can we train with images having random labels?
@zhahiruddin
@zhahiruddin 4 года назад
may i know what version your models use? i mean your libraries, numpy and so on
@dkishore599
@dkishore599 4 года назад
i tried your code working good given right predict value when i used image from data/horse/horse.1.jpg , but when i tried to predict with one downloaded Horse image from Downloads it could n't be predict it ? why ? what was the issue . why it couldn't predict different location of image ? Please help me
@mrudangpandya5310
@mrudangpandya5310 6 лет назад
HI anuj sir, I want to ask you one question .. How I can read 3D DICOM images?
@RaulDiaz3d
@RaulDiaz3d 5 лет назад
Thank you for writing this. I just wanted to use my own images without downloading a data set. Could you make one make a csv dataset
@shefalisaxena8828
@shefalisaxena8828 5 лет назад
hi Anuj, can you tell me how we can feed our own dataset(1D signal) to CNN??
@EASYLearningstem
@EASYLearningstem 8 лет назад
Good work Anuj !! Thanks for helping out !! Wish you Great Success !!
@anujshah645
@anujshah645 8 лет назад
Thank you sir
@EASYLearningstem
@EASYLearningstem 8 лет назад
Welcome ... Could you drop me a blank email at preetdhanoa@gmail.com.. i am based in North America ..i ll share more info with you .... if you are interested, I have a project for you ..
@priyanandamuri226
@priyanandamuri226 5 лет назад
hi anuj! do you have a project on facial keypoints detection using tensor flow ...???i will pay u..plz help me
@pranithpola3910
@pranithpola3910 7 лет назад
Hi ANuj I am getting this error : AssertionError: AbstractConv2d Theano optimization failed: there is no implementation available supporting the requested options. Did you exclude both "conv_dnn" and "conv_gemm" from the optimizer? If on GPU, is cuDNN available and does the GPU support it? If on CPU, do you have a BLAS library installed Theano can link against? I have given my own single dataset of 80 finger print images and calculating losses.Can you please advise.
@ArshdeepSingh-mj1uw
@ArshdeepSingh-mj1uw 8 лет назад
great work anuj..keep on...
@anujshah645
@anujshah645 8 лет назад
Thank you sir
@gr8msvk
@gr8msvk 5 лет назад
At 19:30 I can see 2 Dropout() functions being called. First it is 0.25 and then below it is 0.5. So since you run the code altogether, the Dropout was at 0.5 at first itself. And the training accuracy didn't improve. And the second time when the second model.fit is executed, the split causes the improvement??
@geetanjalisharma3521
@geetanjalisharma3521 6 лет назад
how to extract the features of testing dataset ???? i have tried like this but no working get_5th_layer_testoutput = K.function([model.layers[0].input, K.learning_phase()], [model.layers[10].output]) layer_testoutput5 = get_5th_layer_testoutput([test, 0])[0] plz hlp me how to extract testing data feature. i have extracted th training data features in the same manner & got good result.but iam failed in case of testing dataset
@s.nithinshrivatsav9347
@s.nithinshrivatsav9347 7 лет назад
the immatrix in my computer is showing some error. Traceback (most recent call last): File "", line 3, in for im2 in imlist], dtype= float) ValueError: setting an array element with a sequence Can u help me out?
@Shivani1987ful
@Shivani1987ful 6 лет назад
How can i test a text captcha... i mean how will i define classes for that? Captcha is combination of alphanumeric values, how can i test ir through CNN. Please help.
@alsafermoh3540
@alsafermoh3540 5 лет назад
very good explaning : but i get this error when implement cnn models ((ValueError: ('The specified size contains a dimension with value
@PiushaKalyana
@PiushaKalyana 6 лет назад
Hi Very use full tutorial you have here. However, What is the reason for this error when I run your code i got following error after run few epochs "have shapes {} and {}".format(x.shape, y.shape)) ValueError: x and y must have same first dimension, but have shapes (20,) and (3,)
@anujshah645
@anujshah645 6 лет назад
+Piusha Kalyana this is during the plotting of curve. Check your number of epochs and xrange in the plotting sub block
@fatinafiqah001
@fatinafiqah001 4 года назад
hi.. i wanna ask.. you don't use tensorflow right in this part 1 tutorial?
@azamazad4927
@azamazad4927 5 лет назад
you saved my day i was struggling with folders of 10 different classification images........
@anujshah645
@anujshah645 5 лет назад
you can watch the updated version of this tutorial ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html
@shivadarshans3409
@shivadarshans3409 4 года назад
Can u help me how to implement this code for 10 classes
@WKhan-jl3fv
@WKhan-jl3fv 6 лет назад
Hello Anuj, When I compile the "model = Sequential()" section I got an error: ValueError: ('The specified size contains a dimension with value
@aartinbokade
@aartinbokade 3 года назад
Sir can you please tell what modifications are to be done if I want to run code with three different folders separately
@anujshah645
@anujshah645 3 года назад
Can you check this , I have used different folders here - github.com/anujshah1003/own_data_cnn_implementation_keras the accompanying video-ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NUuMg5m42-g.html
@Below10IQ
@Below10IQ 5 лет назад
Is there a reason why you made a column of ones?
@Renardbardhi1
@Renardbardhi1 7 лет назад
I would like to ask when you create the label array and you gave them numbers for each class if someone wants to give the actual names of each class what has to do? after that need to be one hot encoder? Thank you very much
@anujshah645
@anujshah645 7 лет назад
well you can give name for your reference and for visualization, but for computation in NN you have to give number the labels. you can follow this video for training your own dataset- ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html
@geetanjalisharma3521
@geetanjalisharma3521 6 лет назад
how to extract the feature of individual layer
@hanyel-ghaish6836
@hanyel-ghaish6836 8 лет назад
Hi Anuj shah, I have this error: "C:\Users\dr_h_\Anaconda2\envs\kersa_env\lib\site-packages\ipykernel\iostream.py", line 317, in write self._buffer.write(string) ValueError: I/O operation on closed file sometimes it appear some times not. I do not know how to handle this error and continue executing my program and read csv files Thanks
@israelgoytom6085
@israelgoytom6085 7 лет назад
Hey, I got this Error, Because of the New Update of Keras ow to Fix This? UserWarning: The "show_accuracy" argument is deprecated, instead you should pass the "accuracy" metric to the model at compile time: `model.compile(optimizer, loss, metrics=["accuracy"])` warnings.warn('The "show_accuracy" argument is deprecated, ' train_acc=hist.history['accu'] KeyError: 'accu'
@kartiksareen
@kartiksareen 6 лет назад
thanks Anuj...one question..will it be same for any other classification as well...I am new to it..so if u could brief me
@anujshah645
@anujshah645 6 лет назад
yes you can
@djeros666
@djeros666 6 лет назад
thanks man this was really helpful!
@anujshah645
@anujshah645 6 лет назад
the updated video is here :ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html
@asmitamohanty4640
@asmitamohanty4640 6 лет назад
Hi! Its a very nice video for beginners like me! Very helpful! However,this is about image classification. I am doing a project on lane detection and In my problem set, I have got a number of " road" images. Now,I want them to convert into gray scale and detect edges in it.The ultimate task is to detect the lane markings in all those images and later annotate them to a video. I was able to do this for all 3900 images and run the video(with the lanes detected) using computer vision(open cv). Now,whatever code I had used in open cv to detect the lanes in a single image,can the same code be used here by CNN? As in,I want to load all my images(resized) into CNN and then perform the image pre-processing and edge detection as per my open cv code and then get the output with the lanes detected in every image. Is it possible to do so in keras? i.e,using the same code as in computer vision approach in CNN? Please let me know.
@anujshah645
@anujshah645 6 лет назад
+Asmita Mohanty for lane detection I guess you need to do it as a regression problem rather than classification as you also needs to give value for where the lane is. And yes detection algorithms can be done with keras
@karthik-ex4dm
@karthik-ex4dm 5 лет назад
Great resource!
@priyadas-dy9vc
@priyadas-dy9vc 6 лет назад
how to prepare dataset for 1D signals instead of images?
@iqrabashir3553
@iqrabashir3553 6 лет назад
I got follwing key error. Kindly help me with it TypeError Traceback (most recent call last) in () 4 model.add(Conv2D(nb_filters, (nb_conv, nb_conv)), 5 padding ='valid', ----> 6 input_shape=(1, None, None)) 7 convout1 = Activation('relu') 8 model.add(convout1) TypeError: add() got an unexpected keyword argument 'padding'
@obsiyoutube4828
@obsiyoutube4828 4 года назад
how can i get ur code for sample,good
@bharathreddy2223
@bharathreddy2223 7 лет назад
im getting error as filter must not be larger than input filter(3,3) input (1,200), can u help me with this
@Stephen93ify
@Stephen93ify 6 лет назад
Hi, Anuj.. What if the dataset has 3 channels color rgb? So, PIL image convert to what? Then, how is the flatten matrix in RGB? And the input shape in RGB? Thanks, your help will be so important :)
@anujshah645
@anujshah645 6 лет назад
I would suggest you watch the new videos i upload for CNN to get clear and understanding. Thre i am using RGB image. first video is explanation and second one is coding. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NUuMg5m42-g.html
@sarahxu2159
@sarahxu2159 7 лет назад
thanks for posting this video! It is just what I am looking for. I am running this code on Mac. However, I got the an error for the code below: for file in listing: im = Image.open(path1 + '\\' + file) img = im.resize((img_rows,img_cols)) gray = img.convert('L') #need to do some more processing here gray.save(path2 +'\\' + file, "JPEG") The error message shows: OSError: [Errno 2] No such file or directory: '\\Users\\huinaxu\\Downloads\\photos\\daisy' What could be the reason? Why it is double back slash here? Shall I modify the code for Mac, so that the path is single slash?
@RameshKumar-st2bo
@RameshKumar-st2bo 7 лет назад
may be you are not providing correct directory
@fatmaelsharkawy5466
@fatmaelsharkawy5466 7 лет назад
how can I use the same code to feed my own RGB images(3 channels) to keras?
@israelgoytom6085
@israelgoytom6085 7 лет назад
Use RGB Histogram
@bobypardamean7355
@bobypardamean7355 4 года назад
Hey, how can we save our training model? Since i didnt see it on this tutorial
@anujshah645
@anujshah645 4 года назад
Yes you can , see the newer tutorial on CNN - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html
@aminullah2666
@aminullah2666 7 лет назад
Very Nice presentation ******** dear how can it be possible that i don't load all of images to array means i don't have much memory and i have 10k images of 300x300 and i want to do it for RGB image
@nirupamagopal6139
@nirupamagopal6139 7 лет назад
Hi Anuj, I get a file permissions error while prescribing and opening the input and output folders. Which IDE did you use to run the code, am trying from Anaconda but getting few errors
@anujshah645
@anujshah645 7 лет назад
I used spyder
@RahulIndoriavision
@RahulIndoriavision 4 года назад
very good tutorial.
@nunjobiz7463
@nunjobiz7463 6 лет назад
Hi Anuj, Thank you for video. Did you have experience of usage image preprocessing before feeding them in CNN? in case yes, which features did you extracted? could you please share a relevant link on some examples? Thank you.
@anujshah645
@anujshah645 6 лет назад
The most common preprocessing used is - Image resize, mean normalization of image(zero mean and unit variance) and image augmentation(shear,rotate,scale,random crop,etc)
@bhabanism
@bhabanism 7 лет назад
Anuj do you have/plan any video or code on image segmentation to detected multiple objects in a single image? I found one in tensorflow (github.com/bhabanism/models/tree/master/object_detection) but looking for one in Keras.
@anujshah645
@anujshah645 7 лет назад
Yes . you can have a look at this - github.com/yhenon/keras-frcnn
@admir3429
@admir3429 6 лет назад
Why do you expand the dimension at x = np.expand_dims(x, axis=0) ?
@anujshah645
@anujshah645 6 лет назад
+Condor to convert it into a shape in which the cnn takes in the input
@Renardbardhi1
@Renardbardhi1 7 лет назад
Hello again Anuj shah, I would like to ask for an Image classification problem. I use Corel5K (I do not know if you know that dataset?) I have achieved a low percentage (app. 30%-35% accuracy) how can I increase that percentage. The dataset has 50 classes with 100 images for each class.
@anujshah645
@anujshah645 7 лет назад
you can try data augmentation
@Renardbardhi1
@Renardbardhi1 7 лет назад
Anuj which is better to use in fit(), the validation_data or validation_split?
@anujshah645
@anujshah645 7 лет назад
+Renos Bardhis using in fit is better as you know about your validation data
@peivz
@peivz 7 лет назад
Hi Anuj shah , GREAT tutorial! Im using 2 classes with 150 pictures each. everything was working fine. I had an error with OverFlowError, but I changed the line input shape to have not (1,row,col) but to (row,col,1) that was ok after. I am getting this error now when running model.fit 20:20 in your video. Exception: Error when checking model input: expected convolution2d_input_3 to have shape (None, 200, 200, 1) but got array with shape (241L, 1L, 200L, 200L). I cant find solution anywhere it seems. Any thoughts? :(
@anujshah2625
@anujshah2625 7 лет назад
just check the last video in the play list for overflow error - image dimension ordering in keras
@venkatesanparamasivam2460
@venkatesanparamasivam2460 6 лет назад
Good one.Thanks
@RajeshDas-ti1qq
@RajeshDas-ti1qq 3 года назад
Anuj sir can you design a cnn architecture that will take two inputs separately using Functional API model..... Feeding one input at a time using Sequential model is everywhere.... So can you explain using Functional API?
@rakesho6975
@rakesho6975 6 лет назад
Thanks Anuj, great video. Would u please ceate a video on data frame.corr() and VIF???
@obsiyoutube4828
@obsiyoutube4828 4 года назад
good presentation and understanding but how can i fix this erroor my keras version is 2.3.1 AttributeError: module 'keras.backend' has no attribute 'set_image_dim_ordering'
@anujshah645
@anujshah645 4 года назад
In newer version it's image_data_format. Kindly check the keras.json file
@pacopacon1
@pacopacon1 6 лет назад
muy bueno, bien explicado!!!
@anujshah645
@anujshah645 6 лет назад
this is old video for cnn , I have created a new updated one , kindly look at this for better understanding: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html&lc=z22nx5hq5wqpwjayr04t1aokgvllrbk0p0uhyfajoetzbk0h00410
@shreyanaik6062
@shreyanaik6062 4 года назад
Thank you so much sir...
@anitchakraborty2543
@anitchakraborty2543 4 года назад
Hi Anuj, Fantastic tutorial. One question, while running your updated_custom_data_cnn.py from your git repository, I'm getting this error. File "/home/guest/anaconda3/lib/python3.7/site-packages/keras/engine/training_utils.py", line 131, in standardize_input_data 'with shape ' + str(data_shape)) ValueError: Error when checking input: expected conv2d_1_input to have 4 dimensions, but got array with shape (646, 128, 128) Could you please help? Thanks a lot.
@anujshah645
@anujshah645 4 года назад
this is because the expected dimension with tf backend is (num_batch,rows,cols,channels). Although we have a gray image its channel dimension is 1. we can achieve this by expanding the dimension in the last axis. x=np.expand_dims(x,axis=3). now the input shape will be (646,128,128,1)
@TheMonika123456789
@TheMonika123456789 7 лет назад
very nice video tutorial. could you please tell me how i can select appropriate optimizer for my system. thank you
@anujshah645
@anujshah645 7 лет назад
thats based on trial. train your model and check validation accuracy . which ever gives the best go with it
@WPFES
@WPFES 5 лет назад
Thank you!
@kaiwalya_patil
@kaiwalya_patil 6 лет назад
Any python code for running that with webcam so that i can use this in real life applications?
@anujshah645
@anujshah645 6 лет назад
Hey you can have a look at this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-G9qiGuZKjLs.html
@nikhilthakur5426
@nikhilthakur5426 8 лет назад
Hi Anuj, I am trying to use Keras for sentence classification. I have performed word2vec using gensim. I am confused about how to proceed now. How to give the output of word2vec as input?
@anujshah645
@anujshah645 8 лет назад
hello nikhil. I have explored only the image recognition part. I haven't done the sentence classification so i don't have much idea
@GuillermoZubieta
@GuillermoZubieta 8 лет назад
you can send the files you worked on this code files pictures please thank you very much my email is zubietaingenieria@gmail.com
@austinchen6582
@austinchen6582 7 лет назад
Hey Anuj, Thanks for the tutorial. However I followed your steps but didn't get a high accuracy on my 5 classes training. I guess maybe for the labeling we need to use one-hot encoding but I don't know how to. (Figuring it out). Do you have any ideas?
@anujshah2625
@anujshah2625 7 лет назад
there is a command for one hot encoding : trainLabels = np_utils.to_categorical(targetLabel, num_classes)
@anujshah645
@anujshah645 7 лет назад
ya you follow the code i have mentioned how to create one-hot-encoding by using np_utils.to_categorical(labels_train, num_classes)
@SaiMouli100
@SaiMouli100 8 лет назад
Is it possible to do semantic segmentation with the code from this video?
@anujshah645
@anujshah645 8 лет назад
I haven't tried that so m not sure. maybe you should try if it works
@anujshah645
@anujshah645 8 лет назад
just keep your new dataset into another variable with another name and use that instead of Y_test
@t4rarais
@t4rarais 6 лет назад
thanks you! :D
@anujshah645
@anujshah645 6 лет назад
these are old videos . you can watch the new videos on CNN implementation i uploaded : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NUuMg5m42-g.html
@ashishvija
@ashishvija 5 лет назад
nicely explained, unfortunatly i'm getting error in visualization part AttributeError: 'Conv2D' object has no attribute 'get_output' can you help me with this even after using .output() TypeError: 'Tensor' object is not callable is coming can you help me with this thank you
@anujshah645
@anujshah645 5 лет назад
Hi Vijay, Actually this is quite old video with older version. I would recommend to watch the video on cnn understanding and implementation to understand the theory as well as code in keras for loading data, training, saving model and reloading saved model and doing prediction, etc.: part-1: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html part-2: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NUuMg5m42-g.html
@TheMonika123456789
@TheMonika123456789 7 лет назад
hello anuj, how can we use only deep select features of train convolutional network. i want to remove last fully connected layer, whioch is output layer.
@anujshah645
@anujshah645 7 лет назад
i guess you can use this model.layers.pop() or if you are using the pretrained imagenet for example they provide weights without the top layers which you can finetune
@TheMonika123456789
@TheMonika123456789 7 лет назад
could you please tell me your mail id
@anujshah645
@anujshah645 7 лет назад
anujonline645@gmail.com
@Muneebable
@Muneebable 7 лет назад
Hi Anuj, Instead of doing the gray scale, I am using the colored images and the image dimension is different. i am using image dimension 120x120 with colored images and the shape of the image is immatrix[0].shape =(43200,) which is 120x120x3. so when i am going to reshape it later, I am getting error which is "" ValueError: total size of new array must be unchanged"". How can i handle this error so i can reshape it??
@Muneebable
@Muneebable 7 лет назад
Can I ask u the reason? What's the difference and point
@Muneebable
@Muneebable 7 лет назад
nick187able thanks I will read that. it's gonna take time. but if u find the exact point kindly tell me that
@sakifislam7021
@sakifislam7021 6 лет назад
At first i'd like to thank you for this awesome tutorial. but i have a question: --> how do could i use multiple input folders to read in my data? sorry i am absolute newbie in programming.
@anujshah645
@anujshah645 6 лет назад
HI, This is actually an old video i would suggest you have a look at the two new videos i uploaded where i have explained and coded the CNN implementation in a much better way and I hope that will answer your question too ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NUuMg5m42-g.html
@thaear1
@thaear1 6 лет назад
Great Work
@anujshah645
@anujshah645 6 лет назад
thanks. Check out this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html
@deepanaik4879
@deepanaik4879 3 года назад
how to execute it in colab
@larebamir966
@larebamir966 5 лет назад
i want to know how to set img_row,Img_col, does it vary with the size of dataset?
@larebamir966
@larebamir966 5 лет назад
i have the dataset of 13 objects with 1200 images each but i am getting this error: i am working with your newer version of code: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html 6 for img in img_list: 7 input_img=cv2.imread(data_path + '/'+ dataset + '/'+ img ) ----> 8 input_img=cv2.cvtColor(input_img, cv2.COLOR_BGR2GRAY) 9 input_img_resize=cv2.resize(input_img,(128,128)) 10 img_data_list.append(input_img_resize) error: OpenCV(3.4.1) C:\Miniconda3\conda-bld\opencv-suite_1533128839831\work\modules\imgproc\src\color.cpp:11147: error: (-215) scn == 3 || scn == 4 in function cv::cvtColor
@anujshah645
@anujshah645 5 лет назад
well img_row, img_col is a hyper parameter, it does not depend on the size of data set. you can do experiment with different size and choose the best which works. If you are confused you can use input size used by state of art network - say 224X224
@fatmaelsharkawy5466
@fatmaelsharkawy5466 7 лет назад
how can I download the data set that you have been used in the tutorials
@anujshah645
@anujshah645 7 лет назад
those are just random images i downloaded from internet. i guess i don't have that now
@fatmaelsharkawy5466
@fatmaelsharkawy5466 7 лет назад
Anuj shah we asked before how we can use your code to feed RGB images but u not reply. can u please tell us how we can feed our RGB images instead of gray scale
@lhlee888
@lhlee888 5 лет назад
excellent.
@mjasrotia29
@mjasrotia29 7 лет назад
Fantastic video Anuj !! I have a small question, can this be used to train on a set of individual images and then finding the no of occurrences of that individual image within a bigger image. In other words, object detection in a larger image. Thanks
@anujshah645
@anujshah645 7 лет назад
Yes it can be with some tricks, But I haven't tried this kind of network yet.
@zionramdinthara8403
@zionramdinthara8403 3 года назад
Its a good explanation. I have two questions though. 1. In line 45 why do you have to flattened the data while we can simply call the flatten function provided by keras when we are feeding to fully connected layer ? 2. I would like to know why you had converted all the labels to 1 in line 48. ?
@anujshah645
@anujshah645 3 года назад
HI Zion, Yes you are right, actually this is a pretty old video. I would request you to checkout the later one which explains much clearly and hopefully will answer your questions - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html code - github.com/anujshah1003/own_data_cnn_implementation_keras
@rakesho6975
@rakesho6975 6 лет назад
Thanks Anuj, would you please explain why we need to reshape data before feeding to CNN? How the data look before and after reshape. A small example will help a alot
@anujshah645
@anujshah645 6 лет назад
data need to be reshaped so as to feed in CNN as CNN takes input in image format - 2D array. I would suggest you watch the new video I made on CNN, it will explain all your doubts: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html
@jinop.j.1269
@jinop.j.1269 8 лет назад
I have a question like How to use CNN for Feature Extraction...suppose I have 3 set of folders (for example purpose)..each folder contain 100 images...I need to extract the out put of last hidden layer(for each images i trained using CNN)...Ultimately I should get all the features of 300 images...then I will feed this data to another classifier ....pls help me in this regard
@anujshah645
@anujshah645 8 лет назад
you can save it in some matrix or something
@jinop.j.1269
@jinop.j.1269 8 лет назад
K...Thank U....can u give your mail id or share your linkedin/fb link
@anujshah645
@anujshah645 8 лет назад
facebook Anuj Shah Arps
@jinop.j.1269
@jinop.j.1269 8 лет назад
k..i send u the request...one more question..how can i find out the total time taken for execution..after 100 epoch...how we can find out the total time taken for all these epochs
@soumyadeepdebnath4063
@soumyadeepdebnath4063 6 лет назад
Is Keras available for windows?
@anujshah645
@anujshah645 6 лет назад
yes.
@nirajpatil2512
@nirajpatil2512 8 лет назад
Why didnt you do feature extraction for this problem statement? When do we use feature extraction then?
@anujshah645
@anujshah645 8 лет назад
The feature is being extracted and trained in one single network. we dont need two different network , we can do with one
@charumathy1035
@charumathy1035 6 лет назад
what feature you have extracted?
@dkishore599
@dkishore599 4 года назад
You have explained pin to pin up to Model Start, i am impressed . Can you help me with video link where did you explain about model creation steps step way step like this video???. that helps me a lot.
@anujshah645
@anujshah645 4 года назад
Hi Kishore , I would recommend you watch the new video i uploaded on CNN. That will clear lots of things fort you- ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html
@chinnuvswnth
@chinnuvswnth 5 лет назад
Helo sir, Your work is excellent. Can you please suggest a solution for classifying multiclass unlabelled images into respective class folders using a pretrained model.
@anujshah645
@anujshah645 5 лет назад
well if you have predefined classes, you can label them , it will require some manual effort but once done, you can easily use existing pre-trained models as your base and train it as per your number of classes. something kind of transfer learning
@chinnuvswnth
@chinnuvswnth 5 лет назад
@@anujshah645 Yeah,thanks for the reply...i thought there might be some way of retrieving them from the pretrained feature labels without having to manualy do it first.
@kikokimo2
@kikokimo2 6 лет назад
Hi Anuj! Many thanks for this tutorial! Is there any updated version, as of 06.2018? Thanks!
@anujshah645
@anujshah645 6 лет назад
yes : part -1 : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html part -2 : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-NUuMg5m42-g.html code: github.com/anujshah1003/own_data_cnn_implementation_keras
@kikokimo2
@kikokimo2 6 лет назад
Thanks man! Outstanding work!
@srma6367
@srma6367 3 года назад
can u please provide me the code in the video
@anujshah645
@anujshah645 3 года назад
I have modified and uploaded latest video and code. code: github.com/anujshah1003/own_data_cnn_implementation_keras video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html
@ShubhamSingh-wm1gh
@ShubhamSingh-wm1gh 7 лет назад
thank you very much ...this video is worth watching and this channel is worth subscribing....
@anujshah645
@anujshah645 7 лет назад
thanks subham. you can watch this video too- ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-u8BW_fl6WRc.html this is the updated version of the above video.
@ShubhamSingh-wm1gh
@ShubhamSingh-wm1gh 7 лет назад
i have seen those 2 videos too but i am facing some problems with them... 1. i can't able to use cv2 in anaconda virtual envioronment (in spyder). for this i am using PIL Image. 2. facing problems in visualizing intermediate layers. error: Activation' object has no attribute 'get_output' can you please help me thank you...
@anujshah645
@anujshah645 7 лет назад
you can use cv2 with anaconda environment. you just need to copy cv2.pyd into the site-package
@ShubhamSingh-wm1gh
@ShubhamSingh-wm1gh 7 лет назад
it's useful for windows os but in ubuntu there is no cv2.pyd file is available what should i do for linux environment ??
@anujshah645
@anujshah645 7 лет назад
in linux also there is a some way to give path, I don't remember exactly, you will get it somewhere online
@shitteljanjan
@shitteljanjan 7 лет назад
Hi Anuj, thank you for your wonderful tutorials. I implement it but I got error in part 6 which that is related to [ val_acc and val_loss]. However, I got this error: train_acc=hist.history['acc'] KeyError: 'acc' I don't know what is the problem. Can you please help me??
@anujshah645
@anujshah645 7 лет назад
do this - print(hist.history) and see if it has an element name 'acc' . Maybe they have updated
@shitteljanjan
@shitteljanjan 7 лет назад
Thank you so much for your quick response. I add this (metrics=["acc"]) to the (model.compile()) in 5th part. and it works
@anujshah645
@anujshah645 7 лет назад
thats great
@ashikahmed2231
@ashikahmed2231 7 лет назад
getting an error while print test score and test accuracy "warnings.warn('The "show_accuracy" argument is deprecated, '" What to do now, ?
@anujshah645
@anujshah645 7 лет назад
is this an error or warning? are you getting the output?
@ashikahmed2231
@ashikahmed2231 7 лет назад
Anuj shah training and testing phase is running smoothly except thehe accuracy show part. cant get thehe accuracy value here for this error. code is running great
@anujshah2625
@anujshah2625 7 лет назад
score = model.evaluate(X_test, Y_test, show_accuracy=True, verbose=0) print('Test score:', score[0]) print('Test accuracy:', score[1])
Далее
The moment we stopped understanding AI [AlexNet]
17:38
Просмотров 832 тыс.
CNN Receptive Field | Deep Learning Animated
10:28
Просмотров 2,2 тыс.
3D CNN-Action Recognition Part-1
6:33
Просмотров 59 тыс.