Skip to content

Commit d82bd53

Browse files
Merge pull request #2136 from natravedrova:fix_list_files_from_zip_url
PiperOrigin-RevId: 478550739
2 parents 049852f + ba7a3d8 commit d82bd53

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

site/en/tutorials/load_data/video.ipynb

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"cell_type": "code",
1414
"execution_count": null,
1515
"metadata": {
16+
"cellView": "form",
1617
"id": "ufPx7EiCiqgR"
1718
},
1819
"outputs": [],
@@ -90,15 +91,6 @@
9091
"[remotezip](https://github.com/gtsystem/python-remotezip){:.external} to inspect the contents of a ZIP file, [tqdm](https://github.com/tqdm/tqdm){:.external} to use a progress bar, [OpenCV](https://opencv.org/){:.external} to process video files, and [`tensorflow_docs`](https://github.com/tensorflow/docs/tree/master/tools/tensorflow_docs){:.external} for embedding data in a Jupyter notebook."
9192
]
9293
},
93-
{
94-
"cell_type": "code",
95-
"execution_count": null,
96-
"metadata": {
97-
"id": "kWqHj8uOLeja"
98-
},
99-
"outputs": [],
100-
"source": []
101-
},
10294
{
10395
"cell_type": "code",
10496
"execution_count": null,
@@ -188,7 +180,7 @@
188180
" List of files in each of the classes.\n",
189181
" \"\"\"\n",
190182
" files = []\n",
191-
" with rz.RemoteZip(URL) as zip:\n",
183+
" with rz.RemoteZip(zip_url) as zip:\n",
192184
" for zip_info in zip.infolist():\n",
193185
" files.append(zip_info.filename)\n",
194186
" return files"
@@ -876,8 +868,7 @@
876868
"source": [
877869
"To prepare the data to be fed into the model, use batching as shown below. Notice that when working with video data, such as AVI files, the data should be shaped as a five dimensional object. These dimensions are as follows: `[batch_size, number_of_frames, height, width, channels]`. In comparison, an image would have four dimensions: `[batch_size, height, width, channels]`. The image below is an illustration of how the shape of video data is represented.\n",
878870
"\n",
879-
"![Video data shape](https://www.tensorflow.org/images/tutorials/video/video_data_shape.png)\n",
880-
"\n"
871+
"![Video data shape](https://www.tensorflow.org/images/tutorials/video/video_data_shape.png)\n"
881872
]
882873
},
883874
{
@@ -943,7 +934,7 @@
943934
"accelerator": "GPU",
944935
"colab": {
945936
"collapsed_sections": [],
946-
"name": "Video_Loading.ipynb",
937+
"name": "video.ipynb",
947938
"toc_visible": true
948939
},
949940
"kernelspec": {

0 commit comments

Comments
 (0)