MCPcopy Create free account

hub / github.com/SuperSupermoon/MedViLL / functions

Functions425 in github.com/SuperSupermoon/MedViLL

↓ 115 callersFunctionprint
(*args, **kwargs)
downstream_task/report_generation_and_vqa/finetune.py:55
↓ 64 callersMethodformat
(self, record)
downstream_task/classification/utils/logger.py:10
↓ 52 callersMethodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file or a pytorch state dict. Download and cache the pre-trained model fil
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:550
↓ 30 callersMethodload
(module, prefix='')
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:736
↓ 23 callersFunctionprint
(*args, **kwargs)
utils/utils.py:262
↓ 21 callersMethod__init__
(self, config)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:387
↓ 10 callersMethodformat
(self, record)
utils/logger.py:13
↓ 8 callersMethod__init__
(self, config, args)
downstream_task/retrieval/cxrbert_origin.py:87
↓ 7 callersMethod__init__
(self, model_config, args, configs)
models/MedViLL_origin.py:102
↓ 7 callersMethodsave
(self, epoch, file_path)
models/train_origin.py:173
↓ 6 callersMethodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/optimization.py:112
↓ 5 callersMethod__init__
(self, args)
downstream_task/classification/models/image.py:60
↓ 5 callersMethodbackward
(ctx, *grads)
downstream_task/report_generation_and_vqa/utils.py:250
↓ 5 callersMethodconvert_tokens_to_ids
Converts a sequence of tokens into ids using the vocab.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:113
↓ 5 callersMethodmax
(self)
downstream_task/report_generation_and_vqa/utils.py:223
↓ 5 callersMethodtrain
(self, epoch)
models/train_origin.py:52
↓ 4 callersFunction_create_entry
(img, data, answer)
downstream_task/report_generation_and_vqa/utils.py:56
↓ 4 callersFunction_create_entry
(img, data, answer)
downstream_task/report_generation_and_vqa/data_loader.py:147
↓ 4 callersMethodadd
(self, words)
downstream_task/classification/data/vocab.py:13
↓ 4 callersMethodtokenize
(self, sentence, add_word)
downstream_task/report_generation_and_vqa/data_loader.py:96
↓ 4 callersMethodupdate
(self, **kwargs)
downstream_task/report_generation_and_vqa/utils.py:352
↓ 4 callersFunctionwhitespace_tokenize
Runs basic whitespace cleaning and splitting on a peice of text.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:80
↓ 3 callersMethod__init__
(self, word2idx=None, idx2word=None)
downstream_task/report_generation_and_vqa/data_loader.py:80
↓ 3 callersMethod__init__
(self)
downstream_task/retrieval/image.py:57
↓ 3 callersMethod__init__
(self)
models/image.py:59
↓ 3 callersFunction_run
(command)
downstream_task/report_generation_and_vqa/utils.py:440
↓ 3 callersMethoddata_processing
(self, origin_txt, img_path)
downstream_task/retrieval/retrieval.py:133
↓ 3 callersFunctionis_dist_avail_and_initialized
()
utils/utils.py:270
↓ 3 callersFunctionis_dist_avail_and_initialized
()
downstream_task/report_generation_and_vqa/utils.py:457
↓ 3 callersMethodtranspose_for_scores
(self, x)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:288
↓ 2 callersMethod__init__
(self, config, args)
downstream_task/report_generation_and_vqa/cnn_bert.py:176
↓ 2 callersMethod__init__
(self, args)
downstream_task/classification/models/model.py:93
↓ 2 callersMethod__init__
(self, config, args)
CNN_BERT/main_cnn_bert.py:135
↓ 2 callersFunctionbatch_list_to_batch_tensors
(batch)
downstream_task/report_generation_and_vqa/loader_utils.py:17
↓ 2 callersFunctioncached_path
Given something that might be a URL (or might be a local path), determine which. If it's a URL, download the file and cache it, and re
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/file_utils.py:74
↓ 2 callersFunctioncompute_mrr
(ranks)
downstream_task/retrieval/retrieval.py:251
↓ 2 callersFunctioncompute_score_with_logits
(logits, labels)
downstream_task/report_generation_and_vqa/utils.py:49
↓ 2 callersFunctionevaluate
(args, test_results, test_labels, idx_lst)
downstream_task/retrieval/retrieval.py:261
↓ 2 callersFunctionget_criterion
(args, device)
downstream_task/classification/cls.py:82
↓ 2 callersFunctionget_data_loaders
(args)
downstream_task/classification/data/helpers.py:95
↓ 2 callersMethodget_extended_attention_mask
(self, input_ids, token_type_ids, attention_mask)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:799
↓ 2 callersFunctionget_model
(args)
downstream_task/classification/models/__init__.py:8
↓ 2 callersFunctionget_transforms
(args)
downstream_task/report_generation_and_vqa/utils.py:27
↓ 2 callersFunctionget_world_size
()
downstream_task/report_generation_and_vqa/utils.py:465
↓ 2 callersFunctionlanguage_eval_bleu
(model_recover_path, eval_model, preds)
downstream_task/report_generation_and_vqa/bleu.py:180
↓ 2 callersFunctionmodel_eval
(data, model, args, criterion, device, store_preds=False)
downstream_task/classification/cls.py:120
↓ 2 callersFunctionmodel_forward
(model, args, criterion, batch, device)
downstream_task/classification/cls.py:170
↓ 2 callersFunctionscatter_imbalance
r""" Slices tensors into approximately equal chunks and distributes them across given GPUs. Duplicates references to objects that are not
downstream_task/report_generation_and_vqa/data_parallel.py:8
↓ 2 callersFunctionset_seed
(seed)
downstream_task/report_generation_and_vqa/utils.py:33
↓ 2 callersFunctionset_seed
(seed)
downstream_task/classification/utils/utils.py:10
↓ 2 callersFunctionsplit_s3_path
Split a full s3 path into the bucket name and path.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/file_utils.py:104
↓ 2 callersFunctiontest
(args, model, eval_dataset)
downstream_task/retrieval/retrieval.py:377
↓ 2 callersMethodto_json_string
Serializes this instance to a JSON string.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:206
↓ 2 callersFunctiontruncate_txt
(txt_tokens, max_seq_len)
downstream_task/report_generation_and_vqa/utils.py:42
↓ 2 callersMethodupdate
(self, value, n=1)
utils/utils.py:88
↓ 2 callersMethodupdate
(self, value, n=1)
downstream_task/report_generation_and_vqa/utils.py:190
↓ 2 callersMethodvalue
(self)
downstream_task/report_generation_and_vqa/utils.py:227
↓ 2 callersFunctionvqa_eval
(args, device, logger, bi_uni_pipeline, tokenizer, model, results_dict)
downstream_task/report_generation_and_vqa/finetune.py:477
↓ 1 callersMethod__getitem__
(self, idx)
downstream_task/report_generation_and_vqa/data_loader.py:273
↓ 1 callersMethod__init__
(self, params, lr=required, warmup=-1, t_total=-1, schedule='warmup_linear', b1=0.9, b2=0.999, e=1e-6, weight_
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/optimization.py:73
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:282
↓ 1 callersFunction_filter_group
(group, g_np_list, i, org_n2id)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/optimization.py:389
↓ 1 callersFunction_get_max_epoch_model
(output_dir)
downstream_task/report_generation_and_vqa/finetune.py:37
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:260
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:370
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:382
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:358
↓ 1 callersFunction_load_dataset
Load entries img_id2val: dict {img_id -> val} val can be used to retrieve image or features dataroot: root path of dataset name: 'train',
downstream_task/report_generation_and_vqa/data_loader.py:164
↓ 1 callersFunction_load_dataset
Load entries img_id2val: dict {img_id -> val} val can be used to retrieve image or features dataroot: root path of dataset name: 'train',
downstream_task/report_generation_and_vqa/vqa.py:23
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:225
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:214
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:247
↓ 1 callersMethodadd_word
(self, word)
downstream_task/report_generation_and_vqa/data_loader.py:126
↓ 1 callersFunctionanswer_filter
(answers, label2ans, max_num=10)
downstream_task/report_generation_and_vqa/data_loader.py:73
↓ 1 callersFunctionbatch_list_to_batch_tensors
(batch)
downstream_task/report_generation_and_vqa/generation_decode.py:42
↓ 1 callersMethodbeam_search
(self, vis_feats, input_ids, token_type_ids, position_ids, attention_mask, gt_token, device, task_idx=None)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:1238
↓ 1 callersFunctioncli_main
()
downstream_task/classification/cls.py:342
↓ 1 callersFunctioncompute_ranks
(args, results, labels, idx_lst)
downstream_task/retrieval/retrieval.py:189
↓ 1 callersFunctioncompute_recall_precision
(args, results, labels, idx_lst)
downstream_task/retrieval/retrieval.py:216
↓ 1 callersMethodconvert_ids_to_tokens
Converts a sequence of ids in wordpiece tokens using the vocab.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:130
↓ 1 callersFunctioncreate_dataset
(tokenizer, config, args)
data/dataset_origin.py:196
↓ 1 callersFunctioncreate_loader
(datasets, samplers, batch_size, is_trains, num_workers=0)
data/dataset_origin.py:222
↓ 1 callersFunctioncreate_logger
(filepath, args)
downstream_task/classification/utils/logger.py:23
↓ 1 callersFunctioncreate_sampler
(datasets, shuffles, num_gpus, global_rank)
data/dataset_origin.py:214
↓ 1 callersMethoddata_processing
(self, tokens, img_path)
downstream_task/report_generation_and_vqa/vqa.py:123
↓ 1 callersFunctiondetokenize
(tk_list)
downstream_task/report_generation_and_vqa/generation_decode.py:51
↓ 1 callersFunctioneval
(args, eval_dataset, model, tokenizer)
downstream_task/report_generation_and_vqa/vqa.py:185
↓ 1 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:184
↓ 1 callersMethodfrom_json_file
Constructs a `BertConfig` from a json file of parameters.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:192
↓ 1 callersFunctionget_args
(parser)
downstream_task/classification/cls.py:16
↓ 1 callersMethodget_extended_attention_mask
(self, input_ids, token_type_ids, attention_mask)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:952
↓ 1 callersMethodget_extended_attention_mask
(self, input_ids, token_type_ids, attention_mask)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:1086
↓ 1 callersMethodget_extended_attn_mask
(self, attn_mask)
downstream_task/report_generation_and_vqa/cnn_bert.py:156
↓ 1 callersMethodget_extended_attn_mask
(self, attn_mask)
downstream_task/retrieval/cxrbert_origin.py:58
↓ 1 callersMethodget_extended_attn_mask
(self, attn_mask)
models/MedViLL_origin.py:54
↓ 1 callersMethodget_extended_attn_mask
(self, attn_mask)
CNN_BERT/main_cnn_bert.py:116
↓ 1 callersFunctionget_from_cache
Given a URL, look for the corresponding dataset in the local cache. If it's not there, download it. Then return the path to the cached file
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/file_utils.py:165
↓ 1 callersFunctionget_label_accuracy
(hypothesis, reference)
downstream_task/report_generation_and_vqa/report_label_eval.py:21
↓ 1 callersFunctionget_label_accuracy
(df_hyp, df_ref)
downstream_task/report_generation_and_vqa/bleu.py:78
↓ 1 callersFunctionget_labels_and_frequencies
(path)
downstream_task/classification/data/helpers.py:32
next →1–100 of 425, ranked by callers