MCPcopy Create free account

hub / github.com/SuperSupermoon/MedViLL / functions

Functions425 in github.com/SuperSupermoon/MedViLL

Method__init__
(self, config)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:432
Method__init__
(self, config)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:445
Method__init__
(self, config, bert_model_embedding_weights)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:463
Method__init__
(self, config, bert_model_embedding_weights, num_labels=2)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:509
Method__init__
(self, config, *inputs, **kwargs)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:524
Method__init__
(self, config)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:791
Method__init__
(self, config, args)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:849
Method__init__
(self, args, embeddings)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:874
Method__init__
(self, config, args, num_labels=2, len_vis_input=None, tasks='img2txt')
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:914
Method__init__
(self, config, args)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:1063
Method__init__
(self, config, args, mask_word_id=0, num_labels=2, search_beam_size=1, length_penalty=1.0, eo
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:1136
Method__init__
(self)
downstream_task/classification/utils/logger.py:7
Method__init__
(self, data_path, tokenizer, transforms, vocab, args)
downstream_task/classification/data/dataset.py:13
Method__init__
(self, emptyInit=False)
downstream_task/classification/data/vocab.py:2
Method__init__
(self, args)
downstream_task/classification/models/image.py:17
Method__init__
(self, args)
downstream_task/classification/models/image.py:75
Method__init__
(self, args)
downstream_task/classification/models/image.py:113
Method__init__
(self)
downstream_task/classification/models/image.py:153
Method__init__
(self, image_size, patch_size, dim, channels=3)
downstream_task/classification/models/image.py:184
Method__init__
(self, args, embeddings)
downstream_task/classification/models/model.py:7
Method__init__
(self, args)
downstream_task/classification/models/model.py:44
Method__init__
(self, data_path, tokenizer, transforms, args, is_train=True)
downstream_task/retrieval/retrieval.py:58
Method__init__
(self, args)
downstream_task/retrieval/image.py:7
Method__init__
(self, args)
downstream_task/retrieval/image.py:34
Method__init__
(self, image_size, patch_size, dim, channels=3)
downstream_task/retrieval/image.py:74
Method__init__
(self, args, embeddings)
downstream_task/retrieval/cxrbert_origin.py:8
Method__init__
(self, config, args)
downstream_task/retrieval/cxrbert_origin.py:32
Method__init__
(self, config, args, hidden, vocab_size)
downstream_task/retrieval/cxrbert_origin.py:105
Method__init__
(self, hidden)
downstream_task/retrieval/cxrbert_origin.py:117
Method__init__
Construct a layernorm module in the TF style (epsilon inside the square root).
downstream_task/retrieval/cxrbert_origin.py:138
Method__init__
(self, config)
downstream_task/retrieval/cxrbert_origin.py:154
Method__init__
(self, config, bert_model_embedding_weights)
downstream_task/retrieval/cxrbert_origin.py:170
Method__init__
(self, config, bert_model_embedding_weights)
downstream_task/retrieval/cxrbert_origin.py:189
Method__init__
(self, config, args)
downstream_task/retrieval/model.py:12
Method__init__
(self, args, configs)
models/image.py:7
Method__init__
(self, args, configs)
models/image.py:35
Method__init__
(self, image_size, patch_size, dim, channels=3)
models/image.py:76
Method__init__
(self, args, configs, train_dataloader, test_dataloader=None)
models/train_origin.py:18
Method__init__
(self, embeddings)
models/MedViLL_origin.py:8
Method__init__
(self, model_config, args, configs)
models/MedViLL_origin.py:28
Method__init__
(self, hidden)
models/MedViLL_origin.py:118
Method__init__
Construct a layernorm module in the TF style (epsilon inside the square root).
models/MedViLL_origin.py:139
Method__init__
(self, model_config)
models/MedViLL_origin.py:155
Method__init__
(self, model_config, bert_model_embedding_weights)
models/MedViLL_origin.py:171
Method__init__
(self, model_config, bert_model_embedding_weights)
models/MedViLL_origin.py:190
Method__init__
(self, data_path, tokenizer, transforms, args)
CNN_BERT/main_cnn_bert.py:39
Method__init__
(self)
CNN_BERT/main_cnn_bert.py:93
Method__init__
(self, config, args)
CNN_BERT/main_cnn_bert.py:106
Method__iter__
(self)
downstream_task/report_generation_and_vqa/data_loader.py:279
Method__len__
(self)
data/dataset_origin.py:51
Method__len__
(self)
downstream_task/report_generation_and_vqa/cnn_bert.py:74
Method__len__
(self)
downstream_task/report_generation_and_vqa/data_loader.py:132
Method__len__
(self)
downstream_task/report_generation_and_vqa/data_loader.py:270
Method__len__
(self)
downstream_task/report_generation_and_vqa/vqa.py:89
Method__len__
(self)
downstream_task/classification/data/dataset.py:32
Method__len__
(self)
downstream_task/retrieval/retrieval.py:78
Method__len__
(self)
CNN_BERT/main_cnn_bert.py:54
Method__repr__
(self)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:198
Method__str__
(self)
utils/utils.py:128
Method__str__
(self)
utils/utils.py:157
Method__str__
(self)
downstream_task/report_generation_and_vqa/utils.py:230
Method__str__
(self)
downstream_task/report_generation_and_vqa/utils.py:367
Method_pad_sequence
(sequences, max_len, padding_value=0)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:1468
Methodadd_meter
(self, name, meter)
utils/utils.py:177
Methodadd_meter
(self, name, meter)
downstream_task/report_generation_and_vqa/utils.py:379
Functionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]
downstream_task/report_generation_and_vqa/utils.py:278
Functionascii_print
(text)
downstream_task/report_generation_and_vqa/generation_decode.py:61
Functionascii_print
(text)
downstream_task/report_generation_and_vqa/eval_vqa.py:48
Methodavg
(self)
utils/utils.py:112
Methodavg
(self)
downstream_task/report_generation_and_vqa/utils.py:214
Methodbackward
(ctx, grad_output)
downstream_task/report_generation_and_vqa/utils.py:270
Functionbool_flag
Parse boolean arguments from the command line.
downstream_task/report_generation_and_vqa/utils.py:163
Functioncancel_gradients_last_layer
(epoch, model, freeze_last_layer)
downstream_task/report_generation_and_vqa/utils.py:114
Methodcast
r"""Make a deep copy of value, casting all tensors to device of param.
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/optimization.py:306
Functionclip_gradients
(model, clip)
downstream_task/report_generation_and_vqa/utils.py:102
Functioncollate_fn
(batch, args)
downstream_task/classification/data/helpers.py:68
Functioncompute_acc
(logits, label, reduction='mean')
utils/utils.py:233
Functioncompute_n_params
(model, return_str=True)
utils/utils.py:240
Methodcompute_score_with_logits
(logits, labels)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:1012
Methodconvert_to_type
(tensor)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:481
Functioncreate_logger
(filepath, args)
utils/logger.py:25
Functiondetokenize
(tk_list)
downstream_task/report_generation_and_vqa/eval_vqa.py:38
Methoddump_to_file
(self, path)
downstream_task/report_generation_and_vqa/data_loader.py:115
Functionfilename_to_url
Return the url and etag (which may be ``None``) stored for `filename`. Raise ``FileNotFoundError`` if `filename` or its stored metadata do
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/file_utils.py:48
Functionfind_state_dict_subset_finetune
(org_state_dict, org_name_list, no_decay, param_optimizer)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/optimization.py:350
Methodfirst_expand
(x)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:1321
Methodforward
(self, x)
downstream_task/report_generation_and_vqa/cnn_bert.py:127
Methodforward
(self, input_txt, attn_mask, segment)
downstream_task/report_generation_and_vqa/cnn_bert.py:168
Methodforward
(self, input_txt, attn_mask, segment, input_img)
downstream_task/report_generation_and_vqa/cnn_bert.py:185
Methodforward
(ctx, input)
downstream_task/report_generation_and_vqa/utils.py:242
Methodforward
(ctx, tensor)
downstream_task/report_generation_and_vqa/utils.py:259
Methodforward
(self, *inputs, **kwargs)
downstream_task/report_generation_and_vqa/data_parallel.py:100
Methodforward
output (FloatTensor): batch_size * num_pos * n_classes target (LongTensor): batch_size * num_pos
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/loss.py:35
Methodforward
(self, x)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:49
Methodforward
(self, x)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:73
Methodforward
(self, x)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:225
Methodforward
(self, input_ids, token_type_ids=None, position_ids=None, vis_feats=None, vis_pe=None,vis_input=False, len_vis
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:250
Methodforward
(self, hidden_states, attention_mask, history_states=None)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:294
Methodforward
(self, hidden_states, input_tensor)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:339
Methodforward
(self, input_tensor, attention_mask, history_states=None)
downstream_task/report_generation_and_vqa/pytorch_pretrained_bert/model.py:352
← previousnext →201–300 of 425, ranked by callers