HumanSignal/label-studio-sdk

SDK show BOX WITHOUT LABEL

taghouti-ghofrane opened this issue · 5 comments

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 .
image
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)

@taghouti-ghofrane Are you sure you have the same label Table in your labeling config? Please share your labeling config too.

"from_name": "tag",

=>

"from_name": "label",

@makseq

"from_name": "tag",

=>

"from_name": "label",

Yeap Correct. I had same issue with this "tag" and "label". I just changed to "labels"