質問編集履歴
1
KyeError:VisitedFramesと表示された
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,9 +12,9 @@
|
|
12
12
|
|
13
13
|
```
|
14
14
|
|
15
|
-
|
15
|
+
KeyError Traceback (most recent call last)
|
16
|
-
|
16
|
+
|
17
|
-
<ipython-input-2
|
17
|
+
<ipython-input-24-8b5d4622bced> in <module>()
|
18
18
|
|
19
19
|
75
|
20
20
|
|
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
<ipython-input-2
|
27
|
+
<ipython-input-24-8b5d4622bced> in _main()
|
28
28
|
|
29
29
|
71 image_dir=image_dir,
|
30
30
|
|
@@ -38,21 +38,21 @@
|
|
38
38
|
|
39
39
|
|
40
40
|
|
41
|
-
<ipython-input-2
|
41
|
+
<ipython-input-24-8b5d4622bced> in convert_vott_to_kerasyolo3txt(json_path, image_dir, train_txt_save_path, classes_txt_save_path)
|
42
|
-
|
43
|
-
7 row_list = []
|
44
|
-
|
45
|
-
8
|
46
|
-
|
47
|
-
----> 9 with open(json_path) as f:
|
48
|
-
|
49
|
-
10 dic = json.load(f)
|
50
42
|
|
51
43
|
11 tag_set = set()
|
52
44
|
|
53
|
-
|
45
|
+
12
|
54
|
-
|
46
|
+
|
55
|
-
|
47
|
+
---> 13 visited_frames = dic['visitedFrames']
|
48
|
+
|
49
|
+
14
|
50
|
+
|
51
|
+
15 frames = dic['frames']
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
KeyError: 'visitedFrames'
|
56
56
|
|
57
57
|
|
58
58
|
|
@@ -192,7 +192,7 @@
|
|
192
192
|
|
193
193
|
def _main():
|
194
194
|
|
195
|
-
json_path='C:Users/PC017/learn/00ac59f09115dc03edfabfd6c85de434-asset.json'
|
195
|
+
json_path='C:/Users/PC017/learn/00ac59f09115dc03edfabfd6c85de434-asset.json'
|
196
196
|
|
197
197
|
image_dir='C:/Users/PC017/learn/'
|
198
198
|
|