label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

grid option in labeling interface breaks labeling

Open chorus12 opened this issue 3 years ago • 1 comments

The following configuration breaks labeling interface - one can not assign a label to a rectangle:

<View>
  <RectangleLabels name="label" toName="image">
    <Label value="Airplane" background="green"/>
    <Label value="Car" background="blue"/>
  </RectangleLabels>
  <Image name="image" value="$image" grid="true" gridSize="40"/>
</View>

If you remove grid="true" gridSize="40" from Image tag then you can assign a label to a rectangle.

Environment (please complete the following information):

  • Label Studio Version == 1.6

chorus12 avatar Dec 06 '22 13:12 chorus12

I am also having this issue in version 1.12.0, community edition. When I add a grid to the labeling interface code, I loose the ability to annotate. The grid is important for my case because many of my images have large sections of empty and homogenous background and we are labeling relatively small objects (birds on water from 1200 ft above ground). Using the default settings when setting up a project (airplanes), adding grid="true" to the JSON does not allow labeling:

<View>
  <Image name="image" value="$image" grid="true"/>
  <RectangleLabels name="label" toName="image">
    <Label value="Airplane" background="green"/>
    <Label value="Car" background="blue"/>
  </RectangleLabels>
</View>

Does not work. When the grid="true" is removed, labeling works correctly.

Thanks.

eosnas avatar Apr 26 '24 17:04 eosnas