"# Visualization of the YAMNet audio event classification model.\n",
"# See https://github.com/tensorflow/models/tree/master/research/audioset/yamnet/"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"# Imports.\n",
"import numpy as np\n",
"import soundfile as sf\n",
"\n",
"import matplotlib.pyplot as plt\n",
"\n",
"import params\n",
"import yamnet as yamnet_model"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: Logging before flag parsing goes to stderr.\n",
"W1121 08:50:31.581582 4453795264 deprecation.py:506] From /Applications/anaconda/envs/py3/lib/python3.7/site-packages/tensorflow/python/ops/init_ops.py:1251: calling VarianceScaling.__init__ (from tensorflow.python.ops.init_ops) with dtype is deprecated and will be removed in a future version.\n",
"Instructions for updating:\n",
"Call initializer instance with the dtype argument instead of passing it to the constructor\n"