Hi, I try to import ground truth labels of videos to labelbox.
The help page was updated yesterday, but the function get_ground_truth_label is unknown.
Then I try it according to the previous cache page, but obtained the error of the title by printing upload_task.errors[0]:
{'uuid': uuid, 'dataRow': {'id': id}, 'status': 'FAILURE', 'errors': [{'name': 'MissingFramesData', 'message': 'Video data row is missing frames, segments and answers, with ID: ID, 'additionalInfo': None}]}
I think the frame information is necessary for upload_task object because the above example is for images (not videos), but I cannot add this inofrmation.
@fujii, the get_ground_truth_label function is a placeholder that is intended to be replaced by your own function.
For any given data row, there are a number of ways in which you may determine what annotations should be applied. For example, some people might be importing predictions generated from a model, while others may be manually determining the annotations to be added. For any given data row, the label that you want to create must be determined by a function of your own.
As to your second question, the frame information is not necessary when uploading annotations onto images. If you are continually facing this issue when trying to upload annotations onto an image, please turn to our customer support portal and report an issue. Our team will be happy to help triage and discuss!
@Zeke Thanks for the reply!
I understand about get_ground_truth_label function.
My main (2nd) question is about importing labels of videos, not images.
Could you tell me the solution for the error of the title Video data row is missing frames, segments and answers if you know? Thanks.
Have you had a chance to check out the format that is specific to importing annotations on video assets? If not, please take a look at this Google Colab tutorial.