Here are my instructions to install Tensorflow (tf) in Windows 7 x64 for Python 3.5. I have verified these instructions work to get tf working with Keras. e sure to update your keras.json file to use the tf backend if you already use theano. You do not need to purchase visual studio to get this to work.
- Install Cuda 8.0. Note, you must use the release version of 8.0 and NOT the release candidate.
- Install python35 to c:\python35 (no need for anaconda)
- Download cudnn (record path)
- Download swig (record path)
- Install visual studio 2015 community edition with C++. Had to manually install c++ in visual studio 2015 community edition. went into control panel, programs and features, and did a modify
- Install git for windows
II. Getting the tf repository
- git clone https://github.com/tensorflow/tensorflow.git
- cd tensorflow\tensorflow\contrib\cmake
- mkdir build
- cd build
III. Begin the tf install
- “C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvarsall.bat” (make sure you are using the amd64 version)
- cmake .. -A x64 -DCMAKE_BUILD_TYPE=Release -DSWIG_EXECUTABLE=d:/swigwin-3.0.10/swig.exe -DPYTHON_EXECUTABLE=c:/python35/python.exe -DPYTHON_LIBRARIES=C:/Python35/libspython35.lib -Dtensorflow_ENABLE_GPU=ON -DCUDNN_HOME=D:/ASASINATR/cudnn -Dtensorflow_ENABLE_GPU=ON
- MSBuild /p:Configuration=Release tf_tutorials_example_trainer.vcxproj
- Release\tf_tutorials_example_trainer.exe (this should work if everything built correctly)
IV. Make the python wheel
- pip install travis pip setuptools wheel
- MSBuild /p:Configuration=Release tf_python_build_pip_package.vcxproj
- pip install D:\tensorflow\tensorflow\tensorflow\contrib\cmake\build\tf_python\dist\tensorflow-0.11.0rc2_cmake_experimental-py3-none-any.whl
If everything was successful you should be able to modify your keras.json file, load keras in python, and begin using tf.
Thanks to Derek Murray of Google for the help creating this.
I recently upgraded my machine learning toolchain to keras and thought it would be a good time to revisit the ongoing theano + Python 3.4 + Windows 7 saga. I found a simple set of instructions here which I tweaked a bit to get to work with my setup. Here are the full instructions:
- Install python 64bit
- Install precompiled whl from http://www.lfd.uci.edu/~gohlke/pythonlibs
- Numpy+MKL library
- Get GCC from http://tdm-gcc.tdragon.net/ (I usually have issues with GCC in Windows, however, this distribution works great out of the box believe it or not)
- Install theano via pip and http://www.lfd.uci.edu/~gohlke/pythonlibs
- At this point, when I tried to import theano into python 3.4, I would get linking errors. I then installed libpython from http://www.lfd.uci.edu/~gohlke/pythonlibs and that resolved the issue.
- At the python shell, type import theano, it should work
- Configure your .theanorc.txt and you should be good to go.
I was fortunate enough to have 3 samples of what I will call “gut” bacteria (you fill in the blanks) examined by a new startup, uBiota. I have to say, I am impressed with their visualization. Its very interactive and easy to use. I really like the search function.
A picture is worth a thousand words, but click here and you can test drive it for yourself.
The three samples were taken on:
- 10-6-2015 – Also analyzed by Genova Diagnostics.
Apologies for not taking the samples in time order. The second sample I also had analyzed by Genova Diagnostics for comparison. I will post results at a later date.
Full disclosure – I was given 3 sampling kits for free from uBiota.
SWB SWA Description
0 1 Stable mode - position hold mode.
0 2 Return to home mode
1 1 Flight direction lock
1 2 Altitude mode, drive at a fixed altitude (may run into hills). Don't have to use the throttle (left paddle up-down)
Flight stability Calibration Left control pressed down left - red and green lights will blink - fly off ground for 20 seconds - lock and unlock on ground to save settings. Compass Calibration As soon as you power on the drone, turn the tx on and push the right paddle to the bottom right corner. The lights will eventually flicker yellow and green. Pick up the drone by the base keeping it level and spin yourself around 3-5 times. Now hold the drone so that front (opposite side of the battery pack access panel) is facing the floor and spin yourself again holding the drone 3-5 times. Now, place the drone on a level surface and disconnect the power. See this youtube for an example: https://www.youtube.com/watch?v=uz4_8RYXeD0 Switch controller off - drone will land auto land where tx is
Left control pressed down left - lock motors - red light blinks
Left control pressed down right - lock motors - red light solid
GPS lock - green light solid
No GPS lock - green light blinking
Bottom lights blinking and drone blinking - drone battery low
Beeping on the controller means the throttle (left paddle) is in the middle.
Aux knobs are for controlling a gimbal.
I took the images2gif.py class (https://bitbucket.org/bench/images2gif.py) and modified it to work with Python 3. Most of the work involved moving from str type to bytes.
Code is on github (https://github.com/isaacgerg/images2gif).