MCPcopy Create free account

hub / github.com/SuperSupermoon/MedViLL / functions

Functions425 in github.com/SuperSupermoon/MedViLL

Methodforward
(self, hidden_states)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:366
Methodforward
(self, hidden_states, input_tensor)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:379
Methodforward
(self, hidden_states, attention_mask, history_states=None)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:393
Methodforward
(self, hidden_states, attention_mask, prev_embedding=None, prev_encoded_layers=None, output_all_encoded_layers
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:408
Methodforward
(self, hidden_states)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:437
Methodforward
(self, hidden_states)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:455
Methodforward
(self, hidden_states, task_idx=None)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:489
Methodforward
(self, sequence_output, pooled_output, task_idx=None)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:514
Methodforward
(self, vis_feats, vis_pe, input_ids, token_type_ids=None, attention_mask=None, output_all_encoded_layers=True,
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:832
Methodforward
(self, vis_feats, vis_pe, input_ids, token_type_ids, position_ids, attention_mask, prev_embedd
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:852
Methodforward
(self, input_id, input_imgs, vis_pe, token_type_ids)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:885
Methodforward
(self, img, _, input_ids, token_type_ids=None, attention_mask=None, masked_lm_labels=None, ans_labels=None, ma
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:973
Methodforward
(self, input_img, input_ids, token_type_ids, position_ids, attention_mask, prev_embedding=None
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:1107
Methodforward
(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:1157
Methodforward
(self, x)
downstream_task/classification/models/image.py:41
Methodforward
(self, x)
downstream_task/classification/models/image.py:66
Methodforward
(self, x)
downstream_task/classification/models/image.py:88
Methodforward
(self, x)
downstream_task/classification/models/image.py:120
Methodforward
(self, x)
downstream_task/classification/models/image.py:165
Methodforward
(self, img, mask=None)
downstream_task/classification/models/image.py:193
Methodforward
(self, input_imgs, token_type_ids)
downstream_task/classification/models/model.py:17
Methodforward
(self, input_txt, attention_mask, segment, input_img)
downstream_task/classification/models/model.py:60
Methodforward
(self, txt, mask, segment, img)
downstream_task/classification/models/model.py:99
Methodforward
(self, x)
downstream_task/retrieval/image.py:19
Methodforward
(self, x)
downstream_task/retrieval/image.py:41
Methodforward
(self, x)
downstream_task/retrieval/image.py:65
Methodforward
(self, img, mask=None)
downstream_task/retrieval/image.py:83
Methodforward
(self, input_imgs, img_pos, token_type_ids)
downstream_task/retrieval/cxrbert_origin.py:17
Methodforward
(self, cls_tok, input_txt, attn_mask, segment, input_img, sep_tok)
downstream_task/retrieval/cxrbert_origin.py:69
Methodforward
(self, cls_tok, input_txt, attn_mask, segment, input_img, sep_tok)
downstream_task/retrieval/cxrbert_origin.py:94
Methodforward
(self, x)
downstream_task/retrieval/cxrbert_origin.py:110
Methodforward
(self, x)
downstream_task/retrieval/cxrbert_origin.py:121
Methodforward
(self, x)
downstream_task/retrieval/cxrbert_origin.py:146
Methodforward
(self, hidden_states)
downstream_task/retrieval/cxrbert_origin.py:162
Methodforward
(self, hidden_states)
downstream_task/retrieval/cxrbert_origin.py:183
Methodforward
(self, sequence_output)
downstream_task/retrieval/cxrbert_origin.py:193
Methodforward
(self, cls_tok, input_txt, attn_mask, segment, input_img, sep_tok)
downstream_task/retrieval/model.py:27
Methodforward
(self, x)
models/image.py:20
Methodforward
(self, x)
models/image.py:43
Methodforward
(self, x)
models/image.py:67
Methodforward
(self, img, mask=None)
models/image.py:85
Methodforward
(self, input_imgs, img_pos, token_type_ids)
models/MedViLL_origin.py:16
Methodforward
(self, cls_tok, input_txt, attn_mask, segment, input_img, sep_tok)
models/MedViLL_origin.py:65
Methodforward
(self, cls_tok, input_txt, attn_mask, segment, input_img, sep_tok)
models/MedViLL_origin.py:108
Methodforward
(self, x)
models/MedViLL_origin.py:122
Methodforward
(self, x)
models/MedViLL_origin.py:147
Methodforward
(self, hidden_states)
models/MedViLL_origin.py:163
Methodforward
(self, hidden_states)
models/MedViLL_origin.py:184
Methodforward
(self, sequence_output)
models/MedViLL_origin.py:194
Methodforward
(self, x)
CNN_BERT/main_cnn_bert.py:100
Methodforward
(self, input_txt, attn_mask, segment)
CNN_BERT/main_cnn_bert.py:128
Methodforward
(self, input_txt, attn_mask, segment, input_img)
CNN_BERT/main_cnn_bert.py:142
Methodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:138
Methodgather_seq_out_by_pos
(seq, pos)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:991
Methodgather_seq_out_by_pos_average
(seq, pos, mask)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:994
Functiongelu
Implementation of the gelu activation function. For information: OpenAI GPT's gelu is slightly different (and gives slightly different results
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:101
Functiongelu
Implementation of the gelu activation function. For information: OpenAI GPT's gelu is slightly different (and gives slightly different results
downstream_task/retrieval/cxrbert_origin.py:125
Functiongelu
Implementation of the gelu activation function. For information: OpenAI GPT's gelu is slightly different (and gives slightly different results
models/MedViLL_origin.py:126
Methodget_dup_ngram_candidates
(seq, n)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:1388
Functionget_file_extension
(path: str, dot=True, lower: bool = True)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/file_utils.py:236
Functionget_glove_words
(path)
downstream_task/classification/data/helpers.py:48
Functionget_labels_and_frequencies
(path)
downstream_task/report_generation_and_vqa/report_label_eval.py:7
Methodget_lr
(self)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/optimization.py:96
Methodget_random_line
()
downstream_task/report_generation_and_vqa/data_loader.py:206
Functionget_random_word
(vocab_words)
downstream_task/report_generation_and_vqa/loader_utils.py:12
Functionget_sha
()
downstream_task/report_generation_and_vqa/utils.py:437
Functionget_world_size
()
utils/utils.py:278
Methodglobal_avg
(self)
utils/utils.py:117
Methodglobal_avg
(self)
utils/utils.py:165
Methodglobal_avg
(self)
downstream_task/report_generation_and_vqa/utils.py:219
Methodinit_bert_weights
Initialize the weights.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:535
Functionis_howmany
(q, a, label2ans)
downstream_task/report_generation_and_vqa/data_loader.py:61
Functionis_main_process
()
downstream_task/report_generation_and_vqa/utils.py:477
Functionlanguage_eval
(dataset, preds, model_id, split)
downstream_task/report_generation_and_vqa/lang_utils.py:10
Functionload_checkpoint
(model, path)
utils/utils.py:31
Methodload_from_file
(cls, path)
downstream_task/report_generation_and_vqa/data_loader.py:120
Functionload_merge_table
:param path: path to merge_table
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:414
Functionload_pretrained_weights
(model, pretrained_weights, checkpoint_key, model_name, patch_size)
downstream_task/report_generation_and_vqa/utils.py:74
Methodload_state_dict_subset_finetune
r"""Loads the optimizer state. Arguments: state_dict (dict): optimizer state. Should be an object returned fr
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/optimization.py:279
Functionload_subword_nmt_table
:param path: path to merge_table with subword-nmt format
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/tokenization.py:398
Methodlog_every
(self, iterable, print_freq, header=None)
utils/utils.py:180
Methodlog_every
(self, iterable, print_freq, header=None)
downstream_task/report_generation_and_vqa/utils.py:382
Functionlog_metrics
(set_name, metrics, args, logger)
utils/utils.py:54
Methodloss_mask_and_normalize
(loss, mask, drop_worst_ratio)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:1003
Functionmain
(args)
downstream_task/report_generation_and_vqa/cnn_bert.py:203
Methodmax
(self)
utils/utils.py:121
Methodmedian
(self)
utils/utils.py:107
Methodmedian
(self)
downstream_task/report_generation_and_vqa/utils.py:209
Methodntoken
(self)
downstream_task/report_generation_and_vqa/data_loader.py:89
Functionnumpy_seed
Context manager which seeds the NumPy PRNG with the specified seed and restores the state afterward
utils/utils.py:59
Methodpadding_idx
(self)
downstream_task/report_generation_and_vqa/data_loader.py:93
Functionread_set_from_file
Extract a de-duped collection (set) of text from a file. Expected file format is one item per line.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/file_utils.py:224
Functionreduce
(object)
downstream_task/report_generation_and_vqa/utils.py:122
Functionreduce_dict
Args: input_dict (dict): all the values will be reduced average (bool): whether to do average or sum Reduce the values in the
downstream_task/report_generation_and_vqa/utils.py:320
Functionreset_time
()
utils/logger.py:48
Functionreset_time
()
downstream_task/classification/utils/logger.py:46
Functionrestart_from_checkpoint
Re-start from checkpoint
downstream_task/report_generation_and_vqa/utils.py:128
Functions3_request
Wrapper function for s3 requests in order to create more helpful error messages.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/file_utils.py:117
Functionsave_checkpoint
(state, is_best, checkpoint_path, filename="checkpoint.pt")
utils/utils.py:25
Methodsave_init_param_group
(self, param_groups, name_groups, missing_keys)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/optimization.py:185
← previousnext →301–400 of 425, ranked by callers