Commit
·
f85ed11
1
Parent(s):
162bd9a
update
Browse files- prepare.ipynb +10 -25
prepare.ipynb
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
-
"execution_count":
|
6 |
"metadata": {},
|
7 |
"outputs": [],
|
8 |
"source": [
|
@@ -28,7 +28,7 @@
|
|
28 |
},
|
29 |
{
|
30 |
"cell_type": "code",
|
31 |
-
"execution_count":
|
32 |
"metadata": {},
|
33 |
"outputs": [],
|
34 |
"source": [
|
@@ -42,11 +42,11 @@
|
|
42 |
" with zipfile.ZipFile(file, 'r') as zipf:\n",
|
43 |
" zipf.extractall(Path())\n",
|
44 |
"\n",
|
45 |
-
"for split in ['train', 'val']:\n",
|
46 |
-
"
|
47 |
-
"
|
48 |
-
"
|
49 |
-
"
|
50 |
]
|
51 |
},
|
52 |
{
|
@@ -58,24 +58,9 @@
|
|
58 |
},
|
59 |
{
|
60 |
"cell_type": "code",
|
61 |
-
"execution_count":
|
62 |
"metadata": {},
|
63 |
-
"outputs": [
|
64 |
-
{
|
65 |
-
"name": "stdout",
|
66 |
-
"output_type": "stream",
|
67 |
-
"text": [
|
68 |
-
"loading annotations into memory...\n",
|
69 |
-
"Done (t=6.97s)\n",
|
70 |
-
"creating index...\n",
|
71 |
-
"index created!\n",
|
72 |
-
"loading annotations into memory...\n",
|
73 |
-
"Done (t=0.40s)\n",
|
74 |
-
"creating index...\n",
|
75 |
-
"index created!\n"
|
76 |
-
]
|
77 |
-
}
|
78 |
-
],
|
79 |
"source": [
|
80 |
"train_data = COCO('annotations/stuff_train2017.json')\n",
|
81 |
"val_data = COCO('annotations/stuff_val2017.json')"
|
@@ -113,7 +98,7 @@
|
|
113 |
},
|
114 |
{
|
115 |
"cell_type": "code",
|
116 |
-
"execution_count":
|
117 |
"metadata": {},
|
118 |
"outputs": [],
|
119 |
"source": [
|
|
|
2 |
"cells": [
|
3 |
{
|
4 |
"cell_type": "code",
|
5 |
+
"execution_count": null,
|
6 |
"metadata": {},
|
7 |
"outputs": [],
|
8 |
"source": [
|
|
|
28 |
},
|
29 |
{
|
30 |
"cell_type": "code",
|
31 |
+
"execution_count": null,
|
32 |
"metadata": {},
|
33 |
"outputs": [],
|
34 |
"source": [
|
|
|
42 |
" with zipfile.ZipFile(file, 'r') as zipf:\n",
|
43 |
" zipf.extractall(Path())\n",
|
44 |
"\n",
|
45 |
+
"# for split in ['train', 'val']:\n",
|
46 |
+
"# file = f'./annotations/stuff_{split}2017_pixelmaps'\n",
|
47 |
+
"# if not Path(file).exists():\n",
|
48 |
+
"# with zipfile.ZipFile(file + '.zip', 'r') as zipf:\n",
|
49 |
+
"# zipf.extractall(Path('./annotations'))\n"
|
50 |
]
|
51 |
},
|
52 |
{
|
|
|
58 |
},
|
59 |
{
|
60 |
"cell_type": "code",
|
61 |
+
"execution_count": null,
|
62 |
"metadata": {},
|
63 |
+
"outputs": [],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
"source": [
|
65 |
"train_data = COCO('annotations/stuff_train2017.json')\n",
|
66 |
"val_data = COCO('annotations/stuff_val2017.json')"
|
|
|
98 |
},
|
99 |
{
|
100 |
"cell_type": "code",
|
101 |
+
"execution_count": null,
|
102 |
"metadata": {},
|
103 |
"outputs": [],
|
104 |
"source": [
|