No default attributes in dumped annotation
See original GitHub issueHello, I have a little problem after dump annotation. But first… My labels look this like:
Label_1 @number=Shelf_ID:1,10,1 @checkbox=Face:true @number=Order_on_shelf:1,50,1 Label_2 @number=Shelf_ID:1,10,1 @checkbox=Face:true @number=Order_on_shelf:1,50,1 Label_3 @number=Shelf_ID:1,10,1 @checkbox=Face:true @number=Order_on_shelf:1,50,1 Label_4 @number=Shelf_ID:1,10,1 @checkbox=Face:true @number=Order_on_shelf:1,50,1 Label_5 @number=Shelf_ID:1,10,1 @checkbox=Face:true @number=Order_on_shelf:1,50,1
On annotated photo we see a rack in the shop with few shelfs. We use attributes to count on which shelf and on which place on shelf is annotated product. Of course on every photo we don’t need to change attributes for only one product (this product which have posistion on first shelf and on the first position on shelf) so it means that default attributes are good for him.
And here we have a problem because if we won’t do anything with any attribute on this instance of label, after dump annotation, in xml file we can see only his name but with no values of attributes like below:
<box label="Label_1" occluded="0" xtl="308.15" ytl="1436.57" xbr="536.26" ybr="1707.47">
<attribute name="Order_on_shelf">2</attribute>
<attribute name="Shelf_ID">1</attribute>
<attribute name="Face">false</attribute>
</box>
<box label="Label_2" occluded="0" xtl="3.26" ytl="1410.68" xbr="119.15" ybr="1680.02">
</box>
<box label="Label_3" occluded="0" xtl="527.86" ytl="1492.75" xbr="760.65" ybr="1722.92">
<attribute name="Order_on_shelf">3</attribute>
<attribute name="Face">true</attribute>
<attribute name="Shelf_ID">1</attribute>
</box>
When I will change any attribute on this instance for example:
- Shelf_ID=1 —> ShelfId=2
- Save work
- Shelf_ID=2 —> Shelft_ID=1
- Save work.
Then everything is OK, instance was “touched” so we can see his default values, but only because I changed them for a moment. After dump anotation we see now correct values.:
<box label="Label_1" occluded="0" xtl="308.15" ytl="1436.57" xbr="536.26" ybr="1707.47">
<attribute name="Order_on_shelf">2</attribute>
<attribute name="Shelf_ID">1</attribute>
<attribute name="Face">false</attribute>
</box>
<box label="Label_2" occluded="0" xtl="3.26" ytl="1410.68" xbr="119.15" ybr="1680.02">
<attribute name="Order_on_shelf">1</attribute>
<attribute name="Shelf_ID">1</attribute>
<attribute name="Face">true</attribute>
</box>
<box label="Label_3" occluded="0" xtl="527.86" ytl="1492.75" xbr="760.65" ybr="1722.92">
<attribute name="Order_on_shelf">3</attribute>
<attribute name="Face">true</attribute>
<attribute name="Shelf_ID">1</attribute>
</box>
EDIT: Or maybe this is normal funcionality in CVAT, which means that no changes on default values of attributes aren’t copied on every line of unchanged instance of objects.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
@sbanori Got it, thanks for help! We’ll fix this issue.
I know why wee see another effects 😃 But first, here is json from your steps:
And it work properly when I did it like you said. Default attributes are in the xml file and it works without bug.
I made some tests and know I see when is this bug. It’s when I use AutoAnnotation. When I write boundingbox by my hand, with default attributes, it’s OK. Xml will show these attributes. But when I use AutoAnnotation, then untouched default attributes aren’t visible in Xml files.
And here we have a file which is annotataed in both ways in one task. These without attributes, are from AutoAnnotation, and these from handAnnotation ale with attributes: