gvagenai#
Performs inference with Vision Language Models using OpenVINO™ GenAI, accepts video and text prompt as an input, and outputs text description. It can be used to generate text summarization from video.
Configuration#
Generation Config#
The generation-config
property accepts config parameters in KEY=VALUE,KEY=VALUE
format. For detailed information about these parameters, refer to the OpenVINO™ GenAI GenerationConfig documentation.
Available generation-config
keys:
Key |
Format |
---|---|
|
Integer |
|
Integer |
|
Boolean |
|
Integer |
|
Integer |
|
String (semicolon-separated), example: |
|
Boolean |
|
Integer (semicolon-separated), example: |
|
Float |
|
Float |
|
Float |
|
Integer |
|
Integer |
|
Float |
|
Float |
|
Integer |
|
Integer |
|
String, |
|
Boolean |
|
Float |
|
Float |
|
Integer |
|
Integer |
|
Float |
|
Integer |
|
Integer |
|
Boolean |
Example:
generation-config="max_new_tokens=100,temperature=0.7,do_sample=true"
Scheduler Config#
The scheduler-config
property accepts config parameters in KEY=VALUE,KEY=VALUE
format. For detailed information about these parameters, refer to the OpenVINO™ GenAI SchedulerConfig documentation.
Available scheduler-config
keys:
Key |
Format |
---|---|
|
Integer |
|
Integer |
|
Integer |
|
Boolean |
|
Boolean |
|
Integer |
|
Boolean |
|
Integer |
|
Integer |
|
Integer |
|
String, |
|
Boolean |
|
Integer |
Example:
scheduler-config="max_num_batched_tokens=256,cache_size=10,use_cache_eviction=true"
Pad Templates:
SINK template: 'sink'
Availability: Always
Capabilities:
video/x-raw
format: { (string)RGB, (string)RGBA, (string)RGBx, (string)BGR, (string)BGRA, (string)BGRx, (string)NV12, (string)I420 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
SRC template: 'src'
Availability: Always
Capabilities:
video/x-raw
format: { (string)RGB, (string)RGBA, (string)RGBx, (string)BGR, (string)BGRA, (string)BGRx, (string)NV12, (string)I420 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
Element has no clocking capabilities.
Element has no URI handling capabilities.
Pads:
SINK: 'sink'
Pad Template: 'sink'
SRC: 'src'
Pad Template: 'src'
Element Properties:
chunk-size : Number of frames in one inference
flags: readable, writable
Unsigned Integer. Range: 1 - 4294967295 Default: 1
device : Device to use (CPU, GPU, NPU, etc.)
flags: readable, writable
String. Default: "CPU"
frame-rate : Number of frames sampled per second for inference (0 = process all frames)
flags: readable, writable
Double. Range: 0 - 1.797693e+308 Default: 0
generation-config : Generation configuration as KEY=VALUE,KEY=VALUE format
flags: readable, writable
String. Default: null
metrics : Include performance metrics in JSON output
flags: readable, writable
Boolean. Default: false
model-cache-path : Path for caching compiled models (GPU only)
flags: readable, writable
String. Default: "ov_cache"
model-path : Path to the GenAI model
flags: readable, writable
String. Default: null
name : The name of the object
flags: readable, writable
String. Default: "gvagenai0"
parent : The parent of the object
flags: readable, writable
Object of type "GstObject"
prompt : Text prompt for the GenAI model
flags: readable, writable
String. Default: null
qos : Handle Quality-of-Service events
flags: readable, writable
Boolean. Default: false
scheduler-config : Scheduler configuration as KEY=VALUE,KEY=VALUE format
flags: readable, writable
String. Default: null