Remove the folder /scenario/action_recognition/data/samples; update notebook to use web url for sample data.
This commit is contained in:
Родитель
c428d408b2
Коммит
7c73422513
|
@ -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)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Двоичные данные
scenarios/action_recognition/data/samples/drinking.mp4
Двоичные данные
scenarios/action_recognition/data/samples/drinking.mp4
Двоичный файл не отображается.
|
@ -1 +0,0 @@
|
|||
drinking 100
|
Загрузка…
Ссылка в новой задаче