alexgenovese
/
instruct-blip-v2
Captioning images with BLIP 2 Instruct
- Public
- 8 runs
Run alexgenovese/instruct-blip-v2 with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
image_url |
string
|
|
image
|
prompt |
string
|
describe the image
|
prompt
|
min_len |
integer
|
1
|
min length
|
max_len |
integer
|
250
|
max length
|
beam_size |
integer
|
5
|
beam size
|
len_penalty |
number
|
1
|
length penalty
|
repetition_penalty |
number
|
2
|
repetition penalty
|
top_p |
number
|
0.9
|
top p
|
{
"type": "object",
"title": "Input",
"properties": {
"top_p": {
"type": "number",
"title": "Top P",
"default": 0.9,
"x-order": 7,
"description": "top p"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "describe the image",
"x-order": 1,
"description": "prompt"
},
"max_len": {
"type": "integer",
"title": "Max Len",
"default": 250,
"x-order": 3,
"description": "max length"
},
"min_len": {
"type": "integer",
"title": "Min Len",
"default": 1,
"x-order": 2,
"description": "min length"
},
"beam_size": {
"type": "integer",
"title": "Beam Size",
"default": 5,
"x-order": 4,
"description": "beam size"
},
"image_url": {
"type": "string",
"title": "Image Url",
"default": "",
"x-order": 0,
"description": "image"
},
"len_penalty": {
"type": "number",
"title": "Len Penalty",
"default": 1,
"x-order": 5,
"description": "length penalty"
},
"repetition_penalty": {
"type": "number",
"title": "Repetition Penalty",
"default": 2,
"x-order": 6,
"description": "repetition penalty"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output"
}