File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,13 @@ YAMNet depends on the following Python packages:
15
15
* [ ` numpy ` ] ( http://www.numpy.org/ )
16
16
* [ ` resampy ` ] ( http://resampy.readthedocs.io/en/latest/ )
17
17
* [ ` tensorflow ` ] ( http://www.tensorflow.org/ )
18
+ * [ ` tf_keras ` ] ( https://github.com/keras-team/tf-keras )
18
19
* [ ` pysoundfile ` ] ( https://pysoundfile.readthedocs.io/ )
19
20
20
21
These are all easily installable via, e.g., ` pip install numpy ` (as in the
21
22
example command sequence below). Any reasonably recent version of these
22
- packages should work.
23
+ packages should work. Note that YAMNet currently relies on Keras 2 and is
24
+ incompatible with Keras 3 (the default as of TF 2.16).
23
25
24
26
YAMNet also requires downloading the following data file:
25
27
Original file line number Diff line number Diff line change 19
19
20
20
import numpy as np
21
21
import tensorflow as tf
22
- from tensorflow . keras import Model , layers
22
+ from tf_keras import Model , layers
23
23
24
24
import features as features_lib
25
25
You can’t perform that action at this time.
0 commit comments