Videos

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



sentdex

Welcome to a tutorial where we’ll be discussing how to load in our own outside datasets, which comes with all sorts of challenges!

First, we need a dataset. Let’s grab the Dogs vs Cats dataset from Microsoft: https://www.microsoft.com/en-us/download/confirmation.aspx?id=54765

Text tutorials and sample code: https://pythonprogramming.net/loading-custom-data-deep-learning-python-tensorflow-keras/

Discord: https://discord.gg/sentdex
Support the content: https://pythonprogramming.net/support-donate/
Twitter: https://twitter.com/sentdex
Facebook: https://www.facebook.com/pythonprogramming.net/
Twitch: https://www.twitch.tv/sentdex
G+: https://plus.google.com/+sentdex

Source

Similar Posts

42 thoughts on “Loading in your own data – Deep Learning basics with Python, TensorFlow and Keras p.2
  1. Do the class numbers have to be 0 and 1? I've been using a tf model with OpenCV to find a cat or dog with a live video, but the model predicts 0 when there is a dog or if neither class is found.

    I tried changing class_num from 0 to another integer to differentiate dog predicted from neither predicted, but then the model comes out terrible. Any way around this?

  2. The amount of troubleshooting that I have to do with Python code is frustrating af. There should be whole tutorials on why python never works. smh

  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.

  4. 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.

  5. using training_data.append() is taking a whole eternity for me what should i do to make it more efficient??…
    the dog and cat data I am using is 25000 images

  6. Sir i have a question, how can I load and access a dataset with multiple sub classes. For example: a leaf dataset with 7types(7classes) of leaf and all of them have two subclass(healthy and unhealthy), how can i load and access all of the images. It will be so helpfull if you tell me, thank you.

  7. 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

  8. Hello, according to syntax, does the network first familiarize itself with a dog before moving onto the pictures of cat and doing the same ?

  9. Something wrong with "import os" or with "os.listdir(path)", it says that there is no directory and I dont know why
    And yes the path I put in is correct

  10. 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!

  11. 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!

  12. Dear the artificial intelligence community
    I am pleased to introduce DIDA dataset, which is the largest handwritten digit dataset. I will be grateful, if you could help me to introduce this dataset to the community.
    Thanks

  13. Having a little trouble wrapping my head around labeling my training data.

    I have a problem with around 50k classes, and the output could only be one of those classes. What would be my best approach to labeling my data, would it be one-hot encoding, or do I go ahead and jam these classes between 0 and 1?

Comments are closed.

WP2Social Auto Publish Powered By : XYZScripts.com