Unverified Commit e9233425 authored by Dan Ellis's avatar Dan Ellis Committed by GitHub
Browse files

Update slim include. (#8036)

* Update slim include.

* Force installation of tensorflow 1.14 (not tf2).
parent 8b479cc7
...@@ -63,7 +63,8 @@ $ sudo python -m pip install --upgrade pip ...@@ -63,7 +63,8 @@ $ sudo python -m pip install --upgrade pip
# Install dependences. Resampy needs to be installed after NumPy and SciPy # Install dependences. Resampy needs to be installed after NumPy and SciPy
# are already installed. # are already installed.
$ sudo pip install numpy scipy soundfile $ sudo pip install numpy scipy soundfile
$ sudo pip install resampy tensorflow six $ sudo pip install resampy six
$ sudo pip install tensorflow==1.14
# Clone TensorFlow models repo into a 'models' directory. # Clone TensorFlow models repo into a 'models' directory.
$ git clone https://github.com/tensorflow/models.git $ git clone https://github.com/tensorflow/models.git
......
...@@ -30,10 +30,11 @@ For comparison, here is TF-Slim's VGG definition: ...@@ -30,10 +30,11 @@ For comparison, here is TF-Slim's VGG definition:
https://github.com/tensorflow/models/blob/master/research/slim/nets/vgg.py https://github.com/tensorflow/models/blob/master/research/slim/nets/vgg.py
""" """
import tensorflow as tf import tensorflow.compat.v1 as tf
from tensorflow.contrib import slim as contrib_slim
import vggish_params as params import vggish_params as params
slim = tf.contrib.slim slim = contrib_slim
def define_vggish_slim(training=False): def define_vggish_slim(training=False):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment