Anaconda will install Tensorflow missing "audio_ops" from Contrib frame

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.

+4
source share
2 answers

, audio_ops 1.4 (https://github.com/tensorflow/tensorflow/issues/11339#issuecomment-327879009).

v1.4 , -

pip install tf-nightly

, .

+5

: "audio_ops.py" , , . .

: : tensorflow.contrib.framework.python.ops, * _ops.py, "audio_ops.py" .

: https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/framework/python/ops

, : "audio_ops" vs "gen_audio_ops". , : decode_wav, encode_wav, audio_spectrogram, mfcc /.

, . , "audio_ops.py" .

: https://github.com/tensorflow/tensorflow/issues/11339 : " , /. , "

+1

Source: https://habr.com/ru/post/1684717/


All Articles