MCPcopy Create free account

hub / github.com/SooLab/CGFormer / functions

Functions468 in github.com/SooLab/CGFormer

Method__call__
Returns a dictionary containing the encoded sequence or sequence pair and additional information: the mask for sequence classificatio
bert/tokenization_utils_base.py:1551
Method__eq__
(self, other)
bert/configuration_utils.py:328
Method__get__
(self, obj, objtype=None)
bert/file_utils.py:773
Method__getattr__
(self, name)
utils/config.py:26
Method__getattr__
(self, item: str)
bert/tokenization_utils_base.py:183
Method__getitem__
(self, index)
utils/dataset.py:117
Method__getitem__
(self, index)
utils/dataset_open.py:128
Method__getitem__
If the key is a string, get the value of the dict associated to `key` ('input_ids', 'attention_mask'...) If the key is an integer, get th
bert/tokenization_utils_base.py:169
Method__init__
(self, data_root, dataset='refcoco', splitBy='unc')
tools/refer.py:42
Method__init__
(self, init_dict=None, key_list=None, new_allowed=False)
utils/config.py:16
Method__init__
(self, name, fmt=":f")
utils/misc.py:74
Method__init__
(self, num_batches, meters, prefix="")
utils/misc.py:100
Method__init__
Args: level(str): log level string of loguru. Default value: "INFO". caller_names(tuple): caller names of redirected
utils/misc.py:232
Method__init__
(self, bpe_path: str = default_bpe())
utils/simple_tokenizer.py:63
Method__init__
(self, lmdb_dir, mask_dir, dataset, split, mode, input_size, word_length)
utils/dataset.py:86
Method__init__
(self, lmdb_dir, mask_dir, dataset, split, mode, input_size, word_length)
utils/dataset_open.py:99
Method__init__
(self, in_dim_1, in_dim_2, out_dim, bias=False)
model/layers.py:64
Method__init__
(self, text_dim=512, in_dim=512, kernel_size=1)
model/layers.py:87
Method__init__
(self, q_dim, kv_dim, hidden_dim, num_head
model/layers.py:132
Method__init__
(self, token_dim, bias, drop)
model/layers.py:190
Method__init__
(self, token_dim, bias, drop)
model/layers.py:214
Method__init__
(self, token_dim, drop, bias=False, pe_shape=None)
model/layers.py:236
Method__init__
(self, token_dim, vis_dim, hidden_dim, drop=0., bias=True)
model/layers.py:257
Method__init__
(self, args)
model/layers.py:296
Method__init__
(self, backbone, args)
model/segmenter.py:55
Method__init__
(self, dim, window_size, num_heads, qkv_bias=True, qk_scale=None, attn_drop=0., proj_drop=0.)
model/backbone.py:79
Method__init__
(self, dim, num_heads, window_size=7, shift_size=0, mlp_ratio=4., qkv_bias=True, qk_scale=Non
model/backbone.py:164
Method__init__
(self, dim, norm_layer=nn.LayerNorm)
model/backbone.py:255
Method__init__
(self, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None)
model/backbone.py:301
Method__init__
(self, pretrain_img_size=224, patch_size=4, in_chans=3,
model/backbone.py:335
Method__init__
(self, dim, depth, num_heads, window_size=
model/backbone.py:498
Method__init__
(self, in_dim=512, out_dim=512, kernel_size=1)
model/backbone.py:613
Method__init__
(self, dim, v_in_channels, l_in_channels, key_channels, value_channels, num_heads=0, dropout=0.0)
model/backbone.py:649
Method__init__
(self, v_in_channels, l_in_channels, key_channels, value_channels, out_channels=None, num_heads=1)
model/backbone.py:679
Method__init__
(self, *args, **kwargs)
bert/modeling_utils.py:52
Method__init__
(self, config, *inputs, **kwargs)
bert/modeling_utils.py:293
Method__init__
(self, config)
bert/modeling_utils.py:837
Method__init__
(self, config)
bert/modeling_utils.py:862
Method__init__
(self, config)
bert/modeling_utils.py:908
Method__init__
(self, config)
bert/modeling_utils.py:993
Method__init__
(self, config: PretrainedConfig)
bert/modeling_utils.py:1085
Method__init__
(self, config)
bert/modeling_bert.py:152
Method__init__
(self, config)
bert/modeling_bert.py:189
Method__init__
(self, config)
bert/modeling_bert.py:267
Method__init__
(self, config)
bert/modeling_bert.py:281
Method__init__
(self, config)
bert/modeling_bert.py:323
Method__init__
(self, config)
bert/modeling_bert.py:338
Method__init__
(self, config)
bert/modeling_bert.py:395
Method__init__
(self, config)
bert/modeling_bert.py:459
Method__init__
(self, config)
bert/modeling_bert.py:474
Method__init__
(self, config)
bert/modeling_bert.py:491
Method__init__
(self, config)
bert/modeling_bert.py:511
Method__init__
(self, config)
bert/modeling_bert.py:521
Method__init__
(self, config)
bert/modeling_bert.py:531
Method__init__
(self, config)
bert/modeling_bert.py:644
Method__init__
(self, config)
bert/modeling_bert.py:779
Method__init__
(self, config)
bert/modeling_bert.py:895
Method__init__
(self, config)
bert/modeling_bert.py:1006
Method__init__
(self, config)
bert/modeling_bert.py:1117
Method__init__
(self, config)
bert/modeling_bert.py:1209
Method__init__
(self, config)
bert/modeling_bert.py:1296
Method__init__
(self, config)
bert/modeling_bert.py:1390
Method__init__
(self, config)
bert/modeling_bert.py:1478
Method__init__
Initialize n-best list of hypotheses.
bert/generation_utils.py:949
Method__init__
( self, vocab_size=30522, hidden_size=768, num_hidden_layers=12, num_a
bert/configuration_bert.py:111
Method__init__
( self, vocab_file, do_lower_case=True, do_basic_tokenize=True, never_
bert/tokenization_bert.py:161
Method__init__
Constructs a BasicTokenizer. Args: **do_lower_case**: Whether to lower case the input. **never_split**: (`optional`)
bert/tokenization_bert.py:351
Method__init__
(self, vocab, unk_token, max_input_chars_per_word=100)
bert/tokenization_bert.py:490
Method__init__
(self, verbose=True, **kwargs)
bert/tokenization_utils_base.py:583
Method__init__
(self, **kwargs)
bert/tokenization_utils_base.py:1029
Method__init__
(self, **kwargs)
bert/configuration_utils.py:56
Method__init__
(self, **kwargs)
bert/tokenization_utils.py:156
Method__len__
(self)
utils/dataset.py:114
Method__len__
(self)
utils/dataset_open.py:125
Method__len__
Number of hypotheses in the list.
bert/generation_utils.py:960
Method__len__
Size of the full vocabulary with the added tokens
bert/tokenization_utils.py:181
Method__repr__
(self)
utils/config.py:56
Method__repr__
(self)
utils/dataset.py:176
Method__repr__
(self)
utils/dataset_open.py:189
Method__repr__
(self)
bert/configuration_utils.py:331
Method__setattr__
(self, name, value)
utils/config.py:32
Method__setstate__
(self, state)
bert/tokenization_utils_base.py:192
Method__str__
(self)
utils/config.py:35
Method__str__
(self)
utils/misc.py:91
Method_batch_encode_plus
( self, batch_text_or_text_pairs: Union[ List[TextInput], List[TextInp
bert/tokenization_utils.py:476
Method_clean_text
Performs invalid character removal and whitespace cleanup on text.
bert/tokenization_bert.py:473
Method_convert_id_to_token
Converts an index (integer) in a token (str) using the vocab.
bert/tokenization_bert.py:223
Method_convert_token_to_id
Converts a token (str) in an id using the vocab.
bert/tokenization_bert.py:219
Method_encode_plus
( self, text: Union[TextInput, PreTokenizedInput, EncodedInput], text_pair: Optional[U
bert/tokenization_utils.py:402
Function_gelu_python
Original Implementation of the gelu activation function in Google Bert repo when initially created. For information: OpenAI GPT's gelu is sli
bert/activations.py:15
Method_hook_rss_memory_post_forward
(module, *args, **kwargs)
bert/modeling_utils.py:98
Method_hook_rss_memory_pre_forward
(module, *args, **kwargs)
bert/modeling_utils.py:86
Method_indent
(s_, num_spaces)
utils/config.py:36
Method_init_weights
(m)
model/backbone.py:445
Method_missing_
(cls, value)
bert/tokenization_utils_base.py:79
Function_resumable_file_manager
()
bert/file_utils.py:732
Method_tokenize
(self, text)
bert/tokenization_bert.py:205
Functionadd_code_sample_docstrings
(*docstr, tokenizer_class=None, checkpoint=None)
bert/file_utils.py:417
Functionadd_end_docstrings
(*docstr)
bert/file_utils.py:181
Methodadd_memory_hooks
Add a memory hook before and after each sub-module forward pass to record increase in memory consumption. Increase in memory consumption
bert/modeling_utils.py:111
← previousnext →201–300 of 468, ranked by callers