Skip to content

Commit a6062d4

Browse files
committed
Change the unzip option and fix the file path
1 parent c0bc632 commit a6062d4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

introduction_to_amazon_algorithms/object_detection_pascalvoc_coco/object_detection_image_json_format.ipynb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@
146146
"outputs": [],
147147
"source": [
148148
"%%bash\n",
149-
"unzip -q val2017.zip\n",
150-
"unzip -q annotations_trainval2017.zip\n",
149+
"unzip -qo val2017.zip\n",
150+
"unzip -qo annotations_trainval2017.zip\n",
151151
"rm val2017.zip annotations_trainval2017.zip"
152152
]
153153
},
@@ -287,10 +287,9 @@
287287
"metadata": {},
288288
"outputs": [],
289289
"source": [
290-
"# jsons = os.listdir('generated')\n",
291290
"import os\n",
292291
"import json\n",
293-
"jsons = os.listdir('validation_annotation')\n",
292+
"jsons = os.listdir('generated')\n",
294293
"\n",
295294
"print ('There are {} images have annotation files'.format(len(jsons)))"
296295
]

0 commit comments

Comments
 (0)