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.

Why does it generates arafed so much ?

#20
by ideepankarsharma2003 - opened

I have been noticing that it generates arabic/urdu words too much ......., Is it because of the training set you used was biased ????

image.png

image.png

I have the same problem... it also has incorrect grammar... An image of chunks of ice in water in the sea got:
"arafed ice floess are floating in the water near the shore"
I have no clue what 'arafed' or 'floess' are..

googling 'arafed' led me to this dataset: https://huggingface.co/datasets/multimodalart/facesyntheticsspigacaptioned
Which I am assuming they might have used to train on for some weird reason?

Yeah, I believe it's primarily because of that dataset used which has a lot of "arafed" in it for whatever reason. A just made a little function to remove that word as normally it could be removed and the caption was still grammatically correct since "Arafed" is basically just prepended to the caption. You could also finetune it as well which would probably help

The dataset linked by Sof22 uses BLIP-generated captions, so I doubt that it was used for blib itself ;)

I came here looking for an answer to this so thank you all.

I keep seeing 'arafed' and 'araffe'. Contextually, in my testing at least, it seems these words should simply be the letter 'a'.

I've got a script that strips these words out and replaces them with 'a' and I no longer have any issues. I thought it was nonsense words but if you say it's Arabic/Urdu then I will believe you!

Thanks again.

β€’
This comment has been hidden

Thanks chrispie I'll give that a watch.

Sign up or log in to comment