No video

195 - Image classification using XGBoost and VGG16 imagenet as feature extractor

  Рет қаралды 19,017

DigitalSreeni

DigitalSreeni

Күн бұрын

Code generated in the video can be downloaded from here:
github.com/bns...
XGBoost documentation:
xgboost.readth...
Video by original author: • Kaggle Winning Solutio...

Пікірлер: 64
@inusahmukaila6773
@inusahmukaila6773 2 жыл бұрын
you are really a good teacher, i appreciate good work
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Glad you think so!
@gauravpandey5067
@gauravpandey5067 Жыл бұрын
​@@DigitalSreeni sir I am applying xgboost algo fir image classification but I am getting 0% accuracy Pls help me sir
@fatmagulkurt2080
@fatmagulkurt2080 2 жыл бұрын
How can I apply k-fold cross validation in this code. I wish you may help me in this situation. Thank you for all your effort Sir.
@fatmagulkurt2080
@fatmagulkurt2080 2 жыл бұрын
Because the most common problem in practice is overfittig. How can I overcome this in this code
@kenanmorani9204
@kenanmorani9204 3 жыл бұрын
Thank you for your effort Sir! Wish you all the best! I have a question regarding classification for medical image when using your approach. Obviously, you have implemented your method on categories or classes that are well differentiable, but it it still worth trying for medical CT images of classification such as COVID19 classification task? Do you have different codes or recommendation for such a task? Best!
@tanmaydeshpande2409
@tanmaydeshpande2409 3 жыл бұрын
Hello Sreenivas sir! I am working on a project named *Semantic Segmentation for Autonomous Vehicles in different weather conditions* For this, we are using *A2D2 Semantic Segmentation* dataset. This dataset contains images with their annotations ready. Our aim is to create a model which is robust in different weather conditions. For the adding the different weather effects, have used different Image Processing Techniques for image augmentation for 4 weather effects : rainy, foggy, cloudy & snowy. Now for Semantic Segmentation, we are using *ENCODER-DECODER* model where we are using VGG16 pretrained model on Imagenet + FCN (Fully Convolutional Networks). I am trying the standard process of adding convolutional layers, deconvolutional layers, unpooling, etc for the FCN part but i am not that confident. *Questions:-* 1) How should i approach FCN part? I am doing trial-error for this purpose. Any suggestions. 2) I have created 950 images of each weather condition. The annotated images of all the 4 weather effects will be same. Can it overfit the model where the truth value will be same for all the 4 weather effects? 3) I was thinking of adding another feature extraction NN which will provide information about the weather effects. The o/p of this feature extraction network would be added to the FCN part to increase robustness of the model. Any suggestions or tips will be helpful. Thank you & Stay Safe!
@tafadzwazhakata4579
@tafadzwazhakata4579 2 жыл бұрын
I keep getting this error 'int' object has no attribute 'assign' in --> feature_extractor=VGG_model.predict(x_train)
@rajilect9293
@rajilect9293 2 жыл бұрын
im also getting the same problem,,, if u got solution... tell me
@TitoWPurnomo
@TitoWPurnomo Жыл бұрын
I've run code with jupyter-lab but during training process always appears statement "the kernel appears to have died. it will restart automatically" . do you know the solution?
@pegahdehbozorgi8531
@pegahdehbozorgi8531 2 жыл бұрын
Hey, thank you for the fantastic video; I have a question about feeding input to the VGG16; Can we also feed NumPy arrays to VGG16 and extract features from our NumPy arrays instead of images? If yes, are we limited to using packages from Keras preprocessing to be on the safe side regarding our calculations, or can we simply load arrays with whatever we want? Thanks.
@whoami6821
@whoami6821 2 жыл бұрын
Have you ever work on using XGboost to classify both image and text data? For example, classify "meme", so image + text column
@meghaadikarinayake7067
@meghaadikarinayake7067 12 күн бұрын
Sir, I have 120 classes will this work in my case ?
@elyesachour6333
@elyesachour6333 2 жыл бұрын
Amazing video!! I was wandering if I can save my trained model so I can call it one more time without rerunning it and how to do so. I'm actually trying to classify 3 classes with a limited number of features and I'm getting an 0.59 in accuracy, I've tried data augmentation with ImageDataGenerator but the accuracy has become 0.58. What should I do to increase it. Thank you
@maitrysinha8947
@maitrysinha8947 2 жыл бұрын
You are too good sir
@sharp_guy2310
@sharp_guy2310 2 жыл бұрын
Hi sir currently I'm dealing with a data set in which there's only two categories and each having only 36 images for training.. can i use the method u discussed above?
@aryanrahman3212
@aryanrahman3212 2 жыл бұрын
You are great!
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Thanks :)
@dylangaldes7044
@dylangaldes7044 3 жыл бұрын
When fitting the train data I am getting a bad allocation error, any idea why this may be?
@SakibHasan-qv1gf
@SakibHasan-qv1gf 4 ай бұрын
#Now, let us use features from convolutional network for RF feature_extractor=VGG_model.predict(x_train)"I got a error on this linr please help"
@nobody2937
@nobody2937 2 жыл бұрын
Where can we download the data ?? And, how to arrange the data in subfolders??
@dylangaldes7044
@dylangaldes7044 3 жыл бұрын
Is it a good image classification model? I am doing a paper on plant disease detection and am looking into XGBoost
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Yes, please try both XGBoost and LGBM.
@dylangaldes7044
@dylangaldes7044 3 жыл бұрын
@@DigitalSreeni Hello again, the purpose of the VGG16 is as a feature extractor correct? this produces a new image of the extracted regions am I correct? Would I be able to show these images before I pass it to XGBoost in order to visualise further what the features per class look like? Thanks a lot for your input it is greatly appreciated
@dhirajb9005
@dhirajb9005 3 жыл бұрын
Same I am also thinking
@inibapakbudi9186
@inibapakbudi9186 2 жыл бұрын
Hi Sir, thanks for your great video. Is it possible to apply XGBoost for image to image regression or image denoising like in Convolutional Autoencoder or UNET?
@vamsikrishnabhadragiri402
@vamsikrishnabhadragiri402 3 жыл бұрын
Can we do data argumentation and perform Xgboost later? If in case, it is yes then how the labels will be given?
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Yes of course. In the past I got good results when I used augmented data. I performed augmentation to generate 5 to 10 times more images and stored them locally in separate folders with appropriate folder names which I have used as class labels.
@vamsikrishnabhadragiri402
@vamsikrishnabhadragiri402 3 жыл бұрын
@@DigitalSreeni Thanks andi :)
@nasifosmanshuvra8607
@nasifosmanshuvra8607 2 жыл бұрын
in xgbclassifier to fit how can I provide images and labels in batches after data augmentation through data generator??
@caiyu538
@caiyu538 2 жыл бұрын
Great lecture
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Glad you think so!
@vibhajain8431
@vibhajain8431 2 жыл бұрын
How can I measure complexity of the proposed approach
@aryanphilip1527
@aryanphilip1527 3 жыл бұрын
Hi Sir, I was running this code to classify 66 categories(6000 training images) on colab pro, but fitting the code has been taking too long. Any suggestions for this? Love the videos,Thanks
@michaelvogtvogo7853
@michaelvogtvogo7853 3 жыл бұрын
Hi i am doing a master thesis and I would like to know that is it advisable to write code for functions from scratch or using libraries .. In order to justify proof of work.. Like for example Instead of XGBoost library do the entire thing from scratch??
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Why stop there? Why not write the code to reinvent entire python? Obviously, I was being sarcastic. I don't understand why you want to reinvent something that has already been invented and working fine. I recommend benefitting from existing libraries so you can focus more on things that actually need to be coded.
@SauravKumar-xz3ek
@SauravKumar-xz3ek 3 жыл бұрын
Hello Sir, can we use XGBoost and CNN model( for feature extraction ) , for doing classification of arthritis from input images?
@amiralx88
@amiralx88 2 жыл бұрын
Hi great videos I've seen most of them but I don't understand why you would convert the image from bgr to rgb when you read the image with opencv it will be in bgr format so you should convert it from bgr2rgb no ?
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
I don’t understand what your exact question is, can you please elaborate? When you read images using opencv they are in the form of BGR. You don’t have to convert them to RGB for most purposes but I do it for visualization, makes it easy for us to interpret them. You can use BGR2RGB conversion in opencv which is nothing but swapping the B and R channels. You’d get the same result if you use RGB2BGR as this operation is just swapping the first and last channels.
@haintuvn
@haintuvn 3 жыл бұрын
I have installed xgboost and it works well on python but I could not import "xgboost" at jupyter notebook. Can you help to solve the problem? Thanks!
@swathiprabhu8906
@swathiprabhu8906 2 жыл бұрын
Am getting 0% accuracy . What may be the reason?
@shamimsarker839
@shamimsarker839 Жыл бұрын
mee too
@gauravpandey5067
@gauravpandey5067 Жыл бұрын
My accuracy is also 0%
@gauravpandey5067
@gauravpandey5067 Жыл бұрын
Pls help me sir
@gauravpandey5067
@gauravpandey5067 Жыл бұрын
​@@shamimsarker839 hello sir have you got solution of this prob
@vidyasvidhyalaya
@vidyasvidhyalaya 7 ай бұрын
sir, please upload a separate video for how to convert this model into a local web application using Flask sir...please
@whoami6821
@whoami6821 2 жыл бұрын
when i use this line "x_train, x_test = x_train / 255.0, x_test / 255.0", I have a error of "TypeError: unsupported operand type(s) for /: 'list' and 'float'". Do you know what happended?
@jchipoco
@jchipoco 11 ай бұрын
#Convert lists to arrays train_images = np.array(train_images) train_labels = np.array(train_labels) test_images = np.array(test_images) test_labels = np.array(test_labels)
@deepeshguragain2658
@deepeshguragain2658 2 жыл бұрын
Which works better on small dataset of 50 vgg16 + random forest or vgg16+ xgboost ?
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
I do not expect any big statistical difference between the results from random Forest and XGBoost.
@Sandykrang
@Sandykrang 2 жыл бұрын
hi, great video. How can I use this for gray scale images?
@deepbrain7167
@deepbrain7167 3 жыл бұрын
How can we perform fusion of handcrafted and vgg16 features for training our classifier.
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Concatenate both features before sending to XGBoost.
@pranavbapat1909
@pranavbapat1909 3 жыл бұрын
Could you please make a video on how to work with custom image dataset, or if you have one already, could you please post the link? In this video, you're working VGG16 pre-trained dataset. But what if I have my own dataset of, let's say, clothing or food items images... And I'm currently in the same situation. A little help regarding this will be greatly appreciated. Thank you. And a very nice video and explanation.
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
This video uses custom dataset. VGG16 is used as pretrained network and not dataset. Most of my videos use custom datasets. I covered both using pretrained networks and also custom networks and also custom feature extractors. Please have a look at other relevant videos on my channel.
@LiuYi_15
@LiuYi_15 Жыл бұрын
please do a video on multilabel image classification using vgg16
@project4998
@project4998 3 жыл бұрын
I want to asking you , what if I would to use binary classification with this code ,what should I supposed to edit ? because I am so confused and I tried a lot of ways to set this code as binary but it same to be 4 class no matter what I am doing , so I wondering where you are setting labels and classes as 4 in your code ? Thank you !
@moumitamoitra1829
@moumitamoitra1829 3 жыл бұрын
can we also display ROC curve for this program?
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
Yes, of course.
@moumitamoitra1829
@moumitamoitra1829 3 жыл бұрын
@@DigitalSreeni Thank you so much, I really appreciate it. For binary classification with VGG16 and XGBoost, I have been able to generate a ROC curve. But for Multiclass I did not. Could you please help me,I really need help.
@anjalichandra5249
@anjalichandra5249 3 жыл бұрын
Sir,Can You pls provide the code
@DigitalSreeni
@DigitalSreeni 3 жыл бұрын
It should be on my github page now. Sorry for the delay in sharing the code.
@matheuscesar8696
@matheuscesar8696 3 жыл бұрын
I keep getting this error 'int' object has no attribute 'assign' in --> feature_extractor=VGG_model.predict(x_train)
@tafadzwazhakata4579
@tafadzwazhakata4579 2 жыл бұрын
hie did you manage to resolve this?
196 - What is Light GBM and how does it compare against XGBoost?
19:05
OMG what happened??😳 filaretiki family✨ #social
01:00
Filaretiki
Рет қаралды 13 МЛН
what will you choose? #tiktok
00:14
Анастасия Тарасова
Рет қаралды 7 МЛН
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 17 МЛН
Mini-ImageNet image-classification (and cross validation)
12:48
191 - Measuring image similarity in python
12:23
DigitalSreeni
Рет қаралды 44 М.
154 - Understanding the training and validation loss curves
27:47
DigitalSreeni
Рет қаралды 104 М.
158 - Convolutional filters + Random Forest for image classification.
27:14
Why GPUs Outpace CPUs?
28:24
DigitalSreeni
Рет қаралды 2,4 М.