Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Submitted - llava-captioner.v1.1 #151

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions docs/_apps/llava-captioner/v1.1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
layout: posts
classes: wide
title: "Llava Captioner (v1.1)"
date: 2024-05-23T19:38:32+00:00
---
## About this version

- Submitter: [kelleyl](https://github.com/kelleyl)
- Submission Time: 2024-05-23T19:38:32+00:00
- Prebuilt Container Image: [ghcr.io/clamsproject/app-llava-captioner:v1.1](https://github.com/clamsproject/app-llava-captioner/pkgs/container/app-llava-captioner/v1.1)
- Release Notes

(no notes provided by the developer)

## About this app (See raw [metadata.json](metadata.json))

**Applies llava to video frames.**

- App ID: [http://apps.clams.ai/llava-captioner/v1.1](http://apps.clams.ai/llava-captioner/v1.1)
- App License: Apache 2.0
- Source Repository: [https://github.com/clamsproject/app-llava-captioner](https://github.com/clamsproject/app-llava-captioner) ([source tree of the submitted version](https://github.com/clamsproject/app-llava-captioner/tree/v1.1))


#### Inputs
(**Note**: "*" as a property value means that the property is required but can be any value.)

- [http://mmif.clams.ai/vocabulary/VideoDocument/v1](http://mmif.clams.ai/vocabulary/VideoDocument/v1) (required)
(of any properties)

- [http://mmif.clams.ai/vocabulary/TimeFrame/v5](http://mmif.clams.ai/vocabulary/TimeFrame/v5) (required)
(of any properties)



#### Configurable Parameters
(**Note**: _Multivalued_ means the parameter can have one or more values.)

- `defaultPrompt`: optional, defaults to `What is shown in this video frame?`

- Type: string
- Multivalued: False


> default prompt to use for timeframes not specified in the promptMap. If set to `-`, timeframes not specified in the promptMap will be skipped.
- `promptMap`: optional, defaults to `[]`

- Type: map
- Multivalued: True


> mapping of labels of the input timeframe annotations to new prompts. Must be formatted as "IN_LABEL:PROMPT" (with a colon). To pass multiple mappings, use this parameter multiple times. By default, any timeframe labels not mapped to a prompt will be used with the defaultprompt. In order to skip timeframes with a particular label, pass `-` as the prompt value.in order to skip all timeframes not specified in the promptMap, set the defaultPromptparameter to `-`
- `pretty`: optional, defaults to `false`

- Type: boolean
- Multivalued: False
- Choices: **_`false`_**, `true`


> The JSON body of the HTTP response will be re-formatted with 2-space indentation


#### Outputs
(**Note**: "*" as a property value means that the property is required but can be any value.)

(**Note**: Not all output annotations are always generated.)

- [http://mmif.clams.ai/vocabulary/Alignment/v1](http://mmif.clams.ai/vocabulary/Alignment/v1)
(of any properties)

- [http://mmif.clams.ai/vocabulary/TextDocument/v1](http://mmif.clams.ai/vocabulary/TextDocument/v1)
(of any properties)

50 changes: 50 additions & 0 deletions docs/_apps/llava-captioner/v1.1/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "Llava Captioner",
"description": "Applies llava to video frames.",
"app_version": "v1.1",
"mmif_version": "1.0.4",
"app_license": "Apache 2.0",
"identifier": "http://apps.clams.ai/llava-captioner/v1.1",
"url": "https://github.com/clamsproject/app-llava-captioner",
"input": [
{
"@type": "http://mmif.clams.ai/vocabulary/VideoDocument/v1",
"required": true
},
{
"@type": "http://mmif.clams.ai/vocabulary/TimeFrame/v5",
"required": true
}
],
"output": [
{
"@type": "http://mmif.clams.ai/vocabulary/Alignment/v1"
},
{
"@type": "http://mmif.clams.ai/vocabulary/TextDocument/v1"
}
],
"parameters": [
{
"name": "defaultPrompt",
"description": "default prompt to use for timeframes not specified in the promptMap. If set to `-`, timeframes not specified in the promptMap will be skipped.",
"type": "string",
"default": "What is shown in this video frame?",
"multivalued": false
},
{
"name": "promptMap",
"description": "mapping of labels of the input timeframe annotations to new prompts. Must be formatted as \"IN_LABEL:PROMPT\" (with a colon). To pass multiple mappings, use this parameter multiple times. By default, any timeframe labels not mapped to a prompt will be used with the defaultprompt. In order to skip timeframes with a particular label, pass `-` as the prompt value.in order to skip all timeframes not specified in the promptMap, set the defaultPromptparameter to `-`",
"type": "map",
"default": [],
"multivalued": true
},
{
"name": "pretty",
"description": "The JSON body of the HTTP response will be re-formatted with 2-space indentation",
"type": "boolean",
"default": false,
"multivalued": false
}
]
}
5 changes: 5 additions & 0 deletions docs/_apps/llava-captioner/v1.1/submission.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"time": "2024-05-23T19:38:32+00:00",
"submitter": "kelleyl",
"image": "ghcr.io/clamsproject/app-llava-captioner:v1.1"
}
6 changes: 5 additions & 1 deletion docs/_data/app-index.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"http://apps.clams.ai/llava-captioner": {
"description": "Applies llava to video frames.",
"latest_update": "2024-05-23T19:26:17+00:00",
"latest_update": "2024-05-23T19:38:32+00:00",
"versions": [
[
"v1.1",
"kelleyl"
],
[
"v1.0",
"kelleyl"
Expand Down
2 changes: 1 addition & 1 deletion docs/_data/apps.json

Large diffs are not rendered by default.

Loading