|
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)"
|
|
0 commit comments