- Newest
- Most votes
- Most comments
Hello
Thank you for contacting us.
I understand that you are using the SageMaker Object Detection Algorithm for training and hosting your model and having issues while Invoking endpoint outputs empty prediction data, Please correct me If I am missing anything here.
From the Invocation script I see that you are using content-type as application/x-image, from the documentation I see that the you can Query a trained model by using the model's endpoint and The endpoint takes .jpg and .png image formats with image/jpeg and image/png as content-types.[1]
I would request you to test it out with the ContentType="image/jpeg"
and let us know if you are still facing the issue. As an alternative you can test using the sagemaker runtime API call to invoke the endpoint.[2]
endpoint_response = runtime.invoke_endpoint(EndpointName=ep, ContentType="image/jpeg", Body=b)
For more details please refer to our GitHub example[2]
If you still have difficulties, I recommend to cut a support case and provide more detail about your account information and script/config. Due to security reason, we cannot discuss account specific issue in the public posts.
Thank you
References: [1] https://docs.aws.amazon.com/sagemaker/latest/dg/object-detection-in-formats.html
Relevant content
- asked 5 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a month ago