Skip to content

Commit 0db692b

Browse files
authored
Simple audio tutorial: Add a note about Keras audio_dataset_from_directory, make sure TF 2.11+ is installed
1 parent 48da68b commit 0db692b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

site/en/tutorials/audio/simple_audio.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"source": [
8888
"## Setup\n",
8989
"\n",
90-
"Import necessary modules and dependencies. Note that you'll be using <a href=\"https://seaborn.pydata.org/\" class=\"external\">seaborn</a> for visualization in this tutorial."
90+
"Import necessary modules and dependencies. You'll be using `tf.keras.utils.audio_dataset_from_directory` (introduced in TensorFlow 2.10), which helps generate audio classification datasets from directories of `.wav` files. You'll also need <a href=\"https://seaborn.pydata.org/\" class=\"external\">seaborn</a> for visualization in this tutorial."
9191
]
9292
},
9393
{
@@ -98,8 +98,7 @@
9898
},
9999
"outputs": [],
100100
"source": [
101-
"# Upgrade environment to support TF 2.10 in Colab\n",
102-
"!pip install -U --pre tensorflow tensorflow_datasets\n",
101+
"!pip install -U -q tensorflow tensorflow_datasets\n",
103102
"!apt install --allow-change-held-packages libcudnn8=8.1.0.77-1+cuda11.2"
104103
]
105104
},

0 commit comments

Comments
 (0)