|
444 | 444 | "id": "LlEQ_I0TLd1X" |
445 | 445 | }, |
446 | 446 | "source": [ |
447 | | - "The following `download_ufc_101_subset` function allows you to download a subset of the UCF101 dataset and split it into the training, validation, and test sets. You can specify the number of classes that you would like to use. The `splits` argument allows you to pass in a dictionary in which the key values are the name of subset (example: \"train\") and the number of videos you would like to have per class." |
| 447 | + "The following `download_ucf_101_subset` function allows you to download a subset of the UCF101 dataset and split it into the training, validation, and test sets. You can specify the number of classes that you would like to use. The `splits` argument allows you to pass in a dictionary in which the key values are the name of subset (example: \"train\") and the number of videos you would like to have per class." |
448 | 448 | ] |
449 | 449 | }, |
450 | 450 | { |
|
455 | 455 | }, |
456 | 456 | "outputs": [], |
457 | 457 | "source": [ |
458 | | - "def download_ufc_101_subset(zip_url, num_classes, splits, download_dir):\n", |
459 | | - " \"\"\" Download a subset of the UFC101 dataset and split them into various parts, such as\n", |
| 458 | + "def download_ucf_101_subset(zip_url, num_classes, splits, download_dir):\n", |
| 459 | + " \"\"\" Download a subset of the UCF101 dataset and split them into various parts, such as\n", |
460 | 460 | " training, validation, and test.\n", |
461 | 461 | "\n", |
462 | 462 | " Args:\n", |
|
506 | 506 | "outputs": [], |
507 | 507 | "source": [ |
508 | 508 | "download_dir = pathlib.Path('./UCF101_subset/')\n", |
509 | | - "subset_paths = download_ufc_101_subset(URL,\n", |
| 509 | + "subset_paths = download_ucf_101_subset(URL,\n", |
510 | 510 | " num_classes = NUM_CLASSES,\n", |
511 | 511 | " splits = {\"train\": 30, \"val\": 10, \"test\": 10},\n", |
512 | 512 | " download_dir = download_dir)" |
|
1002 | 1002 | "id": "DdJm7ojgGxtT" |
1003 | 1003 | }, |
1004 | 1004 | "source": [ |
1005 | | - "\n", |
1006 | 1005 | "To learn more about working with video data in TensorFlow, check out the following tutorials:\n", |
1007 | 1006 | "\n", |
1008 | 1007 | "* [Build a 3D CNN model for video classification](https://www.tensorflow.org/tutorials/video/video_classification)\n", |
|
1015 | 1014 | "accelerator": "GPU", |
1016 | 1015 | "colab": { |
1017 | 1016 | "name": "video.ipynb", |
1018 | | - "private_outputs": true, |
1019 | | - "provenance": [], |
1020 | 1017 | "toc_visible": true |
1021 | 1018 | }, |
1022 | 1019 | "kernelspec": { |
|
0 commit comments