Skip to content

Commit dcc539c

Browse files
authored
GluonCV YoloV3 Darknet53 example minor fixes (#1582)
* Code cell type corrected. Removed empty cell * Unzip datasets if not available in the notebook's folder
1 parent ea3da6e commit dcc539c

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

sagemaker_neo_compilation_jobs/gluoncv_yolo_darknet/gluoncv_yolo_darknet_neo.ipynb

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,13 @@
9999
"%%time\n",
100100
"# Download and extract the datasets\n",
101101
"\n",
102-
"![ ! -f /tmp/VOCtrainval_11-May-2012.tar ] && { wget -P /tmp http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar; tar -xf /tmp/VOCtrainval_11-May-2012.tar; }\n",
102+
"![ ! -f /tmp/VOCtrainval_11-May-2012.tar ] && { wget -P /tmp http://host.robots.ox.ac.uk/pascal/VOC/voc2012/VOCtrainval_11-May-2012.tar; }\n",
103103
"\n",
104-
"![ ! -f /tmp/VOCtrainval_06-Nov-2007.tar ] && { wget -P /tmp http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar; tar -xf /tmp/VOCtrainval_06-Nov-2007.tar; }\n",
104+
"![ ! -f /tmp/VOCtrainval_06-Nov-2007.tar ] && { wget -P /tmp http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtrainval_06-Nov-2007.tar; }\n",
105105
"\n",
106-
"![ ! -f /tmp/VOCtest_06-Nov-2007.tar ] && { wget -P /tmp http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtest_06-Nov-2007.tar; tar -xf /tmp/VOCtest_06-Nov-2007.tar; }"
106+
"![ ! -f /tmp/VOCtest_06-Nov-2007.tar ] && { wget -P /tmp http://host.robots.ox.ac.uk/pascal/VOC/voc2007/VOCtest_06-Nov-2007.tar; }\n",
107+
"\n",
108+
"![ ! -d VOCdevkit ] && { tar -xf /tmp/VOCtrainval_11-May-2012.tar; tar -xf /tmp/VOCtrainval_06-Nov-2007.tar; tar -xf /tmp/VOCtest_06-Nov-2007.tar; }"
107109
]
108110
},
109111
{
@@ -490,8 +492,10 @@
490492
]
491493
},
492494
{
493-
"cell_type": "markdown",
495+
"cell_type": "code",
496+
"execution_count": null,
494497
"metadata": {},
498+
"outputs": [],
495499
"source": [
496500
"%matplotlib inline\n",
497501
"def neo_visualize_detection(img_file, dets, classes=[], thresh=0.6):\n",
@@ -545,13 +549,6 @@
545549
" plt.show()"
546550
]
547551
},
548-
{
549-
"cell_type": "code",
550-
"execution_count": null,
551-
"metadata": {},
552-
"outputs": [],
553-
"source": []
554-
},
555552
{
556553
"cell_type": "code",
557554
"execution_count": null,

0 commit comments

Comments
 (0)