I was recently uploading ground truth labels to an Annotation project and accidentally uploaded them twice. This resulted in two label entries existing for each image. As our project isn’t using consensus, this doesn’t make much sense.
We also noticed that some of the ground truth labels needed fixing, so we are adjusting them now. However, having two label entries per image is making it confusing.
As a result, I wanted the ability to delete all labels associated with one ground truth upload job via either the Python SDK or the Web UI.
method bulk_import_requests() will return a list of import, select the one you would like to remove.
project = client.get_project("<PROJECT_ID>")
importList = []
for imports in project.bulk_import_requests():
importList.append(imports)
#importList[0]
#importList[0].delete() #This will delete all pre-annotations uploaded via MAL
I noticed that the bulk import requests only contained pre-labels imported as MAL jobs. I am not able to find any of the bulk imports I did with lb.LabelImport.create_from_objects().