MCPcopy Create free account

hub / github.com/OpenMatch/UniVL-DR / functions

Functions115 in github.com/OpenMatch/UniVL-DR

↓ 6 callersFunctionload_file
(path, txt=True, img=True)
UniVL-DR/data.py:217
↓ 6 callersFunctionload_file
(path, txt=True, img=True)
CLIP-DPR/data.py:146
↓ 3 callersFunctioncompute_metrics
Compute MRR metric Args: p_qids_to_relevant_passageids (dict): dictionary of query-passage mapping Dict as read in with load_reference
UniVL-DR/msmarco_eval.py:114
↓ 3 callersFunctioncompute_metrics
Compute MRR metric Args: p_qids_to_relevant_passageids (dict): dictionary of query-passage mapping Dict as read in with load_reference
CLIP-DPR/msmarco_eval.py:114
↓ 3 callersMethodencode_img
(self, idx)
UniVL-DR/data.py:48
↓ 3 callersFunctiongen_embeddings
(model, valid_reader, outpath)
UniVL-DR/gen_embeddings.py:150
↓ 3 callersFunctiongen_embeddings
(model, valid_reader, outpath)
CLIP-DPR/gen_embeddings.py:150
↓ 3 callersFunctionload_docs
(path)
UniVL-DR/data.py:242
↓ 3 callersFunctionload_docs
(path)
CLIP-DPR/data.py:166
↓ 2 callersFunctionconvert_to_string_id
(result_dict)
UniVL-DR/retrieval.py:20
↓ 2 callersFunctionconvert_to_string_id
(result_dict)
CLIP-DPR/retrieval.py:20
↓ 2 callersMethodencode_img
(self, idx)
CLIP-DPR/data.py:45
↓ 2 callersFunctionget_qrels
(example)
data/process_data.py:21
↓ 2 callersFunctionload_caps
(path)
UniVL-DR/data.py:251
↓ 2 callersFunctionload_caps
(path)
CLIP-DPR/data.py:175
↓ 2 callersFunctionprocess_example
(example)
data/process_data.py:7
↓ 1 callersFunctionEvalDevQuery
(query_positive_id, ctx_idxs)
UniVL-DR/retrieval.py:34
↓ 1 callersFunctionEvalDevQuery
(query_positive_id, ctx_idxs)
CLIP-DPR/retrieval.py:34
↓ 1 callersMethod_ensure_tsv_opened
(self)
UniVL-DR/visual.py:45
↓ 1 callersMethod_ensure_tsv_opened
(self)
CLIP-DPR/visual.py:45
↓ 1 callersFunction_warmup_lr
(base_lr, warmup_length, step)
UniVL-DR/gen_embeddings.py:39
↓ 1 callersFunction_warmup_lr
(base_lr, warmup_length, step)
UniVL-DR/train.py:39
↓ 1 callersFunction_warmup_lr
(base_lr, warmup_length, step)
CLIP-DPR/gen_embeddings.py:39
↓ 1 callersFunction_warmup_lr
(base_lr, warmup_length, step)
CLIP-DPR/train.py:39
↓ 1 callersFunctionassign_learning_rate
(optimizer, new_lr)
UniVL-DR/gen_embeddings.py:34
↓ 1 callersFunctionassign_learning_rate
(optimizer, new_lr)
UniVL-DR/train.py:34
↓ 1 callersFunctionassign_learning_rate
(optimizer, new_lr)
CLIP-DPR/gen_embeddings.py:34
↓ 1 callersFunctionassign_learning_rate
(optimizer, new_lr)
CLIP-DPR/train.py:34
↓ 1 callersFunctioncompute_metrics_from_files
Compute MRR metric Args: p_path_to_reference_file (str): path to reference file. Reference file should contain lines in the following
UniVL-DR/msmarco_eval.py:148
↓ 1 callersFunctioncompute_metrics_from_files
Compute MRR metric Args: p_path_to_reference_file (str): path to reference file. Reference file should contain lines in the following
CLIP-DPR/msmarco_eval.py:147
↓ 1 callersFunctionconvert_models_to_fp32
(model)
UniVL-DR/train.py:29
↓ 1 callersFunctionconvert_models_to_fp32
(model)
CLIP-DPR/train.py:29
↓ 1 callersFunctioncosine_lr
(optimizer, base_lr, warmup_length, steps)
UniVL-DR/train.py:42
↓ 1 callersFunctioncosine_lr
(optimizer, base_lr, warmup_length, steps)
CLIP-DPR/train.py:42
↓ 1 callersFunctionencode_img
(idx)
UniVL-DR/get_imgs.py:29
↓ 1 callersMethodencode_img
(self, idx)
UniVL-DR/gen_embeddings.py:75
↓ 1 callersMethodencode_img
(self, idx)
CLIP-DPR/gen_embeddings.py:75
↓ 1 callersFunctioneval_loss
(model, valid_reader)
UniVL-DR/train.py:61
↓ 1 callersFunctioneval_loss
(model, loss_function, valid_reader)
CLIP-DPR/train.py:61
↓ 1 callersFunctionload_candidate
Load candidate data from a file. Args:path_to_candidate (str): path to file to load. Returns:qid_to_ranked_candidate_passages (dict): dictiona
UniVL-DR/msmarco_eval.py:72
↓ 1 callersFunctionload_candidate
Load candidate data from a file. Args:path_to_candidate (str): path to file to load. Returns:qid_to_ranked_candidate_passages (dict): dictiona
CLIP-DPR/msmarco_eval.py:72
↓ 1 callersFunctionload_candidate_from_stream
Load candidate data from a stream. Args:f (stream): stream to load. Returns:qid_to_ranked_candidate_passages (dict): dictionary mapping from q
UniVL-DR/msmarco_eval.py:48
↓ 1 callersFunctionload_candidate_from_stream
Load candidate data from a stream. Args:f (stream): stream to load. Returns:qid_to_ranked_candidate_passages (dict): dictionary mapping from q
CLIP-DPR/msmarco_eval.py:48
↓ 1 callersFunctionload_file
(path, txt=True, img=True)
UniVL-DR/retrieval.py:118
↓ 1 callersFunctionload_file
(path, txt=True, img=True)
CLIP-DPR/retrieval.py:118
↓ 1 callersFunctionload_file
(path)
CLIP-DPR/get_hard_negs.py:20
↓ 1 callersFunctionload_file
(path)
CLIP-DPR/get_retrieval_results.py:20
↓ 1 callersFunctionload_file
(path)
CLIP-DPR/get_hard_negs_all.py:20
↓ 1 callersFunctionload_queries
(path)
UniVL-DR/gen_embeddings.py:184
↓ 1 callersFunctionload_queries
(path)
CLIP-DPR/gen_embeddings.py:184
↓ 1 callersFunctionload_reference
Load Reference reference relevant passages Args:path_to_reference (str): path to a file to load. Returns:qids_to_relevant_passageids (dict): d
UniVL-DR/msmarco_eval.py:38
↓ 1 callersFunctionload_reference
Load Reference reference relevant passages Args:path_to_reference (str): path to a file to load. Returns:qids_to_relevant_passageids (dict): d
CLIP-DPR/msmarco_eval.py:38
↓ 1 callersFunctionload_reference_from_stream
Load Reference reference relevant passages Args:f (stream): stream to load. Returns:qids_to_relevant_passageids (dict): dictionary mapping fro
UniVL-DR/msmarco_eval.py:18
↓ 1 callersFunctionload_reference_from_stream
Load Reference reference relevant passages Args:f (stream): stream to load. Returns:qids_to_relevant_passageids (dict): dictionary mapping fro
CLIP-DPR/msmarco_eval.py:18
↓ 1 callersFunctionmain
Command line: python msmarco_eval_ranking.py <path_to_reference_file> <path_to_candidate_file>
UniVL-DR/msmarco_eval.py:174
↓ 1 callersFunctionmain
Command line: python msmarco_eval_ranking.py <path_to_reference_file> <path_to_candidate_file>
CLIP-DPR/msmarco_eval.py:173
↓ 1 callersMethodnum_rows
(self)
UniVL-DR/visual.py:30
↓ 1 callersMethodnum_rows
(self)
CLIP-DPR/visual.py:30
↓ 1 callersFunctionquality_checks_qids
Perform quality checks on the dictionaries Args: p_qids_to_relevant_passageids (dict): dictionary of query-passage mapping Dict as re
UniVL-DR/msmarco_eval.py:83
↓ 1 callersFunctionquality_checks_qids
Perform quality checks on the dictionaries Args: p_qids_to_relevant_passageids (dict): dictionary of query-passage mapping Dict as re
CLIP-DPR/msmarco_eval.py:83
↓ 1 callersMethodseek
(self, pos)
UniVL-DR/visual.py:33
↓ 1 callersMethodseek
(self, pos)
CLIP-DPR/visual.py:33
↓ 1 callersFunctionset_seed
(args)
UniVL-DR/train.py:55
↓ 1 callersFunctionset_seed
(args)
CLIP-DPR/train.py:55
↓ 1 callersFunctiontrain
(train_reader, valid_reader, model)
UniVL-DR/train.py:105
↓ 1 callersFunctiontrain
(train_reader, valid_reader, model)
CLIP-DPR/train.py:102
MethodCollector
(self, batch)
UniVL-DR/gen_embeddings.py:85
MethodCollector
(self, batch)
UniVL-DR/gen_embeddings.py:125
MethodCollector
(self, batch)
UniVL-DR/data.py:58
MethodCollector
(self, batch)
CLIP-DPR/gen_embeddings.py:85
MethodCollector
(self, batch)
CLIP-DPR/gen_embeddings.py:125
MethodCollector
(self, batch)
CLIP-DPR/data.py:55
Method__del__
(self)
UniVL-DR/visual.py:20
Method__del__
(self)
CLIP-DPR/visual.py:20
Method__getitem__
(self, index)
UniVL-DR/gen_embeddings.py:102
Method__getitem__
(self, index)
UniVL-DR/gen_embeddings.py:138
Method__getitem__
(self, pos)
UniVL-DR/visual.py:38
Method__getitem__
(self, index)
UniVL-DR/data.py:136
Method__getitem__
(self, index)
CLIP-DPR/gen_embeddings.py:102
Method__getitem__
(self, index)
CLIP-DPR/gen_embeddings.py:138
Method__getitem__
(self, pos)
CLIP-DPR/visual.py:38
Method__getitem__
(self, index)
CLIP-DPR/data.py:100
Method__init__
(self, args, preprocess, captions=None)
UniVL-DR/gen_embeddings.py:55
Method__init__
(self, data, max_len)
UniVL-DR/gen_embeddings.py:115
Method__init__
(self, tsv_file, total_num)
UniVL-DR/visual.py:14
Method__init__
(self, args, preprocess_fn, data, docs, captions, shuffle)
UniVL-DR/data.py:18
Method__init__
(self, args, preprocess, captions=None)
CLIP-DPR/gen_embeddings.py:55
Method__init__
(self, data, max_len)
CLIP-DPR/gen_embeddings.py:115
Method__init__
(self, encoder)
CLIP-DPR/models.py:11
Method__init__
(self, tsv_file, total_num)
CLIP-DPR/visual.py:14
Method__init__
(self, args, preprocess_fn, data, docs, captions, shuffle)
CLIP-DPR/data.py:18
Method__len__
(self)
UniVL-DR/gen_embeddings.py:72
Method__len__
(self)
UniVL-DR/gen_embeddings.py:119
Method__len__
(self)
UniVL-DR/visual.py:41
Method__len__
(self)
UniVL-DR/data.py:44
Method__len__
(self)
CLIP-DPR/gen_embeddings.py:72
Method__len__
(self)
CLIP-DPR/gen_embeddings.py:119
Method__len__
(self)
CLIP-DPR/visual.py:41
Method__len__
(self)
CLIP-DPR/data.py:41
Method__repr__
(self)
UniVL-DR/visual.py:27
next →1–100 of 115, ranked by callers