MCPcopy Create free account

hub / github.com/YehLi/xmodaler / functions

Functions909 in github.com/YehLi/xmodaler

↓ 2 callersFunctiondecode_sequence_bert
(tokenizer, seq, sep_token_id)
xmodaler/functional/func_caption.py:22
↓ 2 callersFunctiondict_to_cuda
(input_dict)
xmodaler/functional/func_feats.py:26
↓ 2 callersMethodencode_image
(self, images)
configs/image_caption/cosnet/COS-Net-preprocess/step1_mil.py:79
↓ 2 callersFunctionget_max_len_from_mask
(mask)
xmodaler/functional/func_feats.py:109
↓ 2 callersFunctionget_rank
()
xmodaler/utils/comm.py:29
↓ 2 callersFunctioniou
anchors: (N, 4) ndarray of float gt_boxes: (K, 4) ndarray of float overlaps: (N, K) ndarray of overlap between boxes and query_boxes
xmodaler/functional/func_feats.py:69
↓ 2 callersMethodlatest_with_smoothing_hint
Similar to :meth:`latest`, but the returned values are either the un-smoothed original latest value, or a median of the given
xmodaler/utils/events.py:403
↓ 2 callersMethodload_data
(self, cfg)
xmodaler/datasets/images/flickr30k_single_stream.py:214
↓ 2 callersMethodload_data
(self, cfg)
xmodaler/datasets/images/vcr.py:74
↓ 2 callersFunctionload_pickle
(filename)
configs/image_caption/cosnet/COS-Net-preprocess/step3_simi.py:7
↓ 2 callersMethodload_state_dict
(self, state_dict)
xmodaler/engine/train_loop.py:202
↓ 2 callersFunctionlocate
Locate and return an object ``x`` using an input string ``{x.__module__}.{x.__qualname__}``, such as "module.submodule.class_name". Rais
xmodaler/utils/registry.py:40
↓ 2 callersFunctionmaybe_add_gradient_clipping
If gradient clipping is enabled through config options, wraps the existing optimizer type to become a new dynamically created class Optimizer
xmodaler/optim/build.py:134
↓ 2 callersFunctionmaybe_to_cpu
(x)
xmodaler/utils/memory.py:57
↓ 2 callersFunctionnorm_cdf
(x)
xmodaler/utils/initialization.py:11
↓ 2 callersFunctionprecook
Takes a string as input and returns an object that can be given to either cook_refs or cook_test. This is optional: cook_refs and cook_test
tools/cider_cache.py:10
↓ 2 callersFunctionprecook
Takes a string as input and returns an object that can be given to either cook_refs or cook_test. This is optional: cook_refs and cook_test
xmodaler/scorer/cider.py:18
↓ 2 callersFunctionrandom_region
(image_feats, overlaps)
xmodaler/functional/func_pretrain.py:44
↓ 2 callersFunctionread_lines_set
(path)
xmodaler/functional/func_io.py:15
↓ 2 callersMethodresume_or_load
(self, resume=True)
xmodaler/engine/ensembler.py:49
↓ 2 callersMethodsave
Args: cfg: an omegaconf config object filename: yaml file name to save the config file
xmodaler/config/lazy.py:230
↓ 2 callersFunctionsave_pickle
(data, filename)
configs/image_caption/cosnet/COS-Net-preprocess/step1_mil.py:23
↓ 2 callersFunctionseed_all_rng
Set the random seed for the RNG in torch, numpy and python. Args: seed (int): if None, will use a strong random seed.
xmodaler/utils/env.py:21
↓ 2 callersMethodtest
(cls, cfg, model, test_data_loader, evaluator, epoch)
xmodaler/engine/ensembler.py:53
↓ 2 callersMethodtrain
(self)
xmodaler/engine/defaults.py:405
↓ 1 callersMethod__enter__
(self)
xmodaler/utils/events.py:455
↓ 1 callersMethod__exit__
(self, exc_type, exc_val, exc_tb)
xmodaler/utils/events.py:459
↓ 1 callersMethod__init__
( self, mid_dims: list, mid_dropout: float )
xmodaler/modeling/layers/scattention.py:13
↓ 1 callersMethod__init__
( self, *, pooler_input_size: int, pooler_output_size: int, pooler_bn:
xmodaler/modeling/predictor/multimodal_similarity.py:23
↓ 1 callersMethod__init__
( self, *, labels_num: int, pooler_input_size: int, pooler_output_size
xmodaler/modeling/predictor/multimodal_predictor.py:21
↓ 1 callersMethod__init__
(self, dim, max_len)
xmodaler/modeling/embedding/position_embedding.py:25
↓ 1 callersMethod__init__
( self, *, in_dim: int, out_dim: int, **kwargs )
xmodaler/modeling/embedding/visual_embed.py:32
↓ 1 callersMethod__init__
( self, *, d_model: int , num_layer: int, num_att_head: int,
xmodaler/modeling/decoder/meshed_decoder.py:77
↓ 1 callersMethod__init__
( self, *, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-8,
xmodaler/optim/radam.py:12
↓ 1 callersMethod__init__
Args: eval_period (int): the period to run `eval_function`. Set to 0 to not evaluate periodically (but still afte
xmodaler/engine/hooks.py:348
↓ 1 callersMethod__init__
(self, cfg)
xmodaler/engine/single_stream_retrieval_trainer.py:43
↓ 1 callersMethod__init__
( self, stage: str, anno_file: str, seq_per_img: int, max_feat_num: in
xmodaler/datasets/images/mscoco.py:22
↓ 1 callersMethod__init__
( self, stage: str, anno_file: str, max_seq_length: int, max_feat
xmodaler/datasets/images/conceptual_captions.py:33
↓ 1 callersMethod__init__
( self, stage: str, anno_folder: str, anno_file: str, feats_folder: st
xmodaler/datasets/images/flickr30k_single_stream.py:25
↓ 1 callersMethod__init__
(self, margin)
xmodaler/losses/triplet.py:18
↓ 1 callersMethod__setstate__
(self, state)
xmodaler/optim/radam.py:35
↓ 1 callersFunction_cached_log_stream
(filename)
xmodaler/utils/logger.py:102
↓ 1 callersMethod_clean_text
Performs invalid character removal and whitespace cleanup on text.
xmodaler/tokenization/tokenization_bert.py:346
↓ 1 callersFunction_configure_libraries
Configurations for some libraries.
xmodaler/utils/env.py:51
↓ 1 callersFunction_create_gradient_clipper
(cfg: CfgNode)
xmodaler/optim/build.py:23
↓ 1 callersFunction_del
(key_seq: List[str])
xmodaler/config/compat.py:134
↓ 1 callersMethod_expand_state
(self, states, selected_beam, batch_size, beam_size, cur_beam_size)
xmodaler/modeling/decode_strategy/beam_searcher.py:24
↓ 1 callersMethod_expand_state
(self, states, selected_beam, batch_size, beam_size, cur_beam_size)
xmodaler/modeling/decode_strategy/ensemble_beam_searcher.py:26
↓ 1 callersFunction_find_free_port
()
xmodaler/engine/launch.py:19
↓ 1 callersMethod_forward
(self, batched_inputs)
xmodaler/modeling/meta_arch/tden.py:211
↓ 1 callersMethod_forward
(self, batched_inputs)
xmodaler/modeling/meta_arch/base_enc_dec.py:84
↓ 1 callersMethod_forward
(self, batched_inputs, model)
xmodaler/modeling/decode_strategy/decode_strategy.py:65
↓ 1 callersMethod_forward
(self, batched_inputs, model, weights)
xmodaler/modeling/decode_strategy/ensemble_beam_searcher.py:47
↓ 1 callersFunction_generate_optimizer_class_with_gradient_clipping
Dynamically creates a new type that inherits the type of a given instance and overrides the `step` method to add gradient clipping
xmodaler/optim/build.py:101
↓ 1 callersFunction_get
(key_seq: List[str])
xmodaler/config/compat.py:128
↓ 1 callersMethod_get_eta
(self, storage)
xmodaler/utils/events.py:200
↓ 1 callersMethod_get_sampling_shift
(self)
xmodaler/modeling/layers/tdconved_layers.py:154
↓ 1 callersFunction_import_file
(module_name, file_path, make_importable=False)
xmodaler/utils/env.py:42
↓ 1 callersMethod_init_decoding_buffer
(self, batch_size)
xmodaler/modeling/decoder/tdconved_decoder.py:154
↓ 1 callersMethod_init_offset_param
(self)
xmodaler/modeling/layers/tdconved_layers.py:81
↓ 1 callersMethod_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
xmodaler/tokenization/tokenization_bert.py:324
↓ 1 callersFunction_is_control
Checks whether `chars` is a control character.
xmodaler/tokenization/tokenization_bert.py:432
↓ 1 callersFunction_is_punctuation
Checks whether `chars` is a punctuation character.
xmodaler/tokenization/tokenization_bert.py:444
↓ 1 callersFunction_is_whitespace
Checks whether `chars` is a whitespace character.
xmodaler/tokenization/tokenization_bert.py:420
↓ 1 callersMethod_make_grid
dH - offset relative to the ordinate idx, [b, h, w], elem value in [-1, 1] make grid for linear interpolation along H dimension
xmodaler/modeling/layers/tdconved_layers.py:164
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
xmodaler/utils/initialization.py:8
↓ 1 callersMethod_normalize_offset
(self, idx, H)
xmodaler/modeling/layers/tdconved_layers.py:160
↓ 1 callersFunction_patch_import
Enhance relative import statements in config files, so that they: 1. locate files purely based on relative location, regardless of packages.
xmodaler/config/lazy.py:94
↓ 1 callersMethod_preprocess_datalist
(self, datalist)
xmodaler/datasets/images/mscoco.py:64
↓ 1 callersMethod_run_split_on_punc
Splits punctuation on a piece of text.
xmodaler/tokenization/tokenization_bert.py:289
↓ 1 callersMethod_run_strip_accents
Strips accents from a piece of text.
xmodaler/tokenization/tokenization_bert.py:278
↓ 1 callersMethod_sample_frame
(self, atten_feats)
xmodaler/datasets/videos/msvd.py:70
↓ 1 callersMethod_sample_frame
(self, atten_feats)
xmodaler/datasets/videos/msrvtt.py:70
↓ 1 callersMethod_select
(self, batch_size, beam_size, t, candidate_logprob)
xmodaler/modeling/decode_strategy/beam_searcher.py:19
↓ 1 callersMethod_select
(self, batch_size, beam_size, t, candidate_logprob)
xmodaler/modeling/decode_strategy/ensemble_beam_searcher.py:21
↓ 1 callersFunction_set
(key_seq: List[str], val: str)
xmodaler/config/compat.py:120
↓ 1 callersMethod_tokenize_chinese_chars
Adds whitespace around any CJK character.
xmodaler/tokenization/tokenization_bert.py:311
↓ 1 callersFunction_visit_dict_config
Apply func recursively to all DictConfig in cfg.
xmodaler/config/lazy.py:52
↓ 1 callersFunctionadd_config
(cfg, tmp_cfg)
xmodaler/modeling/meta_arch/build.py:26
↓ 1 callersMethodadd_config
(cls, cfg)
xmodaler/modeling/encoder/encoder.py:27
↓ 1 callersMethodadd_config
(cls, cfg, tmp_cfg)
xmodaler/modeling/meta_arch/tden.py:207
↓ 1 callersMethodadd_config
(cls, cfg)
xmodaler/modeling/predictor/base_predictor.py:38
↓ 1 callersMethodadd_config
(cls, cfg)
xmodaler/modeling/decoder/mplstm_decoder.py:39
↓ 1 callersMethodadd_config
(cls, cfg)
xmodaler/losses/triplet.py:29
↓ 1 callersFunctionadd_decoder_config
(cfg, tmp_cfg)
xmodaler/modeling/decoder/build.py:17
↓ 1 callersFunctionadd_encoder_config
(cfg, tmp_cfg)
xmodaler/modeling/encoder/build.py:17
↓ 1 callersFunctionadd_predictor_config
(cfg, tmp_cfg)
xmodaler/modeling/predictor/build.py:25
↓ 1 callersMethodadd_special_tokens_sentences_pair
Adds special tokens to a sequence pair for sequence classification tasks. A BERT sequence pair has the following format: [CLS] A [S
xmodaler/tokenization/tokenization_bert.py:197
↓ 1 callersMethodafter_step
Called after each iteration.
xmodaler/engine/train_loop.py:77
↓ 1 callersMethodafter_step
(self)
xmodaler/engine/train_loop.py:180
↓ 1 callersMethodafter_train
Called after the last iteration.
xmodaler/engine/train_loop.py:65
↓ 1 callersMethodafter_train
(self)
xmodaler/engine/train_loop.py:167
↓ 1 callersFunctionalign_and_update_state_dicts
Match names between the two state-dict, and update the values of model_state_dict in-place with copies of the matched tensor in ckpt_state_
xmodaler/checkpoint/c2_model_loading.py:211
↓ 1 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors). Args: data: any picklable object group: a torch proces
xmodaler/utils/comm.py:139
↓ 1 callersFunctionany_broadcast
broadcast arbitrary data from root_rank to all nodes.
xmodaler/utils/distributed.py:118
↓ 1 callersMethodbefore_step
Called before each iteration.
xmodaler/engine/train_loop.py:71
↓ 1 callersMethodbefore_step
(self)
xmodaler/engine/train_loop.py:172
↓ 1 callersMethodbefore_train
Called before the first iteration.
xmodaler/engine/train_loop.py:59
↓ 1 callersMethodbefore_train
(self)
xmodaler/engine/train_loop.py:163
↓ 1 callersMethodbind_or_init_weights
(self)
xmodaler/modeling/meta_arch/uniter.py:136
← previousnext →101–200 of 909, ranked by callers