Skip to content

Commit 207f265

Browse files
committed
init
0 parents  commit 207f265

43 files changed

Lines changed: 3022 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.pyc
2+
*.ipynb_checkpoints
3+
__pycache__
4+
.vscode/

COCO_Image_Viewer.ipynb

Lines changed: 585 additions & 0 deletions
Large diffs are not rendered by default.

LICENSE

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
COPYRIGHT
2+
3+
All contributions by François Chollet:
4+
Copyright (c) 2015 - 2018, François Chollet.
5+
All rights reserved.
6+
7+
All contributions by Google:
8+
Copyright (c) 2015 - 2018, Google, Inc.
9+
All rights reserved.
10+
11+
All contributions by Microsoft:
12+
Copyright (c) 2017 - 2018, Microsoft, Inc.
13+
All rights reserved.
14+
15+
All other contributions:
16+
Copyright (c) 2015 - 2018, the respective contributors.
17+
All rights reserved.
18+
19+
Each contributor holds copyright over their respective contributions.
20+
The project versioning (Git) records all such contribution source information.
21+
22+
LICENSE
23+
24+
The MIT License (MIT)
25+
26+
Permission is hereby granted, free of charge, to any person obtaining a copy
27+
of this software and associated documentation files (the "Software"), to deal
28+
in the Software without restriction, including without limitation the rights
29+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
30+
copies of the Software, and to permit persons to whom the Software is
31+
furnished to do so, subject to the following conditions:
32+
33+
The above copyright notice and this permission notice shall be included in all
34+
copies or substantial portions of the Software.
35+
36+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
39+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
41+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
42+
SOFTWARE.
43+

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# [How to create custom COCO data set for object detection](https://www.dlology.com/blog/how-to-create-custom-coco-data-set-for-object-detection/) | DLology blog
2+
3+
## Quick start
4+
5+
Then you can run the `voc2coco.py` script to generate a COCO data formatted JSON file for you.
6+
```
7+
python voc2coco.py ./data/VOC/Annotations ./data/coco/output.json
8+
```
9+
Then you can run the following Jupyter notebook to visualize the coco annotations. `COCO_Image_Viewer.ipynb`
10+
11+
12+
Further instruction on how to create your own datasets, read the [tutorial](https://www.dlology.com/blog/how-to-create-custom-coco-data-set-for-object-detection/).

data/VOC/Annotations/0.xml

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
<annotation>
2+
<folder>images</folder>
3+
<filename>0.jpg</filename>
4+
<path>E:\Learning_Resources\Deep_learning\my_data_sets\DATASETS_IMAGE\object_detection_demo\images\0.jpg</path>
5+
<source>
6+
<database>Unknown</database>
7+
</source>
8+
<size>
9+
<width>800</width>
10+
<height>600</height>
11+
<depth>3</depth>
12+
</size>
13+
<segmented>0</segmented>
14+
<object>
15+
<name>date</name>
16+
<pose>Unspecified</pose>
17+
<truncated>0</truncated>
18+
<difficult>0</difficult>
19+
<bndbox>
20+
<xmin>101</xmin>
21+
<ymin>117</ymin>
22+
<xmax>240</xmax>
23+
<ymax>286</ymax>
24+
</bndbox>
25+
</object>
26+
<object>
27+
<name>date</name>
28+
<pose>Unspecified</pose>
29+
<truncated>0</truncated>
30+
<difficult>0</difficult>
31+
<bndbox>
32+
<xmin>322</xmin>
33+
<ymin>321</ymin>
34+
<xmax>463</xmax>
35+
<ymax>422</ymax>
36+
</bndbox>
37+
</object>
38+
<object>
39+
<name>date</name>
40+
<pose>Unspecified</pose>
41+
<truncated>0</truncated>
42+
<difficult>0</difficult>
43+
<bndbox>
44+
<xmin>430</xmin>
45+
<ymin>415</ymin>
46+
<xmax>586</xmax>
47+
<ymax>527</ymax>
48+
</bndbox>
49+
</object>
50+
<object>
51+
<name>date</name>
52+
<pose>Unspecified</pose>
53+
<truncated>0</truncated>
54+
<difficult>0</difficult>
55+
<bndbox>
56+
<xmin>599</xmin>
57+
<ymin>396</ymin>
58+
<xmax>712</xmax>
59+
<ymax>558</ymax>
60+
</bndbox>
61+
</object>
62+
<object>
63+
<name>date</name>
64+
<pose>Unspecified</pose>
65+
<truncated>0</truncated>
66+
<difficult>0</difficult>
67+
<bndbox>
68+
<xmin>566</xmin>
69+
<ymin>261</ymin>
70+
<xmax>703</xmax>
71+
<ymax>394</ymax>
72+
</bndbox>
73+
</object>
74+
<object>
75+
<name>hazelnut</name>
76+
<pose>Unspecified</pose>
77+
<truncated>0</truncated>
78+
<difficult>0</difficult>
79+
<bndbox>
80+
<xmin>245</xmin>
81+
<ymin>243</ymin>
82+
<xmax>316</xmax>
83+
<ymax>314</ymax>
84+
</bndbox>
85+
</object>
86+
<object>
87+
<name>hazelnut</name>
88+
<pose>Unspecified</pose>
89+
<truncated>0</truncated>
90+
<difficult>0</difficult>
91+
<bndbox>
92+
<xmin>513</xmin>
93+
<ymin>218</ymin>
94+
<xmax>595</xmax>
95+
<ymax>304</ymax>
96+
</bndbox>
97+
</object>
98+
<object>
99+
<name>hazelnut</name>
100+
<pose>Unspecified</pose>
101+
<truncated>0</truncated>
102+
<difficult>0</difficult>
103+
<bndbox>
104+
<xmin>87</xmin>
105+
<ymin>313</ymin>
106+
<xmax>171</xmax>
107+
<ymax>406</ymax>
108+
</bndbox>
109+
</object>
110+
<object>
111+
<name>fig</name>
112+
<pose>Unspecified</pose>
113+
<truncated>0</truncated>
114+
<difficult>0</difficult>
115+
<bndbox>
116+
<xmin>368</xmin>
117+
<ymin>127</ymin>
118+
<xmax>541</xmax>
119+
<ymax>232</ymax>
120+
</bndbox>
121+
</object>
122+
<object>
123+
<name>fig</name>
124+
<pose>Unspecified</pose>
125+
<truncated>0</truncated>
126+
<difficult>0</difficult>
127+
<bndbox>
128+
<xmin>563</xmin>
129+
<ymin>169</ymin>
130+
<xmax>699</xmax>
131+
<ymax>250</ymax>
132+
</bndbox>
133+
</object>
134+
<object>
135+
<name>fig</name>
136+
<pose>Unspecified</pose>
137+
<truncated>0</truncated>
138+
<difficult>0</difficult>
139+
<bndbox>
140+
<xmin>208</xmin>
141+
<ymin>274</ymin>
142+
<xmax>313</xmax>
143+
<ymax>430</ymax>
144+
</bndbox>
145+
</object>
146+
<object>
147+
<name>fig</name>
148+
<pose>Unspecified</pose>
149+
<truncated>0</truncated>
150+
<difficult>0</difficult>
151+
<bndbox>
152+
<xmin>376</xmin>
153+
<ymin>223</ymin>
154+
<xmax>510</xmax>
155+
<ymax>328</ymax>
156+
</bndbox>
157+
</object>
158+
</annotation>

data/VOC/Annotations/1.xml

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
<annotation>
2+
<folder>images</folder>
3+
<filename>1.jpg</filename>
4+
<path>E:\Learning_Resources\Deep_learning\my_data_sets\DATASETS_IMAGE\object_detection_demo\images\1.jpg</path>
5+
<source>
6+
<database>Unknown</database>
7+
</source>
8+
<size>
9+
<width>800</width>
10+
<height>600</height>
11+
<depth>3</depth>
12+
</size>
13+
<segmented>0</segmented>
14+
<object>
15+
<name>fig</name>
16+
<pose>Unspecified</pose>
17+
<truncated>0</truncated>
18+
<difficult>0</difficult>
19+
<bndbox>
20+
<xmin>390</xmin>
21+
<ymin>61</ymin>
22+
<xmax>513</xmax>
23+
<ymax>196</ymax>
24+
</bndbox>
25+
</object>
26+
<object>
27+
<name>hazelnut</name>
28+
<pose>Unspecified</pose>
29+
<truncated>0</truncated>
30+
<difficult>0</difficult>
31+
<bndbox>
32+
<xmin>266</xmin>
33+
<ymin>17</ymin>
34+
<xmax>352</xmax>
35+
<ymax>98</ymax>
36+
</bndbox>
37+
</object>
38+
<object>
39+
<name>hazelnut</name>
40+
<pose>Unspecified</pose>
41+
<truncated>0</truncated>
42+
<difficult>0</difficult>
43+
<bndbox>
44+
<xmin>623</xmin>
45+
<ymin>97</ymin>
46+
<xmax>706</xmax>
47+
<ymax>198</ymax>
48+
</bndbox>
49+
</object>
50+
<object>
51+
<name>hazelnut</name>
52+
<pose>Unspecified</pose>
53+
<truncated>0</truncated>
54+
<difficult>0</difficult>
55+
<bndbox>
56+
<xmin>40</xmin>
57+
<ymin>124</ymin>
58+
<xmax>114</xmax>
59+
<ymax>214</ymax>
60+
</bndbox>
61+
</object>
62+
<object>
63+
<name>date</name>
64+
<pose>Unspecified</pose>
65+
<truncated>0</truncated>
66+
<difficult>0</difficult>
67+
<bndbox>
68+
<xmin>449</xmin>
69+
<ymin>197</ymin>
70+
<xmax>652</xmax>
71+
<ymax>327</ymax>
72+
</bndbox>
73+
</object>
74+
<object>
75+
<name>date</name>
76+
<pose>Unspecified</pose>
77+
<truncated>0</truncated>
78+
<difficult>0</difficult>
79+
<bndbox>
80+
<xmin>603</xmin>
81+
<ymin>311</ymin>
82+
<xmax>776</xmax>
83+
<ymax>507</ymax>
84+
</bndbox>
85+
</object>
86+
<object>
87+
<name>date</name>
88+
<pose>Unspecified</pose>
89+
<truncated>0</truncated>
90+
<difficult>0</difficult>
91+
<bndbox>
92+
<xmin>267</xmin>
93+
<ymin>269</ymin>
94+
<xmax>443</xmax>
95+
<ymax>460</ymax>
96+
</bndbox>
97+
</object>
98+
<object>
99+
<name>date</name>
100+
<pose>Unspecified</pose>
101+
<truncated>0</truncated>
102+
<difficult>0</difficult>
103+
<bndbox>
104+
<xmin>350</xmin>
105+
<ymin>409</ymin>
106+
<xmax>523</xmax>
107+
<ymax>562</ymax>
108+
</bndbox>
109+
</object>
110+
<object>
111+
<name>date</name>
112+
<pose>Unspecified</pose>
113+
<truncated>0</truncated>
114+
<difficult>0</difficult>
115+
<bndbox>
116+
<xmin>99</xmin>
117+
<ymin>340</ymin>
118+
<xmax>252</xmax>
119+
<ymax>517</ymax>
120+
</bndbox>
121+
</object>
122+
</annotation>

0 commit comments

Comments
 (0)