Could not upload prelabel into project

Hey everyone! I would appreciate it if anyone could help me that when I use the default sdk code to upload prelabels into specific project like:

radio_annotation_1 = lb_types.ClassificationAnnotation(
9    name="what_is_the_light_temperature",
10    value=lb_types.Radio(answer=lb_types.ClassificationAnswer(
11        name="neutral")
12    )
13)

But it exports that could not find both the question name and ratio name, so I change to

ClassificationAnnotation(
    name="Are the colors in this video:",
    # feature_schema_id="cm3s4pmug06ib07vrbia5hebr",
    value=Radio(answer=ClassificationAnswer(name="Neutral"))
),

And this work, it shows that no video is failed. But after I check that project, there is no prelabel. My uploading code is shown below:

upload_job = MALPredictionImport.create_from_objects(
client=client,
project_id=PROJECT_ID,
name=“overwrite_job_” + str(uuid.uuid4()),
predictions=labels
)

upload_job = MALPredictionImport.create_from_objects(
client = client,
project_id = PROJECT_ID,
name = “mal_job”+str(uuid.uuid4()),
predictions = labels)

upload_job.wait_till_done()

print(“Errors:”, upload_job.errors)

Thanks for your kind help!!!

Hey @siyuancen096 ,

Could you provide the data row ID (and the project ID) you are importing your pre-label?
Also you mentioned export so unsure what is the end goal here.

thanks,
PT

Sure, thanks for your help! My goal is to upload prelabels into specific projects. The project ID is “cm9w8c5ot01ht072ba19ges7y” and the data row IDs are shown below:

[‘cm6yghhaf1vyd0713f078wpt6’, ‘cm7iwmqkg0few0782yjexcop5’, ‘cm7iwmqkg0fho0782lcli05dk’, ‘cm7iwmqkg0fhq0782xt1sx1ci’, ‘cm889n30w0chb078290mso756’, ‘cm889n30w0ckc0782d25laffm’, ‘cm889n30w0ckd0782svqic4um’, ‘cm889n30w0cke0782u24256sw’, ‘cm889n40b0c1f07729v8ukrsz’, ‘cm889n40b0c1g07722sy9aqi1’, ‘cm889n40b0c2c0772ck1qvju0’, ‘cm889n40b0c2d0772cmmdnniv’, ‘cm9vnspdh30ir07524240t9uc’, ‘cm9vnspdh30is075275tk39bg’, ‘cm9vnspdh30it07520eiej07k’, ‘cm9vnspdh30iv0752tjmav0xf’, ‘cm9vnspdh30iw07523pxvs5wy’, ‘cm9vnspdh30ix0752vidi41hn’, ‘cm9vo5qm047e20723ily0uqkm’, ‘cm9vo5qm047e30723sn9e6itx’, ‘cm9vo5qm047e40723j8et2ufb’, ‘cm9vo5qm047e60723x6jcsno5’, ‘cm9vo5qm047e90723xvx8eosh’, ‘cm9vo5qm047ea07235kpyn17a’, ‘cm9vo5qm047eb0723nqzv3bvc’]

Thanks so much!

Paul via Labelbox Community <notifications@labelbox2.discoursemail.com> 于2025年4月25日周五 05:57写道:

Hey Paul, is there any update?

Yours sincerely
Siyuan Cen

Paul via Labelbox Community <notifications@labelbox2.discoursemail.com> 于2025年4月25日周五 05:57写道:

1 Like

Did you delete the project? If you have an ontology ID I can refer too I can provide a sample import, let me know.

sure will give you both the new project id and ontology id in 1 hour! Thanks

The ontology ID is “cm3s4pmsp06f007vr9luoaa9p”, and now I just created a new project, whose ID is “cma5riwbs011p072def7y81vy”. I would appreciate it if you could provide the import code!

Yours sincerely,
Siyuan Cen

Paul via Labelbox Community <notifications@labelbox2.discoursemail.com> 于2025年5月1日周四 13:42写道:

Hey Paul,

Sorry for the update. Is there any progress?

Yours sincerely
Siyuan Cen

Paul via Labelbox Community <notifications@labelbox2.discoursemail.com> 于2025年5月1日周四 13:42写道: