MCPcopy Create free account

hub / github.com/YehLi/xmodaler / functions

Functions909 in github.com/YehLi/xmodaler

↓ 1 callersFunctionbuild_decoder
(cfg)
xmodaler/modeling/decoder/build.py:13
↓ 1 callersFunctionbuild_engine
(cfg)
xmodaler/engine/build.py:13
↓ 1 callersFunctionbuild_greedy_decoder
(cfg)
xmodaler/modeling/decode_strategy/build.py:17
↓ 1 callersMethodbuild_hooks
(self)
xmodaler/engine/defaults.py:306
↓ 1 callersFunctionbuild_losses
(cfg)
xmodaler/losses/build.py:13
↓ 1 callersMethodbuild_losses
(cls, cfg)
xmodaler/engine/defaults.py:436
↓ 1 callersFunctionbuild_lr_scheduler
(cfg, optimizer, data_size)
xmodaler/lr_scheduler/build.py:13
↓ 1 callersMethodbuild_lr_scheduler
(cls, cfg, optimizer, iters_per_epoch)
xmodaler/engine/defaults.py:420
↓ 1 callersFunctionbuild_model
Build the whole model architecture, defined by ``cfg.MODEL.META_ARCHITECTURE``. Note that it does not load any weights from ``cfg``.
xmodaler/modeling/meta_arch/build.py:16
↓ 1 callersMethodbuild_model
(cls, cfg)
xmodaler/engine/defaults.py:409
↓ 1 callersFunctionbuild_optimizer
Build an optimizer from config.
xmodaler/optim/build.py:169
↓ 1 callersMethodbuild_optimizer
(cls, cfg, model)
xmodaler/engine/defaults.py:416
↓ 1 callersFunctionbuild_position_encoding
(cfg, dim, max_len)
xmodaler/modeling/embedding/position_embedding.py:19
↓ 1 callersMethodbuild_scorer
(cls, cfg)
xmodaler/engine/rl_beam_trainer.py:24
↓ 1 callersMethodbuild_scorer
(cls, cfg)
xmodaler/engine/rl_mean_trainer.py:26
↓ 1 callersMethodbuild_scorer
(cls, cfg)
xmodaler/engine/rl_trainer.py:26
↓ 1 callersMethodbuild_test_loader
(cls, cfg)
xmodaler/engine/defaults.py:428
↓ 1 callersMethodbuild_train_loader
(cls, cfg)
xmodaler/engine/defaults.py:424
↓ 1 callersMethodbuild_val_loader
(cls, cfg)
xmodaler/engine/defaults.py:432
↓ 1 callersFunctionbuild_vid_split_mapping
(videos)
tools/msrvtt_preprocess.py:192
↓ 1 callersFunctionbuild_vocab
(sentences, vid2split, params)
tools/msrvtt_preprocess.py:38
↓ 1 callersFunctionbuild_vocab
(imgs, params)
tools/msvd_preprocess.py:43
↓ 1 callersMethodbuild_writers
(self)
xmodaler/engine/defaults.py:402
↓ 1 callersMethodclear_histograms
Delete all the stored histograms for visualization. This should be called after histograms are written to tensorboard.
xmodaler/utils/events.py:482
↓ 1 callersMethodclear_images
Delete all the stored images for visualization. This should be called after images are written to tensorboard.
xmodaler/utils/events.py:475
↓ 1 callersMethodclip_inputs
(self, data)
xmodaler/engine/single_stream_retrieval_trainer.py:182
↓ 1 callersFunctionclip_t_inputs
(input_txt, segment_ids, input_mask)
xmodaler/functional/func_feats.py:121
↓ 1 callersFunctioncollect_env_info
()
xmodaler/utils/collect_env.py:55
↓ 1 callersFunctioncollect_torch_env
()
xmodaler/utils/collect_env.py:17
↓ 1 callersMethodcompute_cider
(self)
xmodaler/scorer/cider.py:119
↓ 1 callersFunctionconvert_basic_c2_names
Apply some basic name conversion to names in C2 weights. It only deals with typical backbone models. Args: original_keys (l
xmodaler/checkpoint/c2_model_loading.py:12
↓ 1 callersFunctionconvert_c2_detectron_names
Map Caffe2 Detectron weight names to Detectron2 names. Args: weights (dict): name -> tensor Returns: dict: detec
xmodaler/checkpoint/c2_model_loading.py:68
↓ 1 callersFunctionconvert_models_to_fp32
(model)
configs/image_caption/cosnet/COS-Net-preprocess/step1_mil.py:27
↓ 1 callersFunctionconvert_models_to_fp32
(model)
configs/image_caption/cosnet/COS-Net-preprocess/step2_txtfeat.py:27
↓ 1 callersFunctioncook_refs
Takes a list of reference sentences for a single segment and returns an object that encapsulates everything that BLEU needs to know about them
tools/cider_cache.py:26
↓ 1 callersFunctioncook_refs
Takes a list of reference sentences for a single segment and returns an object that encapsulates everything that BLEU needs to know about th
xmodaler/scorer/cider.py:35
↓ 1 callersFunctioncook_test
Takes a test sentence and returns an object that encapsulates everything that BLEU needs to know about it. :param test: list of string : hyp
xmodaler/scorer/cider.py:45
↓ 1 callersMethoddecode_beam_search
(self, batched_inputs, output_sents=False)
xmodaler/modeling/meta_arch/base_enc_dec.py:247
↓ 1 callersFunctiondefault_argument_parser
Create a parser with some common arguments used by X-modaler users. Args: epilog (str): epilog passed to ArgumentParser describing t
xmodaler/engine/defaults.py:57
↓ 1 callersFunctiondefault_setup
Perform some basic common setups at the beginning of a job, including: 1. Set up the X-modaler logger 2. Log basic information about env
xmodaler/engine/defaults.py:118
↓ 1 callersFunctiondefault_writers
Build a list of :class:`EventWriter` to be used. It now consists of a :class:`CommonMetricPrinter`, :class:`TensorboardXWriter` and :clas
xmodaler/engine/defaults.py:166
↓ 1 callersMethoddowngrade
(cls, cfg: CN)
xmodaler/config/compat.py:222
↓ 1 callersFunctiondowngrade_config
Downgrade a config from its current version to an older version. Args: cfg (CfgNode): to_version (int): Note: A
xmodaler/config/compat.py:55
↓ 1 callersFunctionencode_captions
encode captions of the same video into one 2-D array, also produces a dict to point out the array based on image id
tools/msrvtt_preprocess.py:95
↓ 1 callersFunctionencode_captions
encode captions of the same video into one 2-D array, also produces a dict to point out the array based on image id
tools/msvd_preprocess.py:99
↓ 1 callersFunctionencode_sequences_bert
(entries, tokenizer, cls_token_id, sep_token_id, pad_token_id, max_length)
xmodaler/datasets/images/mscoco_bert.py:31
↓ 1 callersMethodencode_text
(self, text_inputs)
configs/image_caption/cosnet/COS-Net-preprocess/step2_txtfeat.py:79
↓ 1 callersFunctionfilter
(clip_probs, ret_objs)
configs/image_caption/cosnet/COS-Net-preprocess/step6_filter.py:22
↓ 1 callersFunctionfind_relative_file
(original_file, relative_import_path, level)
xmodaler/config/lazy.py:105
↓ 1 callersFunctionflatten_results_dict
Expand a hierarchical dict of scalars into a flat dict of scalars. If results[k1][k2][k3] = v, the returned dict will have the entry {
xmodaler/evaluation/testing.py:65
↓ 1 callersMethodforward
(self, query, key, mask, value1, value2, precompute=False)
xmodaler/modeling/layers/lowrank_bilinear_layers.py:68
↓ 1 callersFunctionfpn_map
Look for keys with the following patterns: 1) Starts with "fpn.inner." Example: "fpn.inner.res2.2.sum.lateral.weight"
xmodaler/checkpoint/c2_model_loading.py:132
↓ 1 callersMethodfrom_config
(cls, cfg, stage: str = "train")
xmodaler/datasets/images/conceptual_captions.py:52
↓ 1 callersMethodfrom_config
(cls, cfg, stage: str = "train")
xmodaler/datasets/images/flickr30k_single_stream.py:67
↓ 1 callersFunctiongenerate
()
configs/image_caption/cosnet/COS-Net-preprocess/step6_filter.py:41
↓ 1 callersFunctionget_cfg
Get a copy of the default config. Returns: a X-modaler CfgNode instance.
xmodaler/config/config.py:100
↓ 1 callersFunctionget_default_optimizer_params
( model: torch.nn.Module, base_lr: Optional[float] = None, weight_decay: Optional[float] = None,
xmodaler/optim/build.py:41
↓ 1 callersFunctionget_detections_from_im
(net, im_file, image_id, conf_thresh=0.2)
tools/generate_npz.py:92
↓ 1 callersFunctionget_env_module
()
xmodaler/utils/collect_env.py:29
↓ 1 callersMethodget_extended_attention_mask
(self, batched_inputs)
xmodaler/modeling/meta_arch/transformer_enc_dec.py:61
↓ 1 callersMethodget_extended_attention_mask
(self, batched_inputs)
xmodaler/modeling/meta_arch/rnn_att_enc_dec.py:22
↓ 1 callersMethodget_extended_attention_mask
(self, batched_inputs)
xmodaler/modeling/meta_arch/uniter.py:81
↓ 1 callersMethodget_extended_attention_mask
(self, batched_inputs)
xmodaler/modeling/meta_arch/tden.py:93
↓ 1 callersMethodget_random_caption
(self, caption)
xmodaler/datasets/images/conceptual_captions.py:234
↓ 1 callersMethodget_sents
(self, sent)
xmodaler/scorer/bert_tokenized_scorer.py:52
↓ 1 callersMethodget_sents
(self, sent)
xmodaler/scorer/base_scorer.py:49
↓ 1 callersMethodgreedy_decode
(self, batched_inputs, output_sents=False)
xmodaler/modeling/meta_arch/base_enc_dec.py:240
↓ 1 callersFunctionguess_version
Guess the version of a partial config where the VERSION field is not specified. Returns the version, or the latest if cannot make a guess.
xmodaler/config/compat.py:82
↓ 1 callersMethodhard_negative_mining
(self, data)
xmodaler/engine/single_stream_retrieval_trainer.py:203
↓ 1 callersMethodhistories
Returns: dict[name -> HistoryBuffer]: the HistoryBuffer for all scalars
xmodaler/utils/events.py:388
↓ 1 callersFunctioninference
(cfg, model, test_data_loader)
xmodaler/engine/single_stream_retrieval_trainer.py:71
↓ 1 callersMethodinit_weights
(self)
xmodaler/modeling/layers/multihead_attention.py:43
↓ 1 callersMethodinit_weights
(self)
xmodaler/modeling/layers/multihead_attention.py:122
↓ 1 callersFunctionitm_eval
(score_matrix, t2gtiidxes)
xmodaler/engine/single_stream_retrieval_trainer.py:112
↓ 1 callersMethodlatest
Returns: dict[str -> (float, int)]: mapping from the name of each scalar to the most recent value and the iterati
xmodaler/utils/events.py:395
↓ 1 callersFunctionlaunch
Launch multi-gpu or distributed training. This function must be called on all machines involved in the training. It will spawn child proc
xmodaler/engine/launch.py:31
↓ 1 callersMethodload_data
(self, cfg)
xmodaler/datasets/images/conceptual_captions.py:73
↓ 1 callersMethodload_from_file_tmp
(self, cfg_filename: str, allow_unsafe: bool = True)
xmodaler/config/config.py:28
↓ 1 callersFunctionload_image_ids
Load a list of (path,image_id tuples). Modify this to suit your data locations.
tools/generate_npz.py:42
↓ 1 callersFunctionload_list
(datafiles)
tools/msrvtt_preprocess.py:200
↓ 1 callersFunctionload_pickle
(filename)
configs/image_caption/cosnet/COS-Net-preprocess/step4_sent2objid.py:11
↓ 1 callersMethodload_raw_data
(self, cfg)
xmodaler/datasets/images/vcr.py:204
↓ 1 callersMethodload_raw_data
(self, cfg)
xmodaler/datasets/images/flickr30k.py:62
↓ 1 callersMethodload_raw_data
(self, cfg)
xmodaler/datasets/images/vqa.py:88
↓ 1 callersMethodload_raw_data_Q2A
(self, cfg)
xmodaler/datasets/images/vcr.py:143
↓ 1 callersMethodload_raw_data_QA2R
(self, cfg)
xmodaler/datasets/images/vcr.py:167
↓ 1 callersFunctionload_vocab
Loads a vocabulary file into a dictionary.
xmodaler/tokenization/tokenization_bert.py:83
↓ 1 callersFunctionload_vocab
(path)
xmodaler/functional/func_io.py:50
↓ 1 callersFunctionmain
(args)
tools/cider_cache.py:53
↓ 1 callersFunctionmain
(args)
tools/create_feats.py:11
↓ 1 callersFunctionmain
(params)
tools/msrvtt_preprocess.py:211
↓ 1 callersFunctionmain
(params)
tools/msvd_preprocess.py:187
↓ 1 callersFunctionmatch
(a, b)
xmodaler/checkpoint/c2_model_loading.py:239
↓ 1 callersMethodmerge_from_file
(self, cfg_filename: str, allow_unsafe: bool = True)
xmodaler/config/config.py:45
↓ 1 callersFunctionparse_args
Parse input arguments
tools/generate_npz.py:132
↓ 1 callersMethodpreprocess_inputs
(self, inputs, task_name)
xmodaler/modeling/meta_arch/uniter.py:228
↓ 1 callersMethodrandom_cap
(self, caption)
xmodaler/datasets/images/conceptual_captions.py:226
↓ 1 callersFunctionrandom_word
(tokens, tokenizer, must_mask=False)
xmodaler/functional/func_pretrain.py:10
↓ 1 callersFunctionread_lines
(filepath)
configs/image_caption/cosnet/COS-Net-preprocess/step6_filter.py:18
↓ 1 callersFunctionread_lines
(filepath)
configs/image_caption/cosnet/COS-Net-preprocess/step4_sent2objid.py:7
← previousnext →201–300 of 909, ranked by callers