Skip to content

Commit 8ce50d4

Browse files
shilpakancharlacopybara-github
authored andcommitted
Use TF 2.10 for video classification tutorial
PiperOrigin-RevId: 536575726
1 parent 1c718fc commit 8ce50d4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

site/en/tutorials/video/video_classification.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@
8484
"## Setup\n",
8585
"\n",
8686
"Begin by installing and importing some necessary libraries, including:\n",
87-
"[remotezip](https://github.com/gtsystem/python-remotezip) to inspect the contents of a ZIP file, [tqdm](https://github.com/tqdm/tqdm) to use a progress bar, [OpenCV](https://opencv.org/) to process video files, [einops](https://github.com/arogozhnikov/einops/tree/master/docs) for performing more complex tensor operations, and [`tensorflow_docs`](https://github.com/tensorflow/docs/tree/master/tools/tensorflow_docs) for embedding data in a Jupyter notebook."
87+
"[remotezip](https://github.com/gtsystem/python-remotezip) to inspect the contents of a ZIP file, [tqdm](https://github.com/tqdm/tqdm) to use a progress bar, [OpenCV](https://opencv.org/) to process video files, [einops](https://github.com/arogozhnikov/einops/tree/master/docs) for performing more complex tensor operations, and [`tensorflow_docs`](https://github.com/tensorflow/docs/tree/master/tools/tensorflow_docs) for embedding data in a Jupyter notebook.\n",
88+
"\n",
89+
"**Note**: Use TensorFlow 2.10 to run this tutorial. Versions above TensorFlow 2.10 may not run successfully."
8890
]
8991
},
9092
{
@@ -95,7 +97,9 @@
9597
},
9698
"outputs": [],
9799
"source": [
98-
"!pip install remotezip tqdm opencv-python einops"
100+
"!pip install remotezip tqdm opencv-python einops \n",
101+
"# Install TensorFlow 2.10\n",
102+
"!pip install tensorflow==2.10.0"
99103
]
100104
},
101105
{
@@ -121,7 +125,7 @@
121125
"\n",
122126
"import tensorflow as tf\n",
123127
"import keras\n",
124-
"from keras import layers\n"
128+
"from keras import layers"
125129
]
126130
},
127131
{

0 commit comments

Comments
 (0)