Unexpected error: Tensor Tensor(“dense_1/BiasAdd:0”, shape=(?, 3), dtype=float32) is not an element of this graph.
To Fix:
Make sure to include the following global:
import tensorflow as tf global graph,model graph = tf.get_default_graph()
And surround the prediction as such:
with graph.as_default(): segment = self.model.predict(features)
While attempting to install a package from gem, I encountered this issue:
sudo gem install dashing Building native extensions. This could take a while… ERROR: Error installing dashing: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require’: cannot load such file — mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require’ from extconf.rb:2:in `’ Gem files […]
The problem you have encountered is basically the package, or dependencies that are conflicting or broken and are therefore “held”.
You can check what (if any) packages are held using the following command:
dpkg –get-selections | grep hold
or
apt-mark showhold
If there’s no packages, or no output. That means it’s probably a dependency […]
Error:
When trying to run Node-RED I encountered the following error: Essentially it’s missing the module “express”, as can be seen by the 5 line.
module.js:340 throw err; ^ Error: Cannot find module ‘express’ at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/home/alex/Apps/node-red/node-red-0.9.1/red.js:19:15) at Module._compile (module.js:456:26) at Object.Module._extensions..js […]
Activator error “Failed: error: SBT did not send a reply to our request, perhaps it was killed or failed to start”.
This may be because SBT isn’t installed, SBT is a “simple build tool” for scala which isn’t packaged with the main binaries. You can download and install the latest SBT from the official […]
When running
sudo apt-get update
or attempting to update via the Update Manager in Linux Mint (13), I was fronted with the following error:
Failed to fetch http://packages.linuxmint.com/dists/deb … tion-en_US Unable to connect to packages.linuxmint.com:http: Failed to fetch http://packages.linuxmint.com/dists/deb … slation-en Unable to connect to packages.linuxmint.com:http: Failed to fetch http://packages.linuxmint.com/dists/deb … tion-en_US […]
While trying to compile some code on MPLAB X I came across this link error, stating that my #pragma config bits were full or sections of them were overlapping other sections.
/Applications/microchip/xc16/v1.11/bin/bin/../bin/elf-ld: Link Error: region FOSC is full (dist/default/production/can_to_serial.production.elf section __FOSC) /Applications/microchip/xc16/v1.11/bin/bin/../bin/elf-ld: Link Error: region FWDT is full (dist/default/production/can_to_serial.production.elf section __FWDT) /Applications/microchip/xc16/v1.11/bin/bin/../bin/elf-ld: Link Error: […]
If you encounter a problem similar to the following, where you’re missing the libx264 codec try this solution.
avconv -r 10 -i image%06d.jpg -r 10 -vcodec libx264 -crf 20 -g 15 timelapse1.mp4 avconv version 0.8.6-6:0.8.6-0ubuntu0.12.10.1, Copyright (c) 2000-2013 the Libav developers built on Apr 2 2013 17:02:16 with gcc 4.7.2 Input #0, image2, from […]
After a couple of hours trying to get a USB device (USB-to-Serial FTDI) working in VirtualBox with OSX host and Ubuntu 12.10 guest and receiving an error message similar to the follow:
usb 6-3: new full speed USB device number 24 using ohci_hcd usb 6-3: device not accepting address 24, error -110 hub 6-0:1.0: […]
Over the weekend I’ve been playing around with the Raspberry Pi and lighttpd in order to get a little webserver running. lighttpd seemed to be a common choice, thanks to it’s simplicity and lightweightness (*possibly not a real word). There’s a plethora of examples of getting it up and […]
|
About Alex – Roboticist
Currently working at the Bristol Robotics Lab & ExtraCare Charitable Trust
You’re free to redistribute anything you find on here, unless it states otherwise, as long as you are not selling it for profit and you link back to my site. Cheers.
Disclaimer Any information on this site is for informational purposes only, I take no responsibility for the accuracy, reliability, etc to it.
Any information you use, you are using at your own risk. I am in no way liable for any loss, damage of data, hardware or anything else in connection with the use of this website.
|