Amazon rekognition custom labels LabelsDetection() returns empty value

0

I trained a model in rekognition and run in aws cli. But ı call the method return empty list like this: "CustomLabels": [] How can I solve ıt. Thank you.

cagatay
asked 2 years ago418 views
2 Answers
0

Hi,

To make a better debug, could you please let me know what is the script of the aws cli you called or provide the return response with empty value? Also, please let me know the arn of you model.

Thanks,

AWS
Jady
answered 2 years ago
  • Hi, aws rekognition detect-custom-labels
    --project-version-arn "arn:aws:rekognition:us-east-1:680335478196:project/dugme/version/dugme.2022-08-25T11.39.37/1661416777799"
    --image '{"S3Object": {"Bucket": "dugme-model","Name": "NXT_12_Aug_2022_14_11_00_853.jpg"}}'
    --region us-east-1 This is aws's advice script for use model. And this is my model's arn: arn:aws:rekognition:us-east-1:680335478196:project/dugme/version/dugme.2022-08-25T11.39.37/1661416777799

    Thank you for answer

0

As discussed further on this page, Rekognition applies confidence thresholding on returned labels - using assumed thresholds by default unless you specifically configure something different. Probably for this test image your model is not confidently detecting any labels, so all detections are being thresholded out.

You can try specifying MinConfidence in your DetectCustomLabels API call to 0 to return all labels regardless of detected confidence?

AWS
EXPERT
Alex_T
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions