fix: iNatv2 directory
Browse files- data/{iNatv2.tar → iNatv2/10069.tar} +2 -2
- data/iNatv2/13851.tar +3 -0
- data/iNatv2/145303.tar +3 -0
- data/iNatv2/14850.tar +3 -0
- data/iNatv2/17871.tar +3 -0
- data/iNatv2/18911.tar +3 -0
- data/iNatv2/204496.tar +3 -0
- data/iNatv2/3017.tar +3 -0
- data/iNatv2/7278.tar +3 -0
- data/iNatv2/792985.tar +3 -0
- data/iNatv2/8088.tar +3 -0
- data/iNatv2/9398.tar +3 -0
- data/iNatv2/9801.tar +3 -0
- mergesets.py +40 -0
- ornithoscope.py +21 -0
- sets/DS5_test.json +3 -0
- sets/DS5_train.json +3 -0
- sets/DS5_val.json +3 -0
- sets/DS6_test.json +3 -0
- sets/DS6_train.json +3 -0
- sets/DS6_val.json +3 -0
- sets/DS7_test.json +3 -0
- sets/DS7_train.json +3 -0
- sets/DS7_val.json +3 -0
data/{iNatv2.tar → iNatv2/10069.tar}
RENAMED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8cb089088e3a2d35e298fb406e35ee83f31d7b1bb43928a9ae8621ccbf0ca5d8
|
3 |
+
size 201062400
|
data/iNatv2/13851.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9c34eba7dfae86bec05a40463a5c54b881cf262516c01977654a2606066f2c07
|
3 |
+
size 187832320
|
data/iNatv2/145303.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:39dafb16863b0be3bd8a23f9f19b7854a29644f20cf7b9f57670dffd3bb65316
|
3 |
+
size 213995520
|
data/iNatv2/14850.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b62df6b0eae7e0f6297d85fed9372244ba528ce6bac09d7920c85a72f3e9bed8
|
3 |
+
size 193157120
|
data/iNatv2/17871.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:33cf067f2a3d64dd42686d025a425aa8684c53871a33fc8a78a6ec57a90b180f
|
3 |
+
size 193771520
|
data/iNatv2/18911.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:42c8d5cb60a41e6ddcac423156aad3416633e8f21fe6e718daa217018549bd6a
|
3 |
+
size 206397440
|
data/iNatv2/204496.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:40edf4671228b00bba644f0ee6210726619493bff500464cb4f4e06741c1eeca
|
3 |
+
size 206704640
|
data/iNatv2/3017.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:56c7981f6e3f1f4b8fc1f2185027f077a650f2383f81b2a50b654eea7983567f
|
3 |
+
size 198389760
|
data/iNatv2/7278.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f71f0bc9a1b12a49bd576a2cf4cde99f0044362552029a6f5783c1d7199e8e50
|
3 |
+
size 194242560
|
data/iNatv2/792985.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:34d743a458f2f46d49babeaf5ffdd6a5d6ce2334abf1cb11b56dfa8bc3234857
|
3 |
+
size 213893120
|
data/iNatv2/8088.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cad2747adadbac4206e57c0ba01d7a52794aa3fa24f07a615242638d44ae5a54
|
3 |
+
size 221112320
|
data/iNatv2/9398.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f6fc995296e829e154d47e1b15dd03be1f387423c51797623ed8a0049e0ddbb4
|
3 |
+
size 201953280
|
data/iNatv2/9801.tar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7a130f12ff91d9ed260ac2e335e847d1b7600c5425fd0f66df12b60cd57a2b3a
|
3 |
+
size 169226240
|
mergesets.py
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import json
|
3 |
+
|
4 |
+
|
5 |
+
dir = 'annotations'
|
6 |
+
merged = {}
|
7 |
+
excluded = [
|
8 |
+
'task_2021-03-01_09',
|
9 |
+
'task_2021-03-01_10',
|
10 |
+
'task_20210526_UPS',
|
11 |
+
'task_20210611_Lab',
|
12 |
+
'task_20210612_1_Lab',
|
13 |
+
'task_20210705-07_balacet',
|
14 |
+
'task_20211204_Orlu',
|
15 |
+
'task_21-01-2021',
|
16 |
+
]
|
17 |
+
|
18 |
+
|
19 |
+
def iter_files(path, callback):
|
20 |
+
if os.path.isfile(path):
|
21 |
+
callback(path)
|
22 |
+
elif os.path.isdir(path):
|
23 |
+
for entry in os.scandir(path):
|
24 |
+
iter_files(entry.path, callback)
|
25 |
+
|
26 |
+
|
27 |
+
def merge_files(path):
|
28 |
+
global merged
|
29 |
+
for name in excluded:
|
30 |
+
if name in path:
|
31 |
+
return
|
32 |
+
with open(path, 'r') as f:
|
33 |
+
data = json.load(f)
|
34 |
+
merged = merged | data
|
35 |
+
|
36 |
+
|
37 |
+
iter_files(dir, merge_files)
|
38 |
+
|
39 |
+
with open('sets/DS7_train.json', 'w') as f:
|
40 |
+
json.dump(merged, f)
|
ornithoscope.py
CHANGED
@@ -127,6 +127,27 @@ class Ornithoscope(datasets.GeneratorBasedBuilder):
|
|
127 |
validation_json="sets/DS4_val.json",
|
128 |
test_json="sets/DS4_test.json",
|
129 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
]
|
131 |
|
132 |
def _info(self) -> datasets.DatasetInfo:
|
|
|
127 |
validation_json="sets/DS4_val.json",
|
128 |
test_json="sets/DS4_test.json",
|
129 |
),
|
130 |
+
OrnithoscopeConfig(
|
131 |
+
name="DS5",
|
132 |
+
description="The new dataset.",
|
133 |
+
train_json="sets/DS5_train.json",
|
134 |
+
validation_json="sets/DS5_val.json",
|
135 |
+
test_json="sets/DS5_test.json",
|
136 |
+
),
|
137 |
+
OrnithoscopeConfig(
|
138 |
+
name="DS6",
|
139 |
+
description="The new dataset.",
|
140 |
+
train_json="sets/DS6_train.json",
|
141 |
+
validation_json="sets/DS6_val.json",
|
142 |
+
test_json="sets/DS6_test.json",
|
143 |
+
),
|
144 |
+
OrnithoscopeConfig(
|
145 |
+
name="DS7",
|
146 |
+
description="The new dataset.",
|
147 |
+
train_json="sets/DS7_train.json",
|
148 |
+
validation_json="sets/DS7_val.json",
|
149 |
+
test_json="sets/DS7_test.json",
|
150 |
+
),
|
151 |
]
|
152 |
|
153 |
def _info(self) -> datasets.DatasetInfo:
|
sets/DS5_test.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d50d27218640bffd765c6b5d57182f59c344f954d7afbafc7a970fbe6b79a76a
|
3 |
+
size 1367416
|
sets/DS5_train.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9860a8d67788a3d890fc236c6ca986a8318d5621104150d5d6382830417ac524
|
3 |
+
size 5881851
|
sets/DS5_val.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f8df387f34459cb2e6ac2718d502fb752d21e09c2c89720c60f0789225332c71
|
3 |
+
size 101069
|
sets/DS6_test.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d50d27218640bffd765c6b5d57182f59c344f954d7afbafc7a970fbe6b79a76a
|
3 |
+
size 1367416
|
sets/DS6_train.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1841a6b7fb062a3c86f032b81681d32cc3faf042a8b0c511d1f86d429c3efea8
|
3 |
+
size 4765210
|
sets/DS6_val.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f8df387f34459cb2e6ac2718d502fb752d21e09c2c89720c60f0789225332c71
|
3 |
+
size 101069
|
sets/DS7_test.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d50d27218640bffd765c6b5d57182f59c344f954d7afbafc7a970fbe6b79a76a
|
3 |
+
size 1367416
|
sets/DS7_train.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7d05fa3a216d150e2718b89f66b043ad66597a26ee79e8947cf6975cdf0bbfb2
|
3 |
+
size 23398564
|
sets/DS7_val.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f8df387f34459cb2e6ac2718d502fb752d21e09c2c89720c60f0789225332c71
|
3 |
+
size 101069
|