Skip to content

Conversation

@ctakigawa
Copy link

@ctakigawa ctakigawa commented Oct 12, 2024

背景

https://github.com/orgs/fastlabel/projects/15/views/1?sliceBy%5Bvalue%5D=ctakigawa&pane=issue&itemId=82891444&issue=fastlabel%7Cfastlabel-application%7C7830
上記issueの対応

リンク

対応内容

  • PascalVOC出力時にオブジェクトの順序がアノテーションの追加順となるよう修正(PFの出力順序に合わせています)

妥協点

UI before / after

出力結果のbefore/after
#230 (comment)

テスト

  • PascalVOC出力時にオブジェクトの順序がアノテーションの追加順となっていること

補足

@ctakigawa ctakigawa self-assigned this Oct 12, 2024
@ctakigawa
Copy link
Author

before

<annotation>
    <filename>リス.jpg</filename>
    <size>
        <width>3200</width>
        <height>2107</height>
        <depth>3</depth>
    </size>
    <segmented>0</segmented>
    <object>
        <name>bbox1</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>435</xmin>
            <ymin>306</ymin>
            <xmax>967</xmax>
            <ymax>732</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox1</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>1109</xmin>
            <ymin>735</ymin>
            <xmax>1658</xmax>
            <ymax>1142</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox1</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>1858</xmin>
            <ymin>516</ymin>
            <xmax>2393</xmax>
            <ymax>922</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox2</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>432</xmin>
            <ymin>542</ymin>
            <xmax>971</xmax>
            <ymax>926</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox2</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>1113</xmin>
            <ymin>303</ymin>
            <xmax>1661</xmax>
            <ymax>739</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox2</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>1851</xmin>
            <ymin>739</ymin>
            <xmax>2396</xmax>
            <ymax>1119</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox3</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>435</xmin>
            <ymin>735</ymin>
            <xmax>958</xmax>
            <ymax>1151</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox3</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>1113</xmin>
            <ymin>539</ymin>
            <xmax>1661</xmax>
            <ymax>945</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox3</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>1854</xmin>
            <ymin>281</ymin>
            <xmax>2409</xmax>
            <ymax>755</ymax>
        </bndbox>
    </object>
</annotation>

after

<annotation>
    <filename>リス.jpg</filename>
    <size>
        <width>3200</width>
        <height>2107</height>
        <depth>3</depth>
    </size>
    <segmented>0</segmented>
    <object>
        <name>bbox1</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>435</xmin>
            <ymin>306</ymin>
            <xmax>967</xmax>
            <ymax>732</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox2</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>432</xmin>
            <ymin>542</ymin>
            <xmax>971</xmax>
            <ymax>926</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox3</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>435</xmin>
            <ymin>735</ymin>
            <xmax>958</xmax>
            <ymax>1151</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox2</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>1113</xmin>
            <ymin>303</ymin>
            <xmax>1661</xmax>
            <ymax>739</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox3</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>1113</xmin>
            <ymin>539</ymin>
            <xmax>1661</xmax>
            <ymax>945</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox1</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>1109</xmin>
            <ymin>735</ymin>
            <xmax>1658</xmax>
            <ymax>1142</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox3</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>1854</xmin>
            <ymin>281</ymin>
            <xmax>2409</xmax>
            <ymax>755</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox1</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>1858</xmin>
            <ymin>516</ymin>
            <xmax>2393</xmax>
            <ymax>922</ymax>
        </bndbox>
    </object>
    <object>
        <name>bbox2</name>
        <pose>Unspecified</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <difficult>0</difficult>
        <bndbox>
            <xmin>1851</xmin>
            <ymin>739</ymin>
            <xmax>2396</xmax>
            <ymax>1119</ymax>
        </bndbox>
    </object>
</annotation>

@takahiro-tamenishi takahiro-tamenishi changed the base branch from main to develop October 15, 2024 03:42
@takahiro-tamenishi takahiro-tamenishi changed the base branch from develop to main October 15, 2024 04:17
@takahiro-tamenishi takahiro-tamenishi merged commit 67f1b98 into main Oct 15, 2024
1 check passed
@takahiro-tamenishi takahiro-tamenishi deleted the feature/7830-fix-pascalvoc-object-order branch October 15, 2024 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants