Skip to content

Commit

Permalink
Change 'Unspecified' to '0' for TFLite Model Maker compatibility (#214)
Browse files Browse the repository at this point in the history
* Change default 'Unspecified' to '0' for TFLite Model Maker compatibility

* Revert pose to "Unspecified"
  • Loading branch information
scottamain authored Oct 21, 2021
1 parent e71a8a1 commit 61f67a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logic/export/RectLabelsExporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ export class RectLabelsExporter {
`\t<object>`,
`\t\t<name>${labelName.name}</name>`,
`\t\t<pose>Unspecified</pose>`,
`\t\t<truncated>Unspecified</truncated>`,
`\t\t<difficult>Unspecified</difficult>`,
`\t\t<truncated>0</truncated>`,
`\t\t<difficult>0</difficult>`,
`\t\t<bndbox>`,
`\t\t\t<xmin>${Math.round(labelRect.rect.x)}</xmin>`,
`\t\t\t<ymin>${Math.round(labelRect.rect.y)}</ymin>`,
Expand Down

0 comments on commit 61f67a8

Please sign in to comment.