MCPcopy Create free account

hub / github.com/TRI-ML/vlm-evaluation / functions

Functions337 in github.com/TRI-ML/vlm-evaluation

↓ 1 callersFunctionmain
(cfg: AnalyzeEvalsConfig)
scripts/compute_z_scores.py:42
↓ 1 callersFunctionmain
(cfg: EvalRunnerConfig)
scripts/eval_runner.py:75
↓ 1 callersFunctionparse_bbox
(gen_bbox: str)
vlm_eval/tasks/harnesses/refcoco.py:292
↓ 1 callersFunctionparse_bbox
(gen_bbox: str)
vlm_eval/tasks/harnesses/ocidref.py:292
↓ 1 callersFunctionprepare
(cfg: DatasetPreparationConfig)
scripts/datasets/prepare.py:56
↓ 1 callersMethodprocess_digit_article
(self, in_text)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:196
↓ 1 callersFunctionprocess_digits_articles_contractions
(text: str)
vlm_eval/util/evaluation/vqav2/eval.py:224
↓ 1 callersMethodprocess_punctuation
(self, in_text)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:186
↓ 1 callersMethodreceive_heart_beat
(self, worker_name: str, queue_length: int)
vlm_eval/serve/controller.py:179
↓ 1 callersMethodrefresh_all_workers
(self)
vlm_eval/serve/controller.py:106
↓ 1 callersMethodremove_stable_workers_by_expiration
(self)
vlm_eval/serve/controller.py:189
↓ 1 callersFunctionrun_vqa_evaluation
(questions_json: Path, annotations_json: Path, results_json: Path)
vlm_eval/util/evaluation/vqav2/eval.py:18
↓ 1 callersFunctionscore
(cfg: ScoreConfig)
scripts/score.py:144
↓ 1 callersMethodscore
Invoke `vlm_eval.util.evaluation.gqa --> eval.py`; capture output to parse for accuracy/metrics.
vlm_eval/tasks/harnesses/gqa.py:288
↓ 1 callersMethodsetAccuracy
(self, accQA)
vlm_eval/util/evaluation/vizwiz/eval.py:279
↓ 1 callersMethodsetEvalQA
(self, img, acc)
vlm_eval/util/evaluation/vizwiz/eval.py:282
↓ 1 callersMethodshowRef
(self, ref: str, seg_box: str = "seg")
vlm_eval/util/loading/refer.py:280
↓ 1 callersFunctionsim
r"""Compute the cosine similarity of two vectors.
vlm_eval/util/evaluation/nocaps/metrics.py:47
↓ 1 callersFunctionsize
(c)
vlm_eval/util/evaluation/gqa/eval.py:312
↓ 1 callersFunctiontoScore
(b)
vlm_eval/util/evaluation/gqa/eval.py:176
↓ 1 callersMethodupdateProgress
(self, progress)
vlm_eval/util/evaluation/vizwiz/eval.py:285
↓ 1 callersMethodword_tokenize
(self, word)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:181
↓ 1 callersMethodworker_api_generate_stream
(self, params)
vlm_eval/serve/controller.py:199
↓ 1 callersMethodworker_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
← previousnext →101–200 of 337, ranked by callers