Repeater with pagination deletes annotations on other pages when used with BrushLabels
Describe the bug
Only the active page when clicking "Submit" retains its brush annotations, all other annotations are deleted. Happens only with mode="pagination".
To Reproduce
Create a project with config:
<View>
<Repeater on="$document" indexFlag="{{idx}}" mode="pagination">
<Image name="page_{{idx}}" value="$document[{{idx}}].page"/>
<BrushLabels name="labels_{{idx}}" toName="page_{{idx}}">
<Label value="Title" background="green" />
<Label value="Date" background="blue" />
<Label value="Author" background="yellow"/>
<Label value="Organization" background="orange"/>
<Label value="Amount" background="red"/>
</BrushLabels>
</Repeater>
</View>
with the demo data:
{
"document": [
{
"page": "https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0001.jpg"
},
{
"page": "https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0002.jpg"
},
{
"page": "https://htx-pub.s3.amazonaws.com/demo/images/demo_stock_purchase_agreement/0003.jpg"
}
]
}
and create segmentations on at least two pages.
Expected behavior
Each page should be able to store independent brushlabels.
Environment (please complete the following information):
Docker image:
heartexlabs/label-studio:1.12.1 (afbe561a9dc7)
Hi @Telcrome - we'll investigate this one! Repeater does have some known issues though, so we might propose an alternative labeling config that works better with BrushLabels.
@jombooth sounds great! Is there already a working alternative for groups of images where each image can have its own segmentation?