Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TRI-ML/vlm-evaluation
/ functions
Functions
337 in github.com/TRI-ML/vlm-evaluation
⨍
Functions
337
◇
Types & classes
99
↳
Endpoints
9
↓ 1 callers
Function
main
(cfg: AnalyzeEvalsConfig)
scripts/compute_z_scores.py:42
↓ 1 callers
Function
main
(cfg: EvalRunnerConfig)
scripts/eval_runner.py:75
↓ 1 callers
Function
parse_bbox
(gen_bbox: str)
vlm_eval/tasks/harnesses/refcoco.py:292
↓ 1 callers
Function
parse_bbox
(gen_bbox: str)
vlm_eval/tasks/harnesses/ocidref.py:292
↓ 1 callers
Function
prepare
(cfg: DatasetPreparationConfig)
scripts/datasets/prepare.py:56
↓ 1 callers
Method
process_digit_article
(self, in_text)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:196
↓ 1 callers
Function
process_digits_articles_contractions
(text: str)
vlm_eval/util/evaluation/vqav2/eval.py:224
↓ 1 callers
Method
process_punctuation
(self, in_text)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:186
↓ 1 callers
Method
receive_heart_beat
(self, worker_name: str, queue_length: int)
vlm_eval/serve/controller.py:179
↓ 1 callers
Method
refresh_all_workers
(self)
vlm_eval/serve/controller.py:106
↓ 1 callers
Method
remove_stable_workers_by_expiration
(self)
vlm_eval/serve/controller.py:189
↓ 1 callers
Function
run_vqa_evaluation
(questions_json: Path, annotations_json: Path, results_json: Path)
vlm_eval/util/evaluation/vqav2/eval.py:18
↓ 1 callers
Function
score
(cfg: ScoreConfig)
scripts/score.py:144
↓ 1 callers
Method
score
Invoke `vlm_eval.util.evaluation.gqa --> eval.py`; capture output to parse for accuracy/metrics.
vlm_eval/tasks/harnesses/gqa.py:288
↓ 1 callers
Method
setAccuracy
(self, accQA)
vlm_eval/util/evaluation/vizwiz/eval.py:279
↓ 1 callers
Method
setEvalQA
(self, img, acc)
vlm_eval/util/evaluation/vizwiz/eval.py:282
↓ 1 callers
Method
showRef
(self, ref: str, seg_box: str = "seg")
vlm_eval/util/loading/refer.py:280
↓ 1 callers
Function
sim
r"""Compute the cosine similarity of two vectors.
vlm_eval/util/evaluation/nocaps/metrics.py:47
↓ 1 callers
Function
size
(c)
vlm_eval/util/evaluation/gqa/eval.py:312
↓ 1 callers
Function
toScore
(b)
vlm_eval/util/evaluation/gqa/eval.py:176
↓ 1 callers
Method
updateProgress
(self, progress)
vlm_eval/util/evaluation/vizwiz/eval.py:285
↓ 1 callers
Method
word_tokenize
(self, word)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:181
↓ 1 callers
Method
worker_api_generate_stream
(self, params)
vlm_eval/serve/controller.py:199
↓ 1 callers
Method
worker_api_get_status
(self)
vlm_eval/serve/controller.py:224
Method
__call__
Given a PIL.Image, pad to square by adding a symmetric border around the height/width.
vlm_eval/models/llava.py:45
Method
__call__
(self, img: Image, **kwargs: str)
vlm_eval/models/llava.py:60
Method
__call__
(self, text: Union[str, Sequence[str]], return_tensors: str = "pt", **kwargs)
vlm_eval/util/interfaces.py:20
Method
__call__
(self, img: Image, **kwargs)
vlm_eval/util/interfaces.py:34
Method
__call__
(self, item)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:211
Method
__getitem__
Return (question_id: int, question: str, img_path: Path, answer: str) for an example.
vlm_eval/tasks/harnesses/gqa.py:124
Method
__getitem__
Return (question_id: int, question_prompt: str, pixel_values: torch.Tensor, question: str, answer: str).
vlm_eval/tasks/harnesses/gqa.py:154
Method
__getitem__
Return (example_id: int, caption: str, img_path: Path, true_false: bool) for an example.
vlm_eval/tasks/harnesses/vsr.py:106
Method
__getitem__
Return (example_id: int, caption_prompt: str, pixel_values: torch.Tensor, caption: str, true_false: bool).
vlm_eval/tasks/harnesses/vsr.py:136
Method
__getitem__
Return (question_id: int, question: str, img_path: Path, answer: int) for an example.
vlm_eval/tasks/harnesses/ai2d.py:139
Method
__getitem__
Return (qid: int, qprompt: str, pixel_values: torch.Tensor, question: str, answer: int).
vlm_eval/tasks/harnesses/ai2d.py:169
Method
__getitem__
Return (example_id: int, ref_expression: str, img_path: Path, bbox: List[float]) for an example.
vlm_eval/tasks/harnesses/refcoco.py:163
Method
__getitem__
Return (example_id: int, ref_expr_prompt: str, pixel_values: Tensor, ref_expr: str, bbox: List[float]).
vlm_eval/tasks/harnesses/refcoco.py:193
Method
__getitem__
Return (question_id: int, question: str, img_path: Path, answer: int) for an example.
vlm_eval/tasks/harnesses/tallyqa.py:123
Method
__getitem__
Return (qid: int, qprompt: str, pixel_values: torch.Tensor, question: str, answer: int).
vlm_eval/tasks/harnesses/tallyqa.py:153
Method
__getitem__
Return (question_id: int, question: int, img_path: Path, answer: str) for an example.
vlm_eval/tasks/harnesses/textvqa.py:132
Method
__getitem__
Return (qid: int, qprompt_ocr: str, qprompt_no_ocr: str, pixel_values: torch.Tensor, q: str, ans: str).
vlm_eval/tasks/harnesses/textvqa.py:162
Method
__getitem__
Return (question_id: int, question: int, img_path: Path, answer: str) for an example.
vlm_eval/tasks/harnesses/vqav2.py:142
Method
__getitem__
Return (question_id: int, question_prompt: str, pixel_values: torch.Tensor, question: str, answer: str).
vlm_eval/tasks/harnesses/vqav2.py:172
Method
__getitem__
Return (question_id: int, question: int, img_path: Path, answer: str) for an example.
vlm_eval/tasks/harnesses/pope.py:135
Method
__getitem__
Return (question_id: int, question_prompt: str, pixel_values: torch.Tensor, question: str, answer: str).
vlm_eval/tasks/harnesses/pope.py:165
Method
__getitem__
Return (question_id: int, question: int, img_path: Path, answer: str) for an example.
vlm_eval/tasks/harnesses/vizwiz.py:128
Method
__getitem__
Return (question_id: int, question_prompt: str, pixel_values: torch.Tensor, question: str, answer: str).
vlm_eval/tasks/harnesses/vizwiz.py:164
Method
__getitem__
Return (example_id: int, ref_expression: str, img_path: Path, bbox: List[float]) for an example.
vlm_eval/tasks/harnesses/ocidref.py:160
Method
__getitem__
Return (example_id: int, ref_expr_prompt: str, pixel_values: Tensor, ref_expr: str, bbox: List[float]).
vlm_eval/tasks/harnesses/ocidref.py:190
Method
__init__
(self, dispatch_method: str)
vlm_eval/serve/controller.py:58
Method
__init__
Initializer for an Overwatch object that wraps logging & `accelerate.PartialState`.
vlm_eval/overwatch/overwatch.py:46
Method
__init__
Initializer for an Overwatch object that just wraps logging.
vlm_eval/overwatch/overwatch.py:78
Method
__init__
Constructs a lightweight PyTorch Dataset that loads from an index file and just returns metadata.
vlm_eval/tasks/harnesses/gqa.py:116
Method
__init__
Constructs a fully-fledged PyTorch Map-Style Dataset for evaluating on splits of the GQA Test-Dev Set. In addition to the path to the
vlm_eval/tasks/harnesses/gqa.py:135
Method
__init__
Task Runner for the GQA Dataset; loads data, then runs (distributed) VLM evaluation and writes results.
vlm_eval/tasks/harnesses/gqa.py:176
Method
__init__
Wrapper around the official GQA evaluation script; handles converting results to/from GQA format.
vlm_eval/tasks/harnesses/gqa.py:254
Method
__init__
Constructs a lightweight PyTorch Dataset that loads from an index file and just returns metadata.
vlm_eval/tasks/harnesses/vsr.py:98
Method
__init__
Constructs a fully-fledged PyTorch Map-Style Dataset for evaluating on splits of the VSR Zero-Shot Test Set. In addition to the path
vlm_eval/tasks/harnesses/vsr.py:117
Method
__init__
Task Runner for the VSR Dataset; loads data, then runs (distributed) VLM evaluation and writes results.
vlm_eval/tasks/harnesses/vsr.py:158
Method
__init__
Computes exact-match True/False accuracy.
vlm_eval/tasks/harnesses/vsr.py:240
Method
__init__
Constructs a lightweight Pytorch Dataset that loads from an index file and just returns metadata.
vlm_eval/tasks/harnesses/ai2d.py:131
Method
__init__
Constructs a fully-fledged PyTorch Map-Style Dataset for evaluating on splits of the AI2D Test Set. In addition to the path to the da
vlm_eval/tasks/harnesses/ai2d.py:150
Method
__init__
Task Runner for the AI2D Dataset; loads data then runs (distributed) VLM evaluation and writes results.
vlm_eval/tasks/harnesses/ai2d.py:191
Method
__init__
Computes exact-match multiple choice accuracy.
vlm_eval/tasks/harnesses/ai2d.py:276
Method
__init__
Constructs a lightweight PyTorch Dataset that loads from an index file and just returns metadata.
vlm_eval/tasks/harnesses/refcoco.py:155
Method
__init__
Constructs a fully-fledged PyTorch Map-Style Dataset for evaluating on splits of the RefCOCO Validation Sets. In addition to the path
vlm_eval/tasks/harnesses/refcoco.py:174
Method
__init__
Task Runner for the RefCOCO Dataset; loads data, then runs (distributed) VLM evaluation & writes results.
vlm_eval/tasks/harnesses/refcoco.py:215
Method
__init__
Computes Acc @ 0.5 IOU --> standard RefCOCO / RefCOCO+ / RefCOCOg metric.
vlm_eval/tasks/harnesses/refcoco.py:325
Method
__init__
Constructs a lightweight Pytorch Dataset that loads from an index file and just returns metadata.
vlm_eval/tasks/harnesses/tallyqa.py:115
Method
__init__
Constructs a fully-fledged PyTorch Map-Style Dataset for evaluating on splits of the TallyQA Test Set. In addition to the path to the
vlm_eval/tasks/harnesses/tallyqa.py:134
Method
__init__
Task Runner for the TallyQA Dataset; loads data then runs (distributed) VLM evaluation and writes results.
vlm_eval/tasks/harnesses/tallyqa.py:175
Method
__init__
Computes exact-match multiple choice accuracy.
vlm_eval/tasks/harnesses/tallyqa.py:260
Method
__init__
Constructs a lightweight PyTorch Dataset that loads from an index file and just returns metadata.
vlm_eval/tasks/harnesses/textvqa.py:124
Method
__init__
Constructs a fully-fledged PyTorch Map-Style Dataset for evaluating on splits of the Text VQA Validation Set. In addition to the path
vlm_eval/tasks/harnesses/textvqa.py:143
Method
__init__
Task Runner for the Text VQA Dataset; loads data, then runs (distributed) VLM evaluation and writes results.
vlm_eval/tasks/harnesses/textvqa.py:186
Method
__init__
Wrapper around the official Text VQA evaluation script; handles converting results to/from Text VQA format.
vlm_eval/tasks/harnesses/textvqa.py:270
Method
__init__
Constructs a lightweight PyTorch Dataset that loads from an index file and just returns metadata.
vlm_eval/tasks/harnesses/vqav2.py:134
Method
__init__
Constructs a fully-fledged PyTorch Map-Style Dataset for evaluating on splits of the VQAv2 Validation Set. In addition to the path to
vlm_eval/tasks/harnesses/vqav2.py:153
Method
__init__
Task Runner for the VQAv2 Dataset; loads data, then runs (distributed) VLM evaluation and writes results.
vlm_eval/tasks/harnesses/vqav2.py:195
Method
__init__
Wrapper around the official VQAv2 evaluation script; handles converting results to/from VQAv2 format.
vlm_eval/tasks/harnesses/vqav2.py:273
Method
__init__
Constructs a lightweight PyTorch Dataset that loads from an index file and just returns metadata.
vlm_eval/tasks/harnesses/pope.py:127
Method
__init__
Constructs a fully-fledged PyTorch Map-Style Dataset for evaluating on splits of the Pope Val Set. In addition to the path to the dat
vlm_eval/tasks/harnesses/pope.py:146
Method
__init__
Task Runner for the Pope Dataset; loads data, then runs (distributed) VLM evaluation and writes results.
vlm_eval/tasks/harnesses/pope.py:193
Method
__init__
Wrapper around the official Pope evaluation script; handles converting results to/from Pope format.
vlm_eval/tasks/harnesses/pope.py:275
Method
__init__
Constructs a lightweight PyTorch Dataset that loads from an index file and just returns metadata.
vlm_eval/tasks/harnesses/vizwiz.py:120
Method
__init__
Constructs a fully-fledged PyTorch Map-Style Dataset for evaluating on splits of the VizWiz Val Set. In addition to the path to the d
vlm_eval/tasks/harnesses/vizwiz.py:145
Method
__init__
Task Runner for the VizWiz Dataset; loads data, then runs (distributed) VLM evaluation and writes results.
vlm_eval/tasks/harnesses/vizwiz.py:193
Method
__init__
Wrapper around the official VizWiz evaluation script; handles converting results to/from VizWiz format.
vlm_eval/tasks/harnesses/vizwiz.py:275
Method
__init__
Constructs a lightweight PyTorch Dataset that loads from an index file and just returns metadata.
vlm_eval/tasks/harnesses/ocidref.py:152
Method
__init__
Constructs a fully-fledged PyTorch Map-Style Dataset for evaluating on splits of the OCID-Ref Validation Sets. In addition to the pat
vlm_eval/tasks/harnesses/ocidref.py:171
Method
__init__
Task Runner for the OCID-Ref Dataset; loads data, then runs (distributed) VLM evaluation & writes results.
vlm_eval/tasks/harnesses/ocidref.py:212
Method
__init__
Computes Acc @ 0.25 IOU --> standard metric for OCID-Ref splits (Min/Med/Max Clutter).
vlm_eval/tasks/harnesses/ocidref.py:323
Method
__init__
( self, model_family: str, model_id: str, run_dir: Path, load_precisio
vlm_eval/models/llava.py:66
Method
__init__
( self, model_family: str, model_id: str, run_dir: Path, load_precisio
vlm_eval/models/instructblip.py:22
Method
__init__
( self, model_family: str, model_id: str, run_dir: Path, hf_token: str
vlm_eval/models/prismatic.py:20
Method
__init__
Provide `data_root` folder which contains `refclef`, `refcoco`, `refcoco+`, and `refcocog`. Additionally provide `dataset` name and `
vlm_eval/util/loading/refer.py:54
Method
__init__
(self, *args, **kwargs)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:178
Method
__init__
(self)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:220
Method
__init__
(self)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:257
Method
__init__
(self)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:273
← previous
next →
101–200 of 337, ranked by callers