Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
e9233425
Unverified
Commit
e9233425
authored
Jan 13, 2020
by
Dan Ellis
Committed by
GitHub
Jan 13, 2020
Browse files
Update slim include. (#8036)
* Update slim include. * Force installation of tensorflow 1.14 (not tf2).
parent
8b479cc7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
research/audioset/vggish/README.md
research/audioset/vggish/README.md
+2
-1
research/audioset/vggish/vggish_slim.py
research/audioset/vggish/vggish_slim.py
+3
-2
No files found.
research/audioset/vggish/README.md
View file @
e9233425
...
@@ -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
...
...
research/audioset/vggish/vggish_slim.py
View file @
e9233425
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment