HumanSignal / HumanSignal/label-studio

XML tags smart and smartOnly have no effect

Open
#4,580 2 comments 2 reactions 1 assignee Claimed by @makseq View on GitHub
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

**Describe the bug**
I have set up a labelstudio-ml-backend for interactive pre-annotations. The labeling interface has three types of labels (see XML code below) of which two have the tag `smartOnly="True"` as explained [here ](https://labelstud.io/guide/ml.html#Get-interactive-preannotations).

However as you can see in the screen shot below I'm still able to select the non-smart keypoint option in the menu on the right while having the "smart keypoint 1" label selected. Vice versa, I can also select the smart keypoint option in that menu while having the non-smart "keypoint labe"l selected (even though `smart=True` is not set for the non-smart keypoint in the XML config.)
![image](https://github.com/HumanSignal/label-studio/assets/42293623/2a383df1-db5a-4428-85c0-52d778cb0132)

**To Reproduce**
- XML configuration for the labeling interface:
```








1


```

**Expected behavior**
What I expect is that
- When I select "smart keypoint 1" the **auto-detect keypoint** option is automatically selected because `smartOnly="true"`
![image](https://github.com/HumanSignal/label-studio/assets/42293623/ec07716f-4e1f-4561-898c-d501e4284867)
- When I select "smart rectangle 1" the **auto-detect rectangle** option is automatically selected because `smartOnly="true"`
![image](https://github.com/HumanSignal/label-studio/assets/42293623/5c82a3a2-11d8-4284-97e8-c9048e419e48)
- When I select "keypoint 1" the **non-auto-detect keypoint** option is automatically selected because `smart="true"` is not present
![image](https://github.com/HumanSignal/label-studio/assets/42293623/68f4f101-0313-48eb-b52b-718a318712fc)

**Environment (please complete the following information):**
- OS: Linux
- Label Studio Version 1.7.3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.