Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav274 committed Jul 31, 2021
1 parent e82799d commit c623915
Showing 1 changed file with 47 additions and 14 deletions.
61 changes: 47 additions & 14 deletions tutorials/object_detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 13,
"id": "62e83a0b",
"metadata": {},
"outputs": [],
Expand All @@ -31,7 +31,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 14,
"id": "b78a43e3",
"metadata": {},
"outputs": [],
Expand All @@ -43,7 +43,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 15,
"id": "1bc99e88",
"metadata": {},
"outputs": [],
Expand All @@ -61,13 +61,30 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 16,
"id": "130b8561",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Response Object:\n",
"@status: 0\n",
"@batch: Batch Object:\n",
"@dataframe: Empty DataFrame\n",
"Columns: []\n",
"Index: []\n",
"@batch_size: 0\n",
"@identifier_column: id\n",
"@metrics: None\n"
]
}
],
"source": [
"cursor.execute('UPLOAD INFILE \"../data/ua_detrac/ua_detrac.mp4\" PATH \"video.mp4\";')\n",
"response = cursor.fetch_one()"
"response = cursor.fetch_all()\n",
"print(response)"
]
},
{
Expand All @@ -80,14 +97,14 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 17,
"id": "bef7026f",
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.jupyter.widget-view+json": {
"model_id": "80751ebc79c344faa5d94d0201b4de21",
"model_id": "464b168f81d44edba13db5eb9143f304",
"version_major": 2,
"version_minor": 0
},
Expand All @@ -114,18 +131,34 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 18,
"id": "b18cfe2a",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Response Object:\n",
"@status: 0\n",
"@batch: Batch Object:\n",
"@dataframe: Num Loaded Frames Video\n",
"0 252 video.mp4\n",
"@batch_size: 1\n",
"@identifier_column: id\n",
"@metrics: None\n"
]
}
],
"source": [
"cursor.execute('LOAD DATA INFILE \"video.mp4\" INTO MyVideo;')\n",
"response = cursor.fetch_all()"
"response = cursor.fetch_all()\n",
"print(response)"
]
},
{
"cell_type": "markdown",
"id": "6e40317a",
"id": "0c038ac4",
"metadata": {},
"source": [
"### Optional - Register FasterRCNN (object detection) model into EVA \n",
Expand Down Expand Up @@ -153,7 +186,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 19,
"id": "e83e5a44",
"metadata": {},
"outputs": [
Expand Down Expand Up @@ -195,7 +228,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 20,
"id": "91bdcaca",
"metadata": {},
"outputs": [],
Expand Down

0 comments on commit c623915

Please sign in to comment.