Loading in your own data - Deep Learning basics with Python, TensorFlow and Keras p.2

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

sentdex

sentdex

Күн бұрын

Пікірлер: 766
@AnimilesYT
@AnimilesYT 5 жыл бұрын
5:04 I don't know why, but the way you casually said "ha, bluedog", and then continue on, was hilarious to me xD
@mirkx7382
@mirkx7382 2 ай бұрын
You are one of the most chill and laid-back smart teachers i ve ever seen. such an informative tutorial. Thank You :)
@mockingbird3809
@mockingbird3809 6 жыл бұрын
These were videos that I requested. Please make more Project videos in Machine learning and deep learning videos and real-world machine learning projects in PYTHON because You Are The Best to learn from
@MSFTSTRIO
@MSFTSTRIO 5 жыл бұрын
This is so true. I've been so frustrated trying to learn this topic and a lot of videos are just people explaining what neural networks are, like the begging of the previous video in this series, but nobody actually gets into the code and explains how to set up functions. Like there is A HUGE DIFFERENCE BETWEEN DRAWING A NEURAL NETWORK AND ACTUALLY CODING ONE!!! ANYONE CAN DRAW ONE
@kaushilkundalia2197
@kaushilkundalia2197 5 жыл бұрын
So true ! Make more such project videos. They prove to be of great help.
@a.n.7338
@a.n.7338 5 жыл бұрын
Can someone tell me what X=[] and Y=[] is used for?
@anwayeerc
@anwayeerc 5 жыл бұрын
@@a.n.7338 Yes I do want to know
@bennri
@bennri 5 жыл бұрын
@@a.n.7338 That's to initialize it to an empty array. But at 15:30, he learned that it did not initialize the type. and that's something I especially like about his videos: he doesn't just edit out the mistakes, any talks about things like the need to reshape being kind of stupid.
@uditsingh9576
@uditsingh9576 6 жыл бұрын
Just wow , didn't wanted to watch the whole video , but your are a magnet !! Excellent style of teaching
@Taha-jj1kr
@Taha-jj1kr 6 жыл бұрын
A nice alternative to pickle is np.save('features.npy',X) #saving X=np.load('features.npy')#loading
@sentdex
@sentdex 6 жыл бұрын
Thanks for sharing!
@flosset9640
@flosset9640 5 жыл бұрын
thanks
@dineshgandhi2255
@dineshgandhi2255 5 жыл бұрын
Thanks
@vanluutran726
@vanluutran726 4 жыл бұрын
very helpful
@rohitborra2507
@rohitborra2507 4 жыл бұрын
thanks
@seza1231
@seza1231 3 жыл бұрын
For those who want to use RGB/color images, modify these lines! Change these: img_array = cv2.imread(os.path.join(path,img) ,cv2.IMREAD_GRAYSCALE) plt.imshow(img_array, cmap='gray') X = np.array(X).reshape(-1, IMG_SIZE, IMG_SIZE, 1) To: img_array = cv2.imread(os.path.join(path,img)) plt.imshow(img_array) X = np.array(X).reshape(-1, IMG_SIZE, IMG_SIZE, 3) And this should work, good luck!
@mahmoud-khaled-abo-elmagd
@mahmoud-khaled-abo-elmagd 2 жыл бұрын
you are the man thanks
@PubgMaan007
@PubgMaan007 Жыл бұрын
Thanks alot for the videos! Great way to start my Data Science Journey. Really grateful to you for posting such content for free.
@sentdex
@sentdex Жыл бұрын
Thank you for the super thanks, best wishes to you on your programming journey!
@minjaewoo5243
@minjaewoo5243 5 жыл бұрын
This is currently the best TensorFlow tutorial on youtube. Can't express how thankful I am, after wasting much time on crappy videos named TensorFlow in 10 mins, 5 mins, 1 min and etc...
@GilLianni
@GilLianni 5 жыл бұрын
Epic moment: "haa, blue dog" @ 5:05
@AaqibMehrban
@AaqibMehrban 4 жыл бұрын
hahahahaa i laugh so hard
@janbiel900
@janbiel900 6 жыл бұрын
The value of these videos is fucking incredible. After some setup with anaconda to get tensorflow and python 3.6 to work in pycharm, i was able to reproduce all of this with my own data. Your explanations are absolutely on point and i have no questions left after this part.
@sentdex
@sentdex 6 жыл бұрын
Thanks, that's awesome to hear!
@ssagonline
@ssagonline 5 жыл бұрын
Works like a charm. For those(beginners like me) who had issue in layers like "kernel size not defined". Just replace "(3,3 ) by kernel_size=3 " in layer 1 and 2 and it will be good to go.
@quanghuyngo7556
@quanghuyngo7556 6 жыл бұрын
Hi Harrison. You've been doing an absolutely amazing list of implementating Deep learning videos with Python, Tensorflow, Keras, etc. This is the most useful job you've ever done. I've learned the Machine learning, Deep learning theory easily but implementation and application is something difficult to me. Keep doing this please.
@KHM95
@KHM95 3 жыл бұрын
Here's a course you'll need. Face Mask Detection Using Deep Learning . It's paid but it's worth it. khadymschool.thinkific.com/courses/data-science-hands-on-covid-19-face-mask-detection-cnn-open-cv
@Xaminn
@Xaminn 6 жыл бұрын
Another amazing set of tutorials. You truly are helping me understand Python and Deep Learning at a whole different level. Thank you for your time and expertise, Sentdex.
@bartoszturkowyd3608
@bartoszturkowyd3608 6 жыл бұрын
I love the way how you personified the NN. The part with shuffling makes me laugh!
@PepeTostado
@PepeTostado 3 жыл бұрын
I keep Getting: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize' What does it mean, could not find anything on the web, help!
@KHM95
@KHM95 3 жыл бұрын
Here's a course you'll need. Face Mask Detection Using Deep Learning . It's paid but it's worth it. khadymschool.thinkific.com/courses/data-science-hands-on-covid-19-face-mask-detection-cnn-open-cv
@akinyemisodiq7081
@akinyemisodiq7081 2 жыл бұрын
i started my python journey with you back in the university days, thanks for being there boss.
@niclaswustenbecker8902
@niclaswustenbecker8902 6 жыл бұрын
Great tutorial, but the way you load the data is not very memory efficient and this will cause problems with large datasets. First the training_data list is written into RAM and afterwards the same amount of memory is reserved when converting into a numpy array. So this approach is only good for datasets < RAM size/2. Another option would be to create the numpy array at the beginning using np.empty and then write the data as entries into the array. This way the dataset can be as large as your RAM. If the dataset is larger than the RAM size it is suggested to use a generator that loads and yields the data during training. This way your dataset can be as large as your SSD, but training speed is most likely limited by the read speed of the drive. Just something I had to deal with during my thesis in the last couple of months. Maybe you could make a tutorial on the generator one, not a lot of people know about this. Anyways, keep up the good work!
@will1337
@will1337 6 жыл бұрын
This looks very interesting and I'm experiencing some errors with this as well on my thesis. Can I contact you via email about this?
@niclaswustenbecker8902
@niclaswustenbecker8902 6 жыл бұрын
Sure, can you contact me via youtube? Or post you email and I will contact you
@liveleaky7571
@liveleaky7571 6 жыл бұрын
@@will1337 delete the comment with your email
@stewie055
@stewie055 6 жыл бұрын
​@@will1337 Did you fixed your problem? my python returns "MemoryError" when doing np.array(X).reshape(-1 , IMG_SIZE, IMG_SIZE, 3) step I'm doing the colored version (so I have about 3 channels of colors which is causing me trouble)
@will1337
@will1337 6 жыл бұрын
@@stewie055 I did fix it with changing my sampling rate of my data. Maybe resize your images? I am not sure how to fix it with image data, sorry.
@stephenderosa2412
@stephenderosa2412 2 жыл бұрын
"the hand of a dog", so wise sentdex. forever indebted
@r00t_sh3ll
@r00t_sh3ll 6 жыл бұрын
amazing videos, great AI tutorials, honestly one of the best programming channels on KZbin. thank you for making these videos
@PandoraMakesGames
@PandoraMakesGames 6 жыл бұрын
Yeah, I also really enjoy his videos. He inspires me to make my own AI videos.
@Huguillon
@Huguillon 6 жыл бұрын
1:52 I was taking it serious till the mug appears
@gokulanand685
@gokulanand685 3 жыл бұрын
THANK YOU SO MUCH!!! I just started with Machine Learning and Neural Networks and this video helped me a lot!!!
@afailable
@afailable 3 жыл бұрын
Sentdex: understands neural nets Also Sentdex: doesn't know what to call a dogs paw
@franklydoodle350
@franklydoodle350 3 жыл бұрын
More like neural pets lol
@hurolinci5986
@hurolinci5986 3 жыл бұрын
Thank you so much for this video. As a programmer who just wants to start prototyping a simple model without a great DL background this video gave me the tools to get on with my work.
@robertaradi9994
@robertaradi9994 6 жыл бұрын
This series is so thorough and easy to understand (for me at least :D)! I can't wait for the next part!
@sentdex
@sentdex 6 жыл бұрын
Great to hear!
@liamfmackle
@liamfmackle 5 жыл бұрын
6:50 "the hand of a dog" - it is called a paw! hahaha
@benjamin-dubreu-data
@benjamin-dubreu-data 6 жыл бұрын
11:54 that's a great imitation of a model trying to learn ^^
@KHM95
@KHM95 3 жыл бұрын
Here's a course you'll need. Face Mask Detection Using Deep Learning . It's paid but it's worth it. khadymschool.thinkific.com/courses/data-science-hands-on-covid-19-face-mask-detection-cnn-open-cv
@soeaung1984
@soeaung1984 3 жыл бұрын
You are very good in teaching and the world need you, Sir.
@jamesriri1810
@jamesriri1810 4 жыл бұрын
Sentdex these are the best videos I have ever seen in Deep Learning. Amazing tutorials. You are the best at what you do. Why did it take me long to find this channel.
@sentdex
@sentdex 4 жыл бұрын
Welcome here :D
@jamesriri1810
@jamesriri1810 4 жыл бұрын
@@sentdex can I have your email if you don't mind?
@jamesriri1810
@jamesriri1810 4 жыл бұрын
@@sentdex Hello. I got stuck when instructing my directory on the file. Kindly advise. Thank you.
@malikadabare3719
@malikadabare3719 5 жыл бұрын
one of the best programming channels on KZbin. Subscribed and hit the bell ; )
@sentdex
@sentdex 5 жыл бұрын
Thanks!
@RickertBrandsen
@RickertBrandsen 6 жыл бұрын
These vids always cheer me up :) You are by far my most favourite instructor. :) When I feel depressed i just watch your videos.
@sentdex
@sentdex 6 жыл бұрын
Nice to hear :)
@FurkanGulsen
@FurkanGulsen 4 жыл бұрын
I've been looking for ways to upload 40k images to my Drive for 3 days. You in one word: you are perfect
@dhruvagrawal3856
@dhruvagrawal3856 3 жыл бұрын
you can download google drive on ur machine and sync it with your drive
@trivukhac2965
@trivukhac2965 6 жыл бұрын
I like the teaching style, it's simple to understand
@suleimanmustafa1473
@suleimanmustafa1473 6 жыл бұрын
Thanks have been looking forward to this tutorial will help with my thesis. For windows, if you have anaconda installed and cannot find module cv2, you may simply have to do: pip install opencv-python if you are on linux you can do : pip install opencv-python
@randytucker3083
@randytucker3083 6 жыл бұрын
If you are having trouble here use anaconda prompt. This is in the Anaconda Manager where you start jupyter. Then simply type in pip install opencv-python and mine at least worked great
@MrSpaceboyy
@MrSpaceboyy 5 жыл бұрын
opencv-python is installed, but it cannot find the module cv2
@FatihKarakuzu
@FatihKarakuzu 6 жыл бұрын
Heay sentdex pls keep up with your videos. They are really helpful in so many ways. Im just starting to get into ML and started studying Computer-Science just because of ML and your videos are so helpful. Thumbs up to you
@aakashdusane
@aakashdusane 5 жыл бұрын
At 14:00 is there any reason why we dont just do: training_data = np.array(training_data) X = training_data.T[0] y = training_data.T[1]
@rubenuribe
@rubenuribe 5 жыл бұрын
this video is amazing, I am so glad I found your channel. I have tried learning this stuff for quite a while now through other KZbin videos but nobody could explain it that well.
@aravindswamy7631
@aravindswamy7631 5 жыл бұрын
@Ruben can u share the code
@aravindswamy7631
@aravindswamy7631 5 жыл бұрын
@RubenUribe through via email if possible
@georgeseese
@georgeseese Жыл бұрын
Thanks. On Windows, I had problems with your DATADIR="X:/Datasets/PetImages" @2:10. I had my own version of course, but the code said (in effect) my path was not valid, even tho it was. I discovered Colab runs Linux-style OS. There are several methods of doing it; I used the Google Drive mount and zipfile to extract (instead of the Windows File Explorer Extract), ending with DATADIR=''/content/drive/MyDrive/datasets/training_set'. I finally got to see the gray dogs!
@GelsYT
@GelsYT 4 жыл бұрын
This video was 2 years ago! Hey sentdex! THANKS :D
@fun-ih5sc
@fun-ih5sc 4 жыл бұрын
seriously you teaches better than my professors Thanks for teaching us. :)
@PraYogiz
@PraYogiz 6 жыл бұрын
i enjoyed this so much, i was from CS degree. But not have quite good moment with programming. So i decided to get job that not programming. But, since i was try to learn about pyautogui and selenium from your video, i was so exited to learn ML, and now here am i ... following your keras tutorial :D
@michaelberna987
@michaelberna987 4 жыл бұрын
Thanks Snowden, nice tutorial.
@joewannimozzarella
@joewannimozzarella 2 жыл бұрын
Can you show us how to make a image generator with own pictures?
@neemaradhalalneema5418
@neemaradhalalneema5418 Жыл бұрын
Hi how to use this method if we have 4 different categories?
@veer1472
@veer1472 3 жыл бұрын
Guys, the kaggle dataset that he is referring to no longer has folders named as cats and dogs... there are 2 folders, one is for training and another one is for test. You've gotta loop through images in the training folder and assign the labels using the image name
@lemyul
@lemyul 5 жыл бұрын
finally, I got through this video without any error
@marcosbeliera1
@marcosbeliera1 2 жыл бұрын
Hey sentdex Thanks for the video ! I can't see what you did to reshape the "y" list at the end of the video @ 16:20 ... Could you please clarify this ? Thanks again !
@engr.inigo.silva2000
@engr.inigo.silva2000 2 жыл бұрын
Brother, you're amazing. This video has been a huge help. Thanks.
@Nusiq
@Nusiq 5 жыл бұрын
14:42 I had to change both X and y into numpy array to make it work. y as a list didn't work.
@kamalmoussa2239
@kamalmoussa2239 2 жыл бұрын
Did your model still work in the end? Im having this issue now
@omarpasha2968
@omarpasha2968 3 жыл бұрын
So far, so good! The first dog grayscale image was successfully displayed. I was getting nervous there for a minute! I got confused when you added all that space at the bottom. It threw off my Jupyter notebook. I followed you thereafter, but my output did not print. We'll on to the other videos from other channels. I got to keep moving on. It was good while it lasted.
@PlaneToTheBrainES
@PlaneToTheBrainES 5 жыл бұрын
plt.imshow(img_array, cmap="gray") plt.show()' shouldn't retrieve all images, not just the first one?
@venkuburagaddaacc
@venkuburagaddaacc 5 жыл бұрын
he had "break" in the for loops. So looped once and then "broke" out the for loop. That is why "img_array" has only 1 image data.
@PlaneToTheBrainES
@PlaneToTheBrainES 5 жыл бұрын
@@venkuburagaddaacc Okay Thanks :)
@lemyul
@lemyul 5 жыл бұрын
@@venkuburagaddaacc ty
@thefastreviewer
@thefastreviewer 2 жыл бұрын
Hey man. What should I write instead of the "training_data.append" line if I want a multiclass dataset? Yours has two classes, imagine I have a 5-class dataset.
@coolstudios8273
@coolstudios8273 Жыл бұрын
Great video! How could I modify this to use multiple categories for classification instead of just single category label?
@robertue1
@robertue1 3 жыл бұрын
Great video, looking forward to see the next one.
@bibanez135
@bibanez135 5 жыл бұрын
Sentdex, I didn't understand when you did the reshape what the -1 exactly meant... you glossed over it a little bit. What does it exactly mean? Thanks
@ricoturpisch357
@ricoturpisch357 5 жыл бұрын
i also want to know, could some1 explain please?
@nektoxyz1013
@nektoxyz1013 5 жыл бұрын
Same problem! I ve stuck on that! I HAvent made it before, tried to make reshape after. But it didnt worked
@joeywilmots1318
@joeywilmots1318 5 жыл бұрын
It basically tells numpy the following: given all the other parameters IM_SIZE,IM_SIZE,1 figure out the other dimension (in this case the amount of images). its an automatic way of writting np.reshape(amount_of_samples, im_size, im_size, 1).
@jamesdials13
@jamesdials13 3 жыл бұрын
This was the most helpful video I've found. thank you!
@neatpolygons8500
@neatpolygons8500 5 жыл бұрын
10:22 what kinda cpu you have that could iterate over all of those images in few seconds :D
@siddhisalvi1628
@siddhisalvi1628 2 жыл бұрын
Hello is it necessary to print all the images like it is printing only one dog image what about the others ? I am doing orb detection does it required to loop through all images?
@manishanikam9325
@manishanikam9325 4 жыл бұрын
I like your way of teaching.
@deepakathirvel8023
@deepakathirvel8023 5 жыл бұрын
It was really a very useful video...Thaaank u very much for ur timely help
@kaushik5014
@kaushik5014 6 жыл бұрын
Thanks @sentdex, just what I was looking for :)
@garrettsolarsystem2585
@garrettsolarsystem2585 5 жыл бұрын
Great tutorial! However, I got a question. What if you have an image in multiple categories. So you could be sorting images based on size and colour and you stumble on an image that is red and big.
@shubhamkedar508
@shubhamkedar508 4 жыл бұрын
Can you make video on how to create raster(.geotiff) dataset in python
@hpsalway6538
@hpsalway6538 4 жыл бұрын
Please make a video on how to load in the iam dataset.
@pawegoebiowski1641
@pawegoebiowski1641 4 жыл бұрын
16:25 There isnt problem in the kernel, I restart it and still have same issue. Dont know how it repair
@내능지어디감
@내능지어디감 4 жыл бұрын
Same here...
@pawegoebiowski1641
@pawegoebiowski1641 4 жыл бұрын
@@내능지어디감 I think i found solution, just enter anaconda cmd and type "install cv2" (or any lacking library) it helped me
@내능지어디감
@내능지어디감 4 жыл бұрын
@@pawegoebiowski1641 Well, that didn't work for me. I think I should post it on stackoverflow.... but thanks anyway :D
@seth8141
@seth8141 6 жыл бұрын
What is your opinion on setting an aspect ratio and adding padding during resizing? I just feel like forcing an n x n dimension distorts images too much when we have the varied original resolutions.
@abbasmurtaza6085
@abbasmurtaza6085 3 жыл бұрын
why dont u use cv2.imshow()???? 4:40
@joedoe4484
@joedoe4484 3 жыл бұрын
Hi, great work! I have a question, though, upon the "homework challenge" ! reshape(-1, IMG_SIZE, IMG_SIZE, 3) pops a ValueError: cannot reshape array of size 239640576 into shape (224,244,3). What's your opinion and solution ?? Thank you
@GJ-bq9hd
@GJ-bq9hd 6 жыл бұрын
Really interesting and objective explanation of the topic! lol'd hard bc of the sudden blue dog
@prophotographytml8122
@prophotographytml8122 4 жыл бұрын
What are the things to do and consider to prepare my own data images. I'm a beginner.
@cemlynwaters5457
@cemlynwaters5457 5 жыл бұрын
Sir your videos are epic! You are an excellent teacher
@Kojifra
@Kojifra 4 жыл бұрын
How to load the image data set from my computer and split into two data set for training and testing?
@shanerooney7288
@shanerooney7288 5 жыл бұрын
*sentdex* and *DeepLizard* have both been _VERY_ helpful with teaching me how to program. Thanks.
@atharvapagare7188
@atharvapagare7188 6 жыл бұрын
Amazing video man... Looking forward to the next one
@user-yr1uq1qe6y
@user-yr1uq1qe6y Жыл бұрын
It seems like all the videos and tutorials on this topic only deal with binary situations. Outside of the Keras docs on flowers there is a lack of variety on multiple classification approaches (> 2 classes). I have a feeling that might be where complexity and accuracy dive off a cliff.
@eyosiyastibebu6102
@eyosiyastibebu6102 4 жыл бұрын
sir how i appy data Augmentation when i use this loading system
@thefastreviewer
@thefastreviewer 2 жыл бұрын
Exactly the video I needed! Thx bro!
@monkeysaregreat
@monkeysaregreat 6 жыл бұрын
I suggest using context managers for file opening. Cleaner and is better for beginners as you don't have to remember to close the file
@PepeTostado
@PepeTostado 3 жыл бұрын
I keep Getting: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize' What does it mean, could not find anything on the web, help!
@nikitavozniuk3087
@nikitavozniuk3087 3 жыл бұрын
check path to image
@nikitavozniuk3087
@nikitavozniuk3087 3 жыл бұрын
it is because resize cant run on none image
@PepeTostado
@PepeTostado 3 жыл бұрын
@@nikitavozniuk3087 thx
@prasmitpansare
@prasmitpansare 4 жыл бұрын
One of the most helpful video I came across as beginner. I still have not found anyone discussing how to create our own dataset and label them. I have 5000 PDF which I have converted to text and I am lost now, I dont know what to do here on, can someone give me a direction ?
@ShakirKhan-th7se
@ShakirKhan-th7se 2 жыл бұрын
What is the best way to get input from different folders with different numbers of images each?
@danielcox8306
@danielcox8306 6 жыл бұрын
The first video was great, looking forward to watching this one through as well. Can make a video about using CPU vs GPU for some of these training processes? I would like to learn more about forcing the script to use the GPU for running instead of the CPU. For instance some of your older videos (like the Monte Carlo Simulation series) could benefit from this. Thanks!
@sentdex
@sentdex 6 жыл бұрын
To use the GPU, you just install the GPU version of TensorFlow. Depending on your OS this is slightly different, but: Windows: kzbin.info/www/bejne/qGiQiIOYrZ2Jq7s Ubuntu: kzbin.info/www/bejne/n6CZcp2car2el68 Obviously now you do the later version of TF and the correct matching CuDNN and cuda toolkit. Currently Cuda Toolkit 9.0 and CuDNN 7.0.
@KashifShaheed
@KashifShaheed 5 жыл бұрын
X.append(features) AttributeError: 'numpy.ndarray' object has no attribute 'append' I got this error while preparing the dataset @sentdex how can i resolve
@muratpq
@muratpq 5 жыл бұрын
Hey, because your X variable is numpy array, you need list. X = [ ] # these are list y = [ ] # list and list has attribute "append".
@MartinZatko
@MartinZatko 5 жыл бұрын
you just need to write the :X = np.array(X).reshape(-1, IMG_SIZE, IMG_SIZE, 1) out of the for loop.
@DemonSlayer627
@DemonSlayer627 6 жыл бұрын
If your using keras you should use the flow_from_directory function ,it's really the same thing without the hassle of running out of memory trying to load the entire dataset.
@yanliu8152
@yanliu8152 4 жыл бұрын
Hi Sir, I found you posted X, y empty lists to store the features and labels. However, I have no idea how you distinguish the corrected features and labels from training datasets. Please kindly advise me. Thanks in advance!
@joshuachan2097
@joshuachan2097 3 жыл бұрын
Sorry I am new to this topic. I'm kind of confusing for the last part, the last row the X[1] can I say its the image and y[1] is the label for that image? Till the last row, we actually already done the data training and by reading the X and y the machine start to do prediction? Is that all for the cats and dogs machine learning? Look forward to some answers, thanks in advance!
@Hysteresis11
@Hysteresis11 3 жыл бұрын
At 4:46 getting message that 'img_array' not defined, same exact code...
@andihaki
@andihaki 3 жыл бұрын
any tutorial for custom face keypoint training models?
@giggetto71
@giggetto71 3 жыл бұрын
Great video! Got my own 2 category example working in minutes.which is fantastic! I am just getting crazy extending it to 3 category..what I did (apart from adding the folder with the 3rd category images): 1- add the 3rd category to CATEGORIES vector, 2- change "model.add(Dense(1))" to "model.add(Dense(3))" 3- change "model.add(Activation('sigmoid'))" to "model.add(Activation('softmax'))" 4- change from "loss='binary_crossentropy'" to "loss='sparse_categorical_crossentropy'" when I run the model fit, i get a good accuracy more that 0.9 but each prediction gets [0. 0. 1.]]. any clue? thanks!!!
@Quinten-sn6it
@Quinten-sn6it Жыл бұрын
you figured it out yet?
@Darkzzzz99
@Darkzzzz99 4 жыл бұрын
i try to make my own model with 8 labels but my y.pickle is empty when i try to run it it says run out of output. Anyone know how to solve this?
@georgeseese
@georgeseese 11 ай бұрын
Re: Changing the X list to X array @16:35 "X = np.array(X).reshape(-1, IMG_SIZE, IMG_SIZE, 1)". This combines (conversion of list to np array) and (reshaping). (a) I can not find explanation of this syntax with 4 parameters. Any help? (b) The '-1' has various meanings in array reshape. What does it mean here? (c) edit: removed (d) The first array in X list starts as: [102 104 62 ... 69 75 83] (50 elements in dim). But X array starts as: [[[[102] [104] [ 62] ... [ 69] [ 75] [ 83]] One element in dim. Is that correct? (e) The last parameter is 1. Where does that show in the X array? (f) To simplify these questions for debugging, I used img size of (3, 2) (width, height) giving an array shape of 2r x 3c. And I process only two images, skipping random.
@georgeseese
@georgeseese 11 ай бұрын
After changing code to handle color, the "light" appears. (b) The '-1' says to flatten the array. With color, there are 3 elements in each dim. (e) The last parameter '1', as you mentioned is for gray images (one value per item). When using color images, change this to 3. First part of X array starts as [[[ 43 55 78]. Hope this helps.
@IslanderIntelligence
@IslanderIntelligence 3 жыл бұрын
Thank you so much this video helped out so much with an up coming video of mine
@heshamibrahim3414
@heshamibrahim3414 4 жыл бұрын
the plylist is amazing, however i came across this issues after running part 2 and part 3 back to back.. the y also needs to be an array, so the model.fit in part 3 can run... thank you once more :)
@honzaadamek5186
@honzaadamek5186 6 жыл бұрын
Great tutorial. Looking forwart to next part!
@sentdex
@sentdex 6 жыл бұрын
Expect it tomorrow!
@vizotechz6104
@vizotechz6104 5 жыл бұрын
hi can you tell me if we have more than two classes then what to do. As I have a data with 10 classes.
@NickxHaruka
@NickxHaruka 5 жыл бұрын
Hi, have you found an answer to this? I'm wondering too.
@marcosvolpato8135
@marcosvolpato8135 6 жыл бұрын
Cant wait to the next video!! congratulations!!
@angelikaprzeliorz8325
@angelikaprzeliorz8325 4 жыл бұрын
Where are we using here the code from the first film? What about it?
@davidg4893
@davidg4893 5 жыл бұрын
how would i convert this to using layers then giving me a list of the top 5 predictions if i add 10 categories and for instance defining a kitchen and a bathroom and whats in them like plastic bottle , glass, cup, person, food kind of thing ?
@kevinmikez37
@kevinmikez37 4 жыл бұрын
hey bro i was wondering if you can do a 3rd part working with this dataset in an ANN, would be nice.
@rezahosseini7851
@rezahosseini7851 6 жыл бұрын
I did convert my x to a no.array without reshaping it as you did and I got the exact same shape as you did! So I guess you no longer need to reshape it to (-1,50,50,1). plz tell me if I've done something wrong
@Olejika_CheatEngine
@Olejika_CheatEngine 2 жыл бұрын
4:18 For me it says "No such file or directory". Help
@tanmaysharma2742
@tanmaysharma2742 4 жыл бұрын
hey can anyone help me at 3:23 , what if i don't want to convert it into gray scale, should i just skip that step?
Deep Learning with Python, TensorFlow, and Keras tutorial
20:34
sentdex
Рет қаралды 1,3 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Image Processing with OpenCV and Python
20:38
Rob Mulla
Рет қаралды 188 М.
Train Neural Network by loading your images |TensorFlow, CNN, Keras tutorial
18:29
When Maths Meet Coding
Рет қаралды 324 М.
Image Classification using CNN Keras | Full implementation
17:56
Learn With Jay
Рет қаралды 194 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН