Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

PascalVOC export generating wrong value for ymax #760

Closed
daisatojp opened this issue Apr 15, 2019 · 4 comments
Closed

PascalVOC export generating wrong value for ymax #760

daisatojp opened this issue Apr 15, 2019 · 4 comments
Assignees
Labels

Comments

@daisatojp
Copy link

daisatojp commented Apr 15, 2019

When i try to export TFPascalVOC format, ymax is identical to xmin in bounding box value.

exported xml

<annotation verified="yes">
    <folder>Annotation</folder>
    <filename>A_001.mp4#t=0.jpg</filename>
    <path>A-TFPascalVOC-export/Annotations/A_001.mp4#t=0.jpg</path>
    <source>
        <database>Unknown</database>
    </source>
    <size>
        <width>1280</width>
        <height>720</height>
        <depth>3</depth>
    </size>
    <segmented>0</segmented>
    <object>
    <name>object</name>
    <pose>Unspecified</pose>
    <truncated>0</truncated>
    <difficult>0</difficult>
    <bndbox>
        <xmin>292.3342939481268</xmin>
        <ymin>468.6683738796415</ymin>
        <xmax>723.9193083573487</xmax>
        <ymax>292.3342939481268</ymax>
    </bndbox>
</object>
</annotation>

and corresponding asset json file

{
    "asset": {
        "id": "fd5c55428d521d2419d7d75aa23847ef",
        "format": "mp4",
        "state": 2,
        "type": 3,
        "name": "A_001.mp4#t=0",
        "path": "file:F:/dataset/B/video/A/A_001.mp4#t=0",
        "size": {
            "width": 1280,
            "height": 720
        },
        "parent": {
            "format": "mp4",
            "id": "3c210bd8fb5d485fc70ad3e2683a5fc1",
            "name": "A_001.mp4",
            "path": "file:F:/dataset/B/video/A/A_001.mp4",
            "size": {
                "width": 1280,
                "height": 720
            },
            "state": 1,
            "type": 2
        },
        "timestamp": 0
    },
    "regions": [
        {
            "id": "Bq6Qilz7A",
            "type": "RECTANGLE",
            "tags": [
                "object"
            ],
            "boundingBox": {
                "height": 126.29961587708067,
                "width": 431.5850144092219,
                "left": 292.3342939481268,
                "top": 468.6683738796415
            },
            "points": [
                {
                    "x": 292.3342939481268,
                    "y": 468.6683738796415
                },
                {
                    "x": 723.9193083573487,
                    "y": 468.6683738796415
                },
                {
                    "x": 723.9193083573487,
                    "y": 594.9679897567222
                },
                {
                    "x": 292.3342939481268,
                    "y": 594.9679897567222
                }
            ]
        }
    ],
    "version": "2.0.0"
}

ymax has to be 594.9679897567222

@daisatojp
Copy link
Author

found cause of the bug

https://github.com/Microsoft/VoTT/blob/master/src/providers/export/tensorFlowPascalVOC/tensorFlowPascalVOCTemplates.ts#L34

@wbreza wbreza added the bug label Apr 15, 2019
wbreza pushed a commit that referenced this issue Apr 15, 2019
@wbreza wbreza changed the title exporting TFPascalVOC, xmin==ymax PascalVOC export generating wrong value for ymax Apr 16, 2019
@wbreza wbreza self-assigned this Apr 18, 2019
@cedricve
Copy link

any idea when this one will be merged, this make the use of the tool a bit useless..

@wbreza
Copy link
Contributor

wbreza commented Apr 29, 2019

@cedricve This fix has been merged into the develop branch. We will push out to master and create a new release this week with the recent fixes and updates.

wbreza pushed a commit that referenced this issue Apr 29, 2019
@wbreza
Copy link
Contributor

wbreza commented Apr 29, 2019

Resolved in v2.1.0

@wbreza wbreza closed this as completed Apr 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants