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.

Image captioning using image url only without blob?

#23
by nappystock - opened

Hi!, how can I use image captioning when I only have image url? the constraint is:

  1. no need to open/read an image (ie. no with open("/content/demo.jpg", "rb") as image_file...)
  2. and using curl.

here's what I did (this works because it's an image blob):

curl https://api-inference.huggingface.co/models/Salesforce/blip-image-captioning-large \
        -X POST \
        --data-binary '@pilates.jpg' \
        -H "Authorization: Bearer ${HF_API_TOKEN}"
# [{"generated_text": "there is a man doing a handstand on a rock in the woods"}]

But, is there any way to do a request where I only have image url?

Sign up or log in to comment