Hey Hackers, I have updated the code to test the model with real image. You can find the code in my website or GitHub. Happy Learning!!!
@lebaminhdat24022 жыл бұрын
Thank you so much for the video, without it I wouldn't be able to pass my final project, wish you can develop your channel further in the future
@kwanshinoda78592 жыл бұрын
very true bro
@HackersRealm2 жыл бұрын
Glad it was helpful!!! I will try my best to create more content!!!
@lebaminhdat24022 жыл бұрын
@@HackersRealm many thanks you again
@PraveenKumar-ob7gd2 жыл бұрын
@@lebaminhdat2402 u do that project u create ppt slides is available to send me plsss..... I want 😊
@lebaminhdat24022 жыл бұрын
@@PraveenKumar-ob7gd sorry for reply too late, can you give me your email or something I can send to you!!
@Tis_I984 ай бұрын
Awesome class Very clear abd understanding
@myhaluu42773 жыл бұрын
Thanks for your video clip, it helped me a lot of in my graduation thesis
@HackersRealm3 жыл бұрын
Glad it was helpful!!!
@vikrammane-xu6qn Жыл бұрын
What kind of pre-requisites do i need before going through the project? except python basic syntax
@HackersRealm Жыл бұрын
You can watch it as it's basic deep learning project
@kirushanthuthayakumar77693 ай бұрын
Its so nice and very helpful. Thank you so much ❤
@HackersRealm3 ай бұрын
Glad it was helpful!!!
@erwanerwan6196 Жыл бұрын
hello sir !!! i am still on it...i tried to do the same code on jupyter nb CREATE DATAFRAME ETC...But i find 1 for any sample cats dogs why..?? do you have any idea to fix this issue ?
@ahmadshabaz272411 ай бұрын
awesome tutorial bro. lot of respect
@HackersRealm11 ай бұрын
Thanks for your kind words!!!
@fatmanursefer148211 ай бұрын
Can I do the same operations for more than 2 classifications?
@HackersRealm11 ай бұрын
No, there should be some changes done on the model side for that but you can still try
@jimgolias97452 жыл бұрын
Hello and thank you for the video! Why from keras.preprocessing.image import load_img gives me an error? How do i fix it?
@HackersRealm2 жыл бұрын
I think, the module may get updated in some version, try to check how to import the module for that version, it will fix the issue.
@sadikaljarif96352 жыл бұрын
is it possible to use this for alexnet model???
@HackersRealm2 жыл бұрын
yes, you can use any model for this
@sadikaljarif96352 жыл бұрын
@@HackersRealm what about image procesing ..if i use alexnet i have to change it right???
@HackersRealm2 жыл бұрын
@@sadikaljarif9635 a little, may be, it depends on the input size you're specifying, or you can use the same steps for alexnet
@sadikaljarif96352 жыл бұрын
@@HackersRealm ok thanks
@jimgolias97452 жыл бұрын
Hello and great job on the video. I get an error in plt.figure(figsize=(25,25)) that says KeyError: 'images' . How do i fix this?
@HackersRealm2 жыл бұрын
the column name is not present. Are you using the same dataset from the video?
@maedeha.b47149 ай бұрын
I am having the same issue
@ashmikajayharinkhede51973 жыл бұрын
10k subs incoming!!!
@HackersRealm3 жыл бұрын
Hope so!!!
@erwanerwan61962 жыл бұрын
ok with class_name it's better ..no invalid syntaxe now !! ..because i ve seen you added it ...
@Kaijoh2 жыл бұрын
haarcascade ? to really differ both of them using webcam
@HackersRealm2 жыл бұрын
didn't get you, can you rephrase the question?
@saitarun6562 Жыл бұрын
Thanks Liked & Subscribed ❤
@HackersRealm Жыл бұрын
Thanks mate😄
@amaobirufusbobo37072 жыл бұрын
Your explanation was superb, but i noticed there is no prediction in this project and how can I add it if possible
@HackersRealm2 жыл бұрын
You can see other similar projects in the playlist, those videos will have prediction part
@sumaiyasafdar68452 жыл бұрын
i wanted to ask that how can we present this project in our college? like do we need to write frond end too? of just the code in google collab??
@HackersRealm2 жыл бұрын
you can show the result by giving the image input to the model and display the result
@ghitalazrek4759 Жыл бұрын
i have this ValueError: Input 0 of layer "max_pooling2d_8" is incompatible with the layer: expected ndim=4, found ndim=5. Full shape received: (None, 2000, 78, 78, 32)
@HackersRealm Жыл бұрын
I think there is some problem with the reshape of input. You can see the None at the start. Try to reshape it and check whether you have the shape (2000, 78, 78, 32)
@kaziranga_national_park Жыл бұрын
Hello sir, apporox images 18 lakhs, how to Wild animal images classify and automatically segregation move on folder wise. Please help
@HackersRealm Жыл бұрын
if you have class labels like this dataset, with few changes you can do it!!!
@kaziranga_national_park Жыл бұрын
@@HackersRealm Sir, i am begginger, please video provide. I am from Kaziranga National park (Assam) India. data oparator.
@kaziranga_national_park Жыл бұрын
@@HackersRealm no idea.
@deeber35 Жыл бұрын
I'm getting an invalid syntax error on this line {which matches your code}:: "for class in os.listdir("dog-vs-cat-classification"): ^^^^^ SyntaxError: invalid syntax The next line in the code gives same syntax problem . Any ideas why? Thanks
@kaziranga_national_park Жыл бұрын
Are Spyder software is working. this Coding
@HackersRealm Жыл бұрын
you can use this code in spyder as well
@priyabratmohanty6610 Жыл бұрын
For the generators I am getting "found 0 validated images file names belonging to 0 class" and same response for class 1. Could you please help me with this, why I am getting this . plz help, I have my project submission in 2days
@HackersRealm Жыл бұрын
Are you using the same dataset and in colab?
@priyabratmohanty6610 Жыл бұрын
@@HackersRealm yes the data set is same only for my project. However I am using Kaggle notebook bcz my laptop is a bit slow. So is it happening because of this !?
@HackersRealm Жыл бұрын
@@priyabratmohanty6610 yes you could you colab or you can update the folder path and use it in kaggle
@merosinchan80483 жыл бұрын
Hello. Can I ask why my my dogs and cats images can load, at first and afterwards it’s just figsize x figsize = so,e digits output? And my accuracy is not moving :[
@HackersRealm3 жыл бұрын
you're saying the images are not loading?
@rushikeshchavanke91982 жыл бұрын
29:19 testing time stamp
@darthyrabecka14722 жыл бұрын
Why length of values doesn't match length of index
@darthyrabecka14722 жыл бұрын
plz reply
@HackersRealm2 жыл бұрын
@@darthyrabecka1472 is it showing error while running the code?
@HackersRealm2 жыл бұрын
@@darthyrabecka1472 it's usually have same values only
@tanvivarak61852 жыл бұрын
Hello i really need your help. After successfully running this code I ma trying the prediction part which apparently I am not able to. i tried every possible way that I could. plz also provide the prediction code.....i really need it
@HackersRealm2 жыл бұрын
you have to load and resize the image based on the training we have set. img = np.array(PIL.Image.open(image_name)) pred= model.predict(img) If you face any issues, reach out to me in linkedin or insta, links are in the description
hello i run only the first loop and get invalid syntax i triple checked it but still same error how possible ?????
@HackersRealm2 жыл бұрын
which loop you're referring to? Could you give more detail on that.
@erwanerwan61962 жыл бұрын
@@HackersRealm glad to hear from you !i thi s is my code !input_path = "parentfx" label =['cats','dogs'] for class in os.listdir('parentfx'): for path in os.listdir("parentfx/"+class): if class == "Cat": label.append(0) else label.append(1) input_path.append(os.path.join("parentfx ", class , path )) print( input_path [0] ,label[0] ) File "", line 4 for class in os.listdir('parentfx'): ^ SyntaxError: invalid syntax
@erwanerwan61962 жыл бұрын
maybe TF version is the issue ?
@fahadhos Жыл бұрын
@@HackersRealm i have ques is it the actual binary classification , i just curious i thought i have to put the dog image then model will tell that this is dog
@HackersRealm Жыл бұрын
@@fahadhos yes it's a binary classification problem as the output is 2 only
@cuocsongquanhta5398 Жыл бұрын
Please export model.h5😢
@HackersRealm Жыл бұрын
You could train the model quickly using colab itself
@deeber3511 ай бұрын
What do you do if you have hundreds of corrupt files, like in the kagglecatsanddogs_5340 files?
@HackersRealm11 ай бұрын
You could automate the cleaning process in a loop if the file is not opening
@deeber3511 ай бұрын
@@HackersRealm Which opening of an image command would you advise I use to find the corrupt ones?
@HackersRealm11 ай бұрын
@@deeber35 any library will throw error if you try to open a corrupted file
@erwanerwan61962 жыл бұрын
HI I have only 48 images not more.....batch size =20 then model .fit does not work Epoch 1/50 why ?? --------------------------------------------------------------------------- InvalidArgumentError Traceback (most recent call last) in 4 epochs =50, 5 validation_data =validation_generator , ----> 6 validation_steps = 1.2,
@HackersRealm2 жыл бұрын
what is that validation steps parameters?
@aditya_r_k__3 жыл бұрын
When I'm trying to predict some results by this model it's going to show [[0.]] which makes no sence
@HackersRealm3 жыл бұрын
is it showing the same for all the images?
@aditya_r_k__3 жыл бұрын
@@HackersRealm usually the output will be [cat percentage, dog percentage], but in this case the output will be like [[0.]] that I tried 2 images showing same result
@HackersRealm3 жыл бұрын
@@aditya_r_k__ Are you getting the proper validation score result; If yes, most probably the error may be in the loading of test data
@tanvivarak61852 жыл бұрын
plz provide the prediction code
@phanthong02122 жыл бұрын
Dataset link : 404 Not Found. Please fix it !
@HackersRealm2 жыл бұрын
I will check it
@HackersRealm2 жыл бұрын
www.microsoft.com/en-us/download/confirmation.aspx?id=54765 try downloading the data from this link
@phanthong02122 жыл бұрын
@@HackersRealm Thank you so much !
@foggypoggy6143 Жыл бұрын
there is nothing called load_img in keras.preprocessing.image
@HackersRealm Жыл бұрын
the modules might be updated.. you could use keras.utils instead. keras.io/api/data_loading/image/