class VideoScore
Bases: BaseMetric
Source code in aigve/metrics/aigve/videoscore/videoscore_metric.py
__init__(collect_device=None, prefix=None, metric_path=None, model_path='TIGER-Lab/VideoScore-v1.1', datainfo_path=None, test_index=None, **kwargs)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
collect_device
|
Optional[Union[str, device]]
|
The device to collect the data on. |
None
|
prefix
|
Optional[str]
|
The prefix to use for the metric. |
None
|
metric_path
|
str
|
The path to the metric file. |
None
|
model_path
|
str
|
The path to the model file. |
'TIGER-Lab/VideoScore-v1.1'
|
datainfo_path
|
str
|
The path to the datainfo file. |
None
|
test_index
|
int
|
The index of the test data. |
None
|
Source code in aigve/metrics/aigve/videoscore/videoscore_metric.py
compute_metrics(results)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
results
|
list
|
The results to compute the metrics from. |
required |
Source code in aigve/metrics/aigve/videoscore/videoscore_metric.py
process(data_batch, data_samples)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
data_batch
|
Any
|
The data batch to process. |
required |
data_samples
|
Sequence[dict]
|
The data samples to process. |
required |