@@ -2595,6 +2595,32 @@ def _create_task(self, owner, assignee):
2595
2595
]
2596
2596
},
2597
2597
{"name" : "person" },
2598
+ {
2599
+ "name" : "widerface" ,
2600
+ "attributes" : [
2601
+ {
2602
+ "name" : "blur" ,
2603
+ "mutable" : False ,
2604
+ "input_type" : "select" ,
2605
+ "default_value" : "0" ,
2606
+ "values" : ["0" , "1" , "2" ]
2607
+ },
2608
+ {
2609
+ "name" : "expression" ,
2610
+ "mutable" : False ,
2611
+ "input_type" : "select" ,
2612
+ "default_value" : "0" ,
2613
+ "values" : ["0" , "1" ]
2614
+ },
2615
+ {
2616
+ "name" : "illumination" ,
2617
+ "mutable" : False ,
2618
+ "input_type" : "select" ,
2619
+ "default_value" : "0" ,
2620
+ "values" : ["0" , "1" ]
2621
+ },
2622
+ ]
2623
+ },
2598
2624
]
2599
2625
}
2600
2626
@@ -3716,6 +3742,30 @@ def _get_initial_annotation(annotation_format):
3716
3742
"occluded" : False ,
3717
3743
}]
3718
3744
3745
+ rectangle_shapes_with_wider_attrs = [{
3746
+ "frame" : 0 ,
3747
+ "label_id" : task ["labels" ][2 ]["id" ],
3748
+ "group" : 0 ,
3749
+ "source" : "manual" ,
3750
+ "attributes" : [
3751
+ {
3752
+ "spec_id" : task ["labels" ][2 ]["attributes" ][0 ]["id" ],
3753
+ "value" : task ["labels" ][2 ]["attributes" ][0 ]["default_value" ]
3754
+ },
3755
+ {
3756
+ "spec_id" : task ["labels" ][2 ]["attributes" ][1 ]["id" ],
3757
+ "value" : task ["labels" ][2 ]["attributes" ][1 ]["values" ][1 ]
3758
+ },
3759
+ {
3760
+ "spec_id" : task ["labels" ][2 ]["attributes" ][2 ]["id" ],
3761
+ "value" : task ["labels" ][2 ]["attributes" ][2 ]["default_value" ]
3762
+ }
3763
+ ],
3764
+ "points" : [1.0 , 2.1 , 10.6 , 53.22 ],
3765
+ "type" : "rectangle" ,
3766
+ "occluded" : False ,
3767
+ }]
3768
+
3719
3769
rectangle_shapes_wo_attrs = [{
3720
3770
"frame" : 1 ,
3721
3771
"label_id" : task ["labels" ][1 ]["id" ],
@@ -3864,6 +3914,10 @@ def _get_initial_annotation(annotation_format):
3864
3914
annotations ["shapes" ] = rectangle_shapes_wo_attrs \
3865
3915
+ polygon_shapes_wo_attrs
3866
3916
3917
+ elif annotation_format == "WiderFace 1.0" :
3918
+ annotations ["tags" ] = tags_wo_attrs
3919
+ annotations ["shapes" ] = rectangle_shapes_with_wider_attrs
3920
+
3867
3921
elif annotation_format == "VGGFace2 1.0" :
3868
3922
annotations ["tags" ] = tags_wo_attrs
3869
3923
annotations ["shapes" ] = points_wo_attrs \
0 commit comments