Closed hzhongresearch closed 5 days ago
Same issue here using tensorflow-cpu 2.17.0. Works using tensorflow 2.11, but had to downgrade to python 3.7
Sorry for the late response. Neither me nor @dpwe were assigned this issue so we didn't notice until now. Looking into this.
TF 2.16.0 included an upgrade to Keras 3 by default, which includes many breaking changes. I've confirmed that our code still works if we stick with Keras 2 (which requires also installing tf_keras). I'll send a PR to switch us to Keras 2.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
1. The entire URL of the file you are using
https://github.com/tensorflow/models/blob/8da4857396fcedb1abd19a08cd4de40d16c7bc50/research/audioset/yamnet/yamnet.py https://github.com/tensorflow/models/blob/8da4857396fcedb1abd19a08cd4de40d16c7bc50/research/audioset/yamnet/params.py
2. Describe the bug
@plakal @dpwe Cannot initialise YAMNet using TF 2.16.1.
3. Steps to reproduce
Steps to reproduce the behavior.
4. Expected behavior
A clear and concise description of what you expected to happen.
The code should return a YAMNet model.
5. Additional context
Include any logs that would be helpful to diagnose the problem.
The following is the error message.
6. System information