Comments (3)
I'll try to give a more comprehensive answer by the end of the weekend, but yes, you should be able to evaluate your graph in batches. Basically, instead of passing in the entire set of 10000 images, you should take subsets of it at a time and keep a running tally of the statistics you are interested in. For accuracy, you would want a running total of the "correct" guesses, and then you can take a floating point division of num_correct / total_test_samples
.
In real use, it's probably best to do the model training and evaluation on a more powerful rig than the RPi. It's a fun exercise to figure out how to run these examples on the RPi, but it's hardware is better suited for taking in pre-trained models. I'm sure it could learn smaller traditional models, though!
from tensorflow-on-raspberry-pi.
I look forward to the more detailed answer. I would love to see how one would go about breaking up the mnist test data into batches and/or a more general approach for a data set and load that into the evalutation.
I agree with the sentiment of training and evaluating on a more powerful system but at the moment my pi is the only thing I have that can run tensorflow so i'm trying to see what I can and can't get away with. I also like the idea of doing large scale training evaluating on a "base" model elsewhere and then possibly collecting more data on the pi and teaching/evaluating it in runtime and then rejecting or keeping the new model based on the results. Just gotta find it's limitations first.
from tensorflow-on-raspberry-pi.
Hey @SuperJonotron - sorry for the extra late reply; this month has been nutty.
Here's a simple example from a workshop I gave last week- check out the section titled "Validate" toward the bottom of the notebook:
https://github.com/samjabrahams/tensorflow-workshop/blob/master/AlexNet%20Transfer%20Learning.ipynb
Basically, it takes batches of the validation data and increments a counter for how many it got correct in that batch. At the end, you do a floating point division of the num_correct / total
from tensorflow-on-raspberry-pi.
Related Issues (20)
- Tensorflow error
- r
- Using ARM Compute library and NN
- JNI Tensorflow compilation files
- error loading graph from retrained model HOT 1
- error in raspberry pi 3
- sed: no input files
- Latest Tensorflow for raspberry pi HOT 8
- Raspberry PI import tensorflow error HOT 4
- Bazel requires newer version for tensorflow
- softmax() got an unexpected keyword argument 'axis'
- Need a release for version 1.4 or later HOT 1
- Bazel v0.13.0 failed in RPi3B+
- Failing to build tensorflow C++ API on raspberry pi model 3 b+ HOT 1
- Memory Error trying to install TensorFlow on Raspberry PI WH HOT 2
- Is there something for raspberry pi 4B? HOT 1
- I want to run a program in which when button is pressed the led blinks 10 times with a delay and if the button is kept pressed the led while stay on until i dont rlease the button.
- Hm
- building bazel results in an error "cannot determine JDK version"
- 310
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow-on-raspberry-pi.