Commit 23f10ff
fix wrong json file format (#157)
* fix wrong json file format
COCO challenge only has 17 keypoints, so indexesInCocoOrder.size()==17.
openpose added the neck keypoint (index 1), therefore numberBodyParts==18.
numberBodyParts-1==17, Statement `if (bodyPart < numberBodyParts-1)` adds a comma for every bodyPart ([0..16]), add a extra comma in the end, causing a bad json format file, which can not be proporly parsed.
* Update cocoJsonSaver.cpp1 parent efecb00 commit 23f10ff
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments