Run this model with HF Jobs

Run Salesforce/blip-image-captioning-large on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Salesforce/blip-image-captioning-large. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Salesforce/blip-image-captioning-large on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Incorrect format used for Image, error when trying to invoke sagemaker endpoint.

#26
by kulathilake - opened

I've deployed a serverless inference endpoint on sagemaker as follows.
image.png

I'm trying to invoke the same point as follows.
image.png

But I keep getting the following error.

botocore.errorfactory.ModelError: An error occurred (ModelError) when calling the InvokeEndpoint operation: Received client error (400) from model with message "{ "code": 400, "type": "InternalServerException", "message": "Incorrect format used for image. Should be an url linking to an image, a local path, or a PIL image." }

Is the input format in the Body correct? if not what could be causing this. the image url i'm using works fine and resolves to an image.

I am also struggling with that. Any idea?

+1

Sign up or log in to comment