SDK show BOX WITHOUT LABEL
taghouti-ghofrane opened this issue · 5 comments
taghouti-ghofrane commented
hello
i was trying to send annotations from model prediction to label studio using sdk
i formatted the x , y , width and height , and all is fine .
i just have this problem , the box shows without label .
The code used is :
results_pre=[]
results_pre.append({
"from_name": "tag",
"to_name": "image",
'type': 'rectanglelabels',
'value': {
'rectanglelabels': ['Table'],
'x': x_c ,
'y':y_c,
'width':wid_c,
'height': high_c,
}})
task_ids = project.get_tasks_ids()
project.create_prediction(task_id=task_ids[11], model_version='model_9', result = results_pre , score=0.5)
makseq commented
@taghouti-ghofrane Are you sure you have the same label Table in your labeling config? Please share your labeling config too.
taghouti-ghofrane commented
taghouti-ghofrane commented
that confused me even in this example it works https://github.com/heartexlabs/label-studio-sdk/blob/master/examples/import_preannotations/import_brush_predictions.py
also i tried it yesterday it works
makseq commented
"from_name": "tag",
=>
"from_name": "label",
jelalsultanov commented
"from_name": "tag",
=>
"from_name": "label",
Yeap Correct. I had same issue with this "tag" and "label". I just changed to "labels"