deeplearning-benchmark | Benchmark Suite for Deep Learning | Machine Learning library
kandi X-RAY | deeplearning-benchmark Summary
kandi X-RAY | deeplearning-benchmark Summary
Benchmark Suite for Deep Learning
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of deeplearning-benchmark
deeplearning-benchmark Key Features
deeplearning-benchmark Examples and Code Snippets
Community Discussions
Trending Discussions on deeplearning-benchmark
QUESTION
I am interested in training and evaluating a convolutional neural net model on my own set of images. I want to use the tf.layers
module for my model definition, along with a tf.learn.Estimator
object to train and evaluate the model using the fit()
and evaluate()
methods, respectively.
Here is the tutorial that I have been following, which is helpful for showcasing the tf.layers
module and the tf.learn.Estimator
class. However, the dataset that it uses (MNIST) is simply imported and loaded (as NumPy arrays). See the following main function from the tutorial script:
ANSWER
Answered 2017-Sep-12 at 18:47The file that you have referenced, cnn_mnist.py
, and specifically the following function mnist_classifier.fit
, requires Numpy arrays as input for x
and y
. Therefore, I will address your second and third questions as TFRecords may not be easily incorporated into the referenced code.
however, it is not clear how the mnist.train.images and mnist.train.validation are formatted
mnist.train.images
is a Numpy array with shape (55000, 784), where 55000 is the number of images and 784 is the dimension of each flattened image (28 x 28). mnist.validation.images
is also a Numpy array with shape (5000, 784).
Does anyone have any experience with converting jpg files and labels to NumPy arrays that this Estimator class expects as inputs?
The following code reads in one JPEG image as a three-dimensional Numpy array:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install deeplearning-benchmark
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page