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
↓ 42 callers
Method
load
Loads model using a combination of `transformers.AutoModelForCausalLM` along with the special `LlavaLlamaForCausalLM` class defined i
vlm_eval/models/llava.py:113
↓ 16 callers
Function
initialize_overwatch
(name: str)
vlm_eval/overwatch/overwatch.py:112
↓ 12 callers
Method
generate_answer
( self, pixel_values: torch.Tensor, questions: List[str], return_string_probabilities: Optional[List[s
vlm_eval/models/llava.py:358
↓ 9 callers
Method
decode
(self, output_ids: Union[torch.Tensor, Sequence[int]], **kwargs)
vlm_eval/util/interfaces.py:26
↓ 8 callers
Method
encode
(self, inputs: str, add_special_tokens: bool = False)
vlm_eval/util/interfaces.py:23
↓ 8 callers
Method
load
(self)
vlm_eval/util/interfaces.py:42
↓ 4 callers
Method
generate
( self, image: Image, input_text: str, do_sample: bool = True, tempera
vlm_eval/models/llava.py:411
↓ 4 callers
Function
length
(r)
vlm_eval/util/evaluation/gqa/eval.py:306
↓ 3 callers
Method
evaluate
(self)
vlm_eval/util/evaluation/vizwiz/eval.py:192
↓ 3 callers
Method
getRefIds
(self, image_ids=None, cat_ids=None, ref_ids=None, split="")
vlm_eval/util/loading/refer.py:156
↓ 3 callers
Method
get_vqa_chat_prompt_fn
Generates the full reference prompt for VQA tasks.
vlm_eval/models/llava.py:228
↓ 3 callers
Method
get_vqa_chat_prompt_fn
Generates the full reference prompt for VQA tasks.
vlm_eval/models/instructblip.py:123
↓ 3 callers
Method
get_vqa_chat_prompt_fn
Generates the full reference prompt for VQA tasks.
vlm_eval/models/prismatic.py:117
↓ 3 callers
Method
get_worker_status
(self, worker_name: str)
vlm_eval/serve/controller.py:90
↓ 3 callers
Function
load_vlm
( model_family: str, model_id: str, run_dir: Path, hf_token: Optional[str] = None, ocr: Op
vlm_eval/models/__init__.py:14
↓ 3 callers
Function
xrange
(c)
vlm_eval/util/evaluation/gqa/eval.py:302
↓ 3 callers
Function
yrange
(c)
vlm_eval/util/evaluation/gqa/eval.py:298
↓ 2 callers
Function
avg
(l)
vlm_eval/util/evaluation/gqa/eval.py:181
↓ 2 callers
Method
convert_results
TextVQA Evaluation Script expects List[{"pred_answer": str, "gt_answers": List[str] (lower, no punkt)}].
vlm_eval/tasks/harnesses/textvqa.py:288
↓ 2 callers
Function
counts2vec
r"""Function maps counts of ngram to vector of tfidf weights.
vlm_eval/util/evaluation/nocaps/metrics.py:29
↓ 2 callers
Method
create_index
Build index datastructures from loaded question and annotation files.
vlm_eval/util/evaluation/vqav2/eval.py:260
↓ 2 callers
Function
download_with_progress
Utility function for downloading files from the internet, with a handy Rich-based progress bar.
vlm_eval/tasks/download.py:24
↓ 2 callers
Method
eval_pred_list
(self, pred_list)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:285
↓ 2 callers
Function
evaluate_after_parse
(cfg, vlm=None)
scripts/evaluate.py:77
↓ 2 callers
Function
get_conv_log_filename
()
vlm_eval/serve/gradio_web_server.py:35
↓ 2 callers
Method
get_mc_prompt_fn
Generates the full reference prompt for a multiple-choice question-answer task.
vlm_eval/models/llava.py:305
↓ 2 callers
Method
get_mc_prompt_fn
Generates the full reference prompt for a multiple choice question-answering task.
vlm_eval/models/prismatic.py:176
↓ 2 callers
Function
get_model_list
()
vlm_eval/serve/gradio_web_server.py:41
↓ 2 callers
Method
get_prompt_fn
(self, dataset_family: str = "vqa-v2")
vlm_eval/models/llava.py:174
↓ 2 callers
Method
get_question_ids
Get the list of unique question IDs that satisfy given filter conditions; default behavior returns all IDs. :param image_ids: List o
vlm_eval/util/evaluation/vqav2/eval.py:268
↓ 2 callers
Method
get_queue_length
(self)
scripts/interactive_demo.py:85
↓ 2 callers
Method
get_status
(self)
scripts/interactive_demo.py:95
↓ 2 callers
Method
get_worker_address
(self, model_name: str)
vlm_eval/serve/controller.py:171
↓ 2 callers
Function
intersection
(r1, r2)
vlm_eval/util/evaluation/gqa/eval.py:316
↓ 2 callers
Function
is_metric
(key)
scripts/compute_z_scores.py:26
↓ 2 callers
Function
loadFile
(name)
vlm_eval/util/evaluation/gqa/eval.py:123
↓ 2 callers
Method
processDigitArticle
(self, inText)
vlm_eval/util/evaluation/vizwiz/eval.py:264
↓ 2 callers
Method
processPunctuation
(self, inText)
vlm_eval/util/evaluation/vizwiz/eval.py:254
↓ 2 callers
Function
process_punctuation
(text: str)
vlm_eval/util/evaluation/vqav2/eval.py:214
↓ 2 callers
Method
register_to_controller
(self)
scripts/interactive_demo.py:62
↓ 2 callers
Method
register_worker
(self, worker_name: str, check_heart_beat: bool, worker_status: dict)
vlm_eval/serve/controller.py:68
↓ 2 callers
Method
remove_worker
(self, worker_name: str)
vlm_eval/serve/controller.py:103
↓ 2 callers
Function
score_after_parse
(cfg)
scripts/score.py:59
↓ 2 callers
Method
send_heart_beat
(self)
scripts/interactive_demo.py:68
↓ 2 callers
Method
set_generate_kwargs
(self, generate_kwargs)
vlm_eval/models/llava.py:171
↓ 2 callers
Function
to_ngrams
r"""Convert a sentence into n-grams and their counts.
vlm_eval/util/evaluation/nocaps/metrics.py:18
↓ 1 callers
Method
_compute_answer_scores
compute the accuracy (soft score) of human answers
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:223
↓ 1 callers
Function
box_xywh2xyxy
(bbox_xywh: List[float], img_wh: Tuple[int, int], do_normalize: bool = True)
vlm_eval/tasks/harnesses/refcoco.py:33
↓ 1 callers
Function
box_xyxy2normalized
(bbox_xyxy: List[int], img_wh: Tuple[int, int])
vlm_eval/tasks/harnesses/ocidref.py:46
↓ 1 callers
Function
build_demo
(embed_mode)
vlm_eval/serve/gradio_web_server.py:281
↓ 1 callers
Function
build_index_datasets
Given a dataset identifier and optional list of dataset sizes, return a set of PyTorch Map-style Datasets (building metadata/index files if n
vlm_eval/tasks/builders.py:47
↓ 1 callers
Function
chiSquare
(goldDist, predictedDist)
vlm_eval/util/evaluation/gqa/eval.py:380
↓ 1 callers
Function
compute_iou
Computes IOU between two bboxes in xyxy format.
vlm_eval/tasks/harnesses/refcoco.py:305
↓ 1 callers
Function
compute_iou
Computes IOU between two bboxes in xyxy format.
vlm_eval/tasks/harnesses/ocidref.py:303
↓ 1 callers
Method
convert_results
GQA Evaluation Script expects List[{"questionId": str, "prediction": str (lower case, no punkt)}].
vlm_eval/tasks/harnesses/gqa.py:271
↓ 1 callers
Method
convert_results
VQAv2 Evaluation Script expects List[{"question_id": int, "answer": str}] (normalizes automatically).
vlm_eval/tasks/harnesses/vqav2.py:290
↓ 1 callers
Method
convert_results
(self)
vlm_eval/tasks/harnesses/pope.py:296
↓ 1 callers
Method
convert_results
(self)
vlm_eval/tasks/harnesses/vizwiz.py:292
↓ 1 callers
Method
createIndex
Create mappings: 1) Refs: {ref_id: ref} 2) Anns: {ann_id: ann} 3) Imgs: {image_i
vlm_eval/util/loading/refer.py:86
↓ 1 callers
Function
download_extract
Download all files for a given dataset (querying registry above), extracting archives if necessary.
vlm_eval/tasks/download.py:119
↓ 1 callers
Function
evaluate
(cfg: EvaluationConfig)
scripts/evaluate.py:111
↓ 1 callers
Method
evaluate
Initialize Dataloader & partition data across ranks, writing metrics to disk on termination.
vlm_eval/tasks/harnesses/gqa.py:204
↓ 1 callers
Method
evaluate
Core Evaluation --> iterates through (specified) questions, computing accuracies per split.
vlm_eval/util/evaluation/vqav2/eval.py:420
↓ 1 callers
Method
evaluate_unanswerability
(self)
vlm_eval/util/evaluation/vizwiz/eval.py:236
↓ 1 callers
Function
extract_with_progress
Utility function for extracting compressed archives, with a handy Rich-based progress bar.
vlm_eval/tasks/download.py:67
↓ 1 callers
Method
finalize_accuracies
Create readable accuracy dictionary with overall/split metrics.
vlm_eval/util/evaluation/vqav2/eval.py:458
↓ 1 callers
Method
from_str
(cls, name)
vlm_eval/serve/controller.py:33
↓ 1 callers
Method
generate_stream
(self, params)
scripts/interactive_demo.py:103
↓ 1 callers
Method
generate_stream_gate
(self, params)
scripts/interactive_demo.py:150
↓ 1 callers
Method
getMask
(self, ref: str)
vlm_eval/util/loading/refer.py:331
↓ 1 callers
Method
getRefBox
(self, ref_id)
vlm_eval/util/loading/refer.py:276
↓ 1 callers
Function
getStepsNum
(question)
vlm_eval/util/evaluation/gqa/eval.py:226
↓ 1 callers
Function
getWordsNum
(question)
vlm_eval/util/evaluation/gqa/eval.py:221
↓ 1 callers
Method
get_anls
(self, s1, s2)
vlm_eval/util/evaluation/textvqa/m4c_evaluators.py:278
↓ 1 callers
Method
get_answerable_preds
(self)
vlm_eval/util/evaluation/vizwiz/eval.py:225
↓ 1 callers
Method
get_bbox_refer_chat_prompt_fn
Generates the full reference prompt for a referring expression localization task.
vlm_eval/models/llava.py:333
↓ 1 callers
Method
get_bbox_refer_chat_prompt_fn
Generates the full reference prompt for a referring expression localization task.
vlm_eval/models/instructblip.py:158
↓ 1 callers
Method
get_bbox_refer_chat_prompt_fn
Generates the full reference prompt for a referring expression localization task.
vlm_eval/models/prismatic.py:199
↓ 1 callers
Method
get_captioning_prompt_fn
Generates the full reference prompt for captioning tasks.
vlm_eval/models/llava.py:203
↓ 1 callers
Method
get_captioning_prompt_fn
Generates the full reference prompt for captioning tasks.
vlm_eval/models/instructblip.py:114
↓ 1 callers
Method
get_captioning_prompt_fn
Generates the full reference prompt for captioning tasks.
vlm_eval/models/prismatic.py:101
↓ 1 callers
Method
get_contrast_caption_chat_prompt_fn
Generates the full reference prompt for a multi-pair contrast captioning task (e.g., WinoGround).
vlm_eval/models/llava.py:283
↓ 1 callers
Method
get_contrast_caption_chat_prompt_fn
Generates the full reference prompt for a multi-pair contrast captioning task (e.g., WinoGround).
vlm_eval/models/instructblip.py:149
↓ 1 callers
Method
get_contrast_caption_chat_prompt_fn
Generates the full reference prompt for a multi-pair contrast captioning task (e.g., WinoGround).
vlm_eval/models/prismatic.py:159
↓ 1 callers
Function
get_runid
(filepath)
scripts/compute_z_scores.py:30
↓ 1 callers
Function
get_scorer
( dataset_family: str, dataset_id: str, task_results_dir: Path, full_results: Dict[str, Dict],
vlm_eval/tasks/harnesses/__init__.py:71
↓ 1 callers
Function
get_split
(take_id: int)
vlm_eval/tasks/harnesses/ocidref.py:40
↓ 1 callers
Function
get_task_runner
( dataset_family: str, root_dir: Path, index_file: Path, task_results_dir: Path, model_id:
vlm_eval/tasks/harnesses/__init__.py:58
↓ 1 callers
Method
get_true_false_chat_prompt_fn
Generates the full reference prompt for a True/False captioning task.
vlm_eval/models/llava.py:261
↓ 1 callers
Method
get_true_false_chat_prompt_fn
Generates the full reference prompt for a True/False captioning task.
vlm_eval/models/instructblip.py:140
↓ 1 callers
Method
get_true_false_chat_prompt_fn
Generates the full reference prompt for a True/False captioning task.
vlm_eval/models/prismatic.py:143
↓ 1 callers
Method
get_worker_address_lottery
(self, model_name: str)
vlm_eval/serve/controller.py:122
↓ 1 callers
Method
get_worker_address_shortest_queue
(self, model_name: str)
vlm_eval/serve/controller.py:156
↓ 1 callers
Function
interactive_demo
(cfg: DemoConfig)
scripts/interactive_demo.py:253
↓ 1 callers
Function
intersectionSize
(c1, c2)
vlm_eval/util/evaluation/gqa/eval.py:323
↓ 1 callers
Method
list_models
(self)
vlm_eval/serve/controller.py:114
↓ 1 callers
Method
load
Loads model and processors (InstructBLIPProcessor contains Vicuna Tokenizer, Q-Former Tokenizer, and an ImageProcessor) using the HF
vlm_eval/models/instructblip.py:67
↓ 1 callers
Method
load
Load a Prismatic/Quartz Model using the default `prisma.load_pretrained_vlm` initializer.
vlm_eval/models/prismatic.py:48
↓ 1 callers
Method
loadRefs
(self, ref_ids=None)
vlm_eval/util/loading/refer.py:243
↓ 1 callers
Method
load_result_file
Create a separate VQAIndex populated from a file with predicted answers (results).
vlm_eval/util/evaluation/vqav2/eval.py:357
next →
1–100 of 337, ranked by callers