HumanSignal / HumanSignal/label-studio
Brush-type predictions won't display by the defined attribute after upgrade LS
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
**Describe the bug**
what is the main difference between `Brushlabels ` and `Labels`? the reason why I am asking is that in Label Studio Ver 1.8+ there seems to be a update in the definition of the ml-prediction. After upgrading from 1.7.2 to LS 1.13.x, my previous brush-type-ml-prediction masks becomes undefined object.
it tends to have issue with only brush type prediction.
Here is an example of the prediction uploaded:
```
"predictions": [
{
"id": 12797,
"result": [
{
"original_width": 128,
"original_height": 1458,
"image_rotation": 0,
"value": {
"format": "rle",
"rle": [
...
]
},
"id": "2ca6fb3e",
"from_name": "brushes",
"to_name": "image",
"type": "brushlabels",
"origin": "manual",
},,
{
"original_width": 128,
"original_height": 1458,
"image_rotation": 0,
"value": {
"format": "rle",
"rle": [
...
],
"brushlabels": [
"ObjectFound"
]
},
"id": "2ca6fb3e",
"from_name": "labels",
"to_name": "image",
"type": "labels",
"origin": "manual",
}
}
],
"created_username": " xxxx, 9",
"created_ago": "4 months, 1 week",
"completed_by": {
"id": 9,
"first_name": "",
"last_name": "",
"avatar": null,
"email": "xxxx",
"initials": "yi"
},
"was_cancelled": false,
"ground_truth": false,
"created_at": "2024-04-17T22:12:48.215934Z",
"updated_at": "2024-04-17T22:12:48.215934Z",
"draft_created_at": null,
"lead_time": null,
"import_id": null,
"last_action": null,
"task": 10280,
"project": 59,
"updated_by": 9,
"parent_prediction": null,
"parent_annotation": null,
"last_created_by": null
}
]
```
and here is the Labelling interface setting:
```
```
**To Reproduce**
Steps to reproduce the behavior:
1. import image and setup interface setting as illustrated
2. Inference and created prediction with ml-backend in LS 1.7.2
3. Upgrade to LS 1.8~1.13.x
4. use `python manage.py migrate`, `.. collectstatic`, `.. runserver`
5. click to see the prediction under each task
6. See error
**Expected behavior**
the database should be migrated to handle any discrepancies in label, and the label should show as "ObjectFound"
**Screenshots**

**Environment (please complete the following information):**
- OS: Windows 10
- Label Studio Version: 1.13.1
- label-studio-sdk: 1.0.5
- label-studio-ml: 2.0.1dev0
**Additional context**
Add any other context about the problem here.
Contributor guide
Assessment
This issue has not been assessed yet.