Comments (14)
Thanks for opening this up! Very weird- I'll check this out as soon as I get the chance.
from tensorflow-on-raspberry-pi.
Tensorflow 0.9.0 is also giving the wrong classification with python 2.7:
window screen (score = 0.05178)
web site, website, internet site, site (score = 0.02289)
honeycomb (score = 0.01543)
window shade (score = 0.01286)
nematode, nematode worm, roundworm (score = 0.00703)
Build graph time: 3.489147
Eval time: 9.210417
It seems to be an error with how the image is being processed since the classifications indicate that it may be reading in a blank white screen or something like that.
from tensorflow-on-raspberry-pi.
v0.9 also has the same classification error with python 3.4
/usr/local/lib/python3.4/dist-packages/tensorflow/python/ops/array_ops.py:1197: VisibleDeprecationWarning: converting an array with ndim > 0 to an index will result in an error in the future
result_shape.insert(dim, 1)
W tensorflow/core/framework/op_def_util.cc:332] Op BatchNormWithGlobalNormalization is deprecated. It will cease to work in GraphDef version 9. Use tf.nn.batch_normalization()
...
it continues similar to my post above
from tensorflow-on-raspberry-pi.
@shrimpwonton Did you also trained it on Raspberry Pi?
from tensorflow-on-raspberry-pi.
@zxzhijia no, I used the example in this repo (in benchmarks/inceptionv3). It also gives the same error if I use the file in the tensorflow python package.
from tensorflow-on-raspberry-pi.
Ok, then I'm not sure what's going on. Sorry about that.
On Tuesday, July 12, 2016, shrimpwonton [email protected] wrote:
@zxzhijia
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_zxzhijia&d=CwMCaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=X3YsXL1AZsKHgsh28HFY8A&m=PAn8MN4A2TBbDqXriZVtDejk4jyqUTqq_HudvbLVTr0&s=GZR4RLcMnJzQbepql6D3KYVw_FjMd0qMq8FO5JRymIs&e=
no, I used the example in this repo (in benchmarks/inceptionv3). It also
gives the same error if I use the file in the tensorflow python package—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_samjabrahams_tensorflow-2Don-2Draspberry-2Dpi_issues_29-23issuecomment-2D232224200&d=CwMCaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=X3YsXL1AZsKHgsh28HFY8A&m=PAn8MN4A2TBbDqXriZVtDejk4jyqUTqq_HudvbLVTr0&s=GzXpAJMIoWGNqn52hTtRfHlHofjH7v50yS5xPnD6nxc&e=,
or mute the thread
https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe_ALPsQLUvcJ9ngDX2jE7BrB9tzYuzw3Rpks5qVDVpgaJpZM4JIhJb&d=CwMCaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=X3YsXL1AZsKHgsh28HFY8A&m=PAn8MN4A2TBbDqXriZVtDejk4jyqUTqq_HudvbLVTr0&s=LQVMjUQJNEgO5PdyG7PGcNRjBFTd3ok-FjDsU3nIIvU&e=
.
from tensorflow-on-raspberry-pi.
I'll be looking into this. I had to change some of the compiler flags for floating point variables in 0.9 due to the use of Eigen::half inside of TensorFlow, but I'm not sure if that would cause straight up miscalculations by itself.
from tensorflow-on-raspberry-pi.
Hey all- not sure if this is going to be a fix or not, but I found that some of the changes introduced in the official repository related to specifying the platform for compilation may have messed up some functionality. Recompiling the binaries tonight/tomorrow and will try to see if it helps out with any of these errors.
Copied from #31:
If you're interested in the details (at least what I'm pretty sure is going on): Essentially, these lines are causing the compilation to target the Raspberry Pi as a mobile device, which in turn causes no 64-bit floating points to be registered for any Ops in this file. The current hack-y fix is to delete this line. If that works, I'll try to get a fix introduced into the official repository that is a bit more robust.
from tensorflow-on-raspberry-pi.
@eyewy It's possible that the version of NumPy installed on your Raspberry Pi is simply the wrong version due to another package you've installed. You can either try creating a Virtualenv and reinstalling TensorFlow (as described here, just install the RPi binaries instead of the official binaries), or you can try pip uninstall numpy
or pip3 uninstall numpy
before reinstalling the TensorFlow binaries.
@shrimpwonton I'm still testing these, but I've updated these binaries in response to the aforementioned changes. Let me know if the classification error is still messed up for you- it works on my end with these guys.
from tensorflow-on-raspberry-pi.
@samjabrahams it seems to be working now, thanks!
from tensorflow-on-raspberry-pi.
@eyewy any status updates on your end?
from tensorflow-on-raspberry-pi.
I get the following NumPy version error:
RuntimeError: module compiled against API version 0xa but this version of numpy is 0x9
from tensorflow-on-raspberry-pi.
Is this after uninstalling numpy and then reinstalling TensorFlow (or using virtualenv)?
from tensorflow-on-raspberry-pi.
Closing this issue for now- @eyewy let me know if you're still experiencing issues.
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.