I am trying to follow in the Audio Recognition Network .
I created an Anaconda environment with python 3.6 and followed the installation instructions to install the WHI GPU file.
I can run the TF hello world example.
When I go to run "train.py" in the / Audio Audio Recognition Network tutorial, I get:
Traceback (most recent call last):
File "train.py", line 79, in <module>
import input_data
File "/home/philglau/speech_commands/input_data.py", line 35, in <module>
from tensorflow.contrib.framework.python.ops import audio_ops as contrib_audio
ImportError: cannot import name 'audio_ops'
code as a result of a failed tutorial:
from tensorflow.contrib.framework.python.ops import audio_ops as contrib_audio
Then I supported this chain until I could import part of it:
import tensorflow.contrib.framework as test ==> works
import tensorflow.contrib.framework.python as test --> fail:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'tensorflow.contrib.framework' has no attribute 'python'
I do not know where I am mistaken in my installation.
More details:
Ubuntu 16.04
Anaconda env with python 3.6
Followed the 'anaconda' instruction on the TF install page. (GPU version)
I also tried using python 2.7 env for anaconda, but got the same results.
source
share