Remove the folder /scenario/action_recognition/data/samples; update notebook to use web url for sample data.

This commit is contained in:
Lixun Zhang 2019-12-04 19:45:35 +00:00 коммит произвёл Young Park
Родитель c428d408b2
Коммит 7c73422513
3 изменённых файлов: 8 добавлений и 4 удалений

Просмотреть файл

@ -37,6 +37,8 @@
"import torch.cuda as cuda\n",
"import torch.nn as nn\n",
"import torchvision\n",
"import urllib.request\n",
"import shutil\n",
"\n",
"from utils_cv.action_recognition.data import show_batch, VideoDataset\n",
"from utils_cv.action_recognition.model import DEFAULT_MEAN, DEFAULT_STD\n",
@ -80,7 +82,7 @@
"metadata": {},
"source": [
"## Prepare a Sample Video\n",
"A sample video and label paths:"
"A sample video path:"
]
},
{
@ -89,8 +91,11 @@
"metadata": {},
"outputs": [],
"source": [
"VIDEO_PATH = os.path.join(\"data\", \"samples\", \"drinking.mp4\")\n",
"LABEL_PATH = os.path.join(\"data\", \"samples\", \"label.txt\")"
"url = \"https://cvbp.blob.core.windows.net/public/datasets/action_recognition/drinking.mp4\"\n",
"VIDEO_PATH = os.path.join(\"../../data/drinking.mp4\")\n",
"# Download the file from `url` and save it locally under `file_name`:\n",
"with urllib.request.urlopen(url) as response, open(VIDEO_PATH, 'wb') as out_file:\n",
" shutil.copyfileobj(response, out_file)"
]
},
{

Двоичный файл не отображается.

Просмотреть файл

@ -1 +0,0 @@
drinking 100