Skip to content

Commit 3eac15b

Browse files
Merge pull request #2301 from tensorflow:update-video-classification
PiperOrigin-RevId: 629485009
2 parents 880385b + d6b06f5 commit 3eac15b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

site/en/tutorials/video/video_classification.ipynb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@
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.\n",
88-
"\n",
89-
"**Note**: Use TensorFlow 2.10 to run this tutorial. Versions above TensorFlow 2.10 may not run successfully."
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."
9088
]
9189
},
9290
{
@@ -98,8 +96,7 @@
9896
"outputs": [],
9997
"source": [
10098
"!pip install remotezip tqdm opencv-python einops \n",
101-
"# Install TensorFlow 2.10\n",
102-
"!pip install tensorflow==2.10.0"
99+
"!pip install -U tensorflow keras"
103100
]
104101
},
105102
{

tools/tensorflow_docs/tools/nblint/style/tensorflow.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ def not_translation(args):
8181

8282
# Button checks
8383

84-
is_button_cell_re = re.compile(r"class.*tfo-notebook-buttons")
84+
# Look for class="tfo-notebook-buttons" (CSS used on website versions) or the
85+
# run-in-colab logo (for notebooks that stick to GitHub/Colab).
86+
is_button_cell_re = re.compile(
87+
r"class.*tfo-notebook-buttons|colab_logo_32px\.png"
88+
)
8589

8690

8791
def get_arg_or_fail(user_args, arg_name, arg_fmt):

0 commit comments

Comments
 (0)