Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SooLab/CGFormer
/ functions
Functions
468 in github.com/SooLab/CGFormer
⨍
Functions
468
◇
Types & classes
79
Method
get_output_embeddings
(self)
bert/modeling_bert.py:1017
Method
get_special_tokens_mask
Retrieves sequence ids from a token list that has no special tokens added. This method is called when adding special tokens using the
bert/tokenization_bert.py:258
Method
get_special_tokens_mask
Retrieves sequence ids from a token list that has no special tokens added. This method is called when adding special tokens using the
bert/tokenization_utils.py:631
Method
get_vocab
(self)
bert/tokenization_bert.py:202
Method
get_vocab
Returns the vocabulary as a dict of {token: index} pairs. `tokenizer.get_vocab()[token]` is equivalent to `tokenizer.convert_tokens_to_ids(token)` wh
bert/tokenization_utils.py:174
Function
group_weight
(weight_group, module, lr)
utils/misc.py:169
Function
hard_softmax
(logits, dim)
model/layers.py:40
Function
intersectionAndUnionGPU
(output, target, K, threshold=0.5)
utils/misc.py:147
Function
is_apex_available
()
bert/file_utils.py:151
Method
is_fast
Indicate if this BatchEncoding was generated from the result of a PreTrainedTokenizerFast Returns: True if generated from subclasses
bert/tokenization_utils_base.py:162
Method
is_fast
(self)
bert/tokenization_utils.py:166
Function
is_psutil_available
()
bert/file_utils.py:143
Function
is_py3nvml_available
()
bert/file_utils.py:147
Function
is_torch_tpu_available
()
bert/file_utils.py:139
Method
loadAnns
(self, ann_ids=[])
tools/refer.py:216
Method
loadCats
(self, cat_ids=[])
tools/refer.py:228
Function
load_cfg_from_cfg_file
(file)
utils/config.py:61
Function
load_tf_weights_in_bert
Load tf checkpoints in a pytorch model.
bert/modeling_bert.py:66
Function
loads_pyarrow
Args: buf: the output of `dumps`.
tools/folder2lmdb.py:12
Function
main_worker
(gpu, args)
train.py:65
Method
mask_token
Mask token (string). E.g. when training a model with masked-language modeling. Log an error if used while not having been set.
bert/tokenization_utils_base.py:766
Method
mask_token_id
Id of the mask token in the vocabulary. E.g. when training a model with masked-language modeling. Log an error if used while not having been set.
bert/tokenization_utils_base.py:861
Function
masks_to_boxes
Compute the bounding boxes around the provided masks The masks should be in format [N, H, W] where N is the number of masks, (H, W) are the spati
utils/box_ops.py:84
Method
max_len
Kept here for backward compatibility. Now renamed to `model_max_length` to avoid ambiguity.
bert/tokenization_utils_base.py:1049
Method
max_len_sentences_pair
(self)
bert/tokenization_utils_base.py:1060
Method
max_len_single_sentence
(self)
bert/tokenization_utils_base.py:1056
Function
merge_cfg_from_list
(cfg, cfg_list)
utils/config.py:77
Function
mish
(x)
bert/modeling_bert.py:138
Function
multi_iou
(boxes1, boxes2)
utils/box_ops.py:18
Method
num_labels
(self)
bert/configuration_utils.py:118
Method
num_parameters
Get number of (optionally, trainable) parameters in the module.
bert/modeling_utils.py:78
Method
num_special_tokens_to_add
Returns the number of added tokens when encoding a sequence with special tokens. Note: This encodes inputs and checks th
bert/tokenization_utils.py:237
Method
pad_token
Padding token (string). Log an error if used while not having been set.
bert/tokenization_utils_base.py:750
Method
pad_token_id
Id of the padding token in the vocabulary. Log an error if used while not having been set.
bert/tokenization_utils_base.py:842
Method
pad_token_type_id
Id of the padding token type in the vocabulary.
bert/tokenization_utils_base.py:849
Method
prepare_inputs_for_generation
(self, input_ids, attention_mask=None, **model_kwargs)
bert/modeling_bert.py:994
Method
prepare_inputs_for_generation
(self, input_ids, attention_mask=None, **model_kwargs)
bert/modeling_bert.py:1098
Function
prune_layer
Prune a Conv1D or nn.Linear layer (a model parameters) to keep only entries in index. Return the pruned layer as a new layer with requires_gr
bert/modeling_utils.py:1195
Method
resize_token_embeddings
Resize input token embeddings matrix of the model if new_num_tokens != config.vocab_size. Take care of tying weights embeddings afterwards if
bert/modeling_utils.py:376
Function
save_checkpoint
Save checkpoint to file. The checkpoint will have 3 fields: ``meta``, ``state_dict`` and ``optimizer``. By default ``meta`` will contain vers
model/mmcv_custom/checkpoint.py:442
Method
save_pretrained
Save a model and its configuration file to a directory, so that it can be re-loaded using the `:func:`~transformers.PreTrainedModel.from_
bert/modeling_utils.py:474
Method
save_pretrained
Save the tokenizer vocabulary files together with: - added tokens, - special-tokens-to-class-attributes-mapping,
bert/tokenization_utils_base.py:1334
Method
save_pretrained
Save a configuration object to the directory `save_directory`, so that it can be re-loaded using the :func:`~transformers.PretrainedC
bert/configuration_utils.py:126
Method
save_vocabulary
Save the tokenizer vocabulary to a directory. This method does *NOT* save added tokens and special token mappings. Please us
bert/tokenization_utils.py:715
Method
sep_token
Separation token (string). E.g. separate context and query in an input sequence. Log an error if used while not having been set.
bert/tokenization_utils_base.py:742
Method
sep_token_id
Id of the separation token in the vocabulary. E.g. separate context and query in an input sequence. Log an error if used while not having been set.
bert/tokenization_utils_base.py:835
Method
set_input_embeddings
(self, value)
bert/modeling_bert.py:657
Method
showMask
(self, ref)
tools/refer.py:351
Method
special_tokens_map
A dictionary mapping special token class attribute (cls_token, unk_token...) to their values ('<unk>', '<cls>'...) Convert to
bert/tokenization_utils_base.py:873
Method
special_tokens_map_extended
A dictionary mapping special token class attribute (cls_token, unk_token...) to their values ('<unk>', '<cls>'...) Keep the t
bert/tokenization_utils_base.py:887
Method
split_on_token
(tok, text)
bert/tokenization_utils.py:284
Method
split_on_tokens
(tok_list, text)
bert/tokenization_utils.py:337
Function
swish
(x)
bert/activations.py:11
Function
tf_required
(func)
bert/file_utils.py:799
Method
token_to_chars
Get the character span corresponding to an encoded token in a sequence of the batch. Character spans are returned as a CharSpan Name
bert/tokenization_utils_base.py:321
Method
token_to_word
Get the index of the word corresponding (i.e. comprising) to an encoded token in a sequence of the batch. Can be called as:
bert/tokenization_utils_base.py:231
Method
tokenize
Tokenizes a piece of text into its word pieces. This uses a greedy longest-match-first algorithm to perform tokenization using the gi
bert/tokenization_bert.py:495
Method
tokens
(self, batch_index: int = 0)
bert/tokenization_utils_base.py:221
Function
torch_required
(func)
bert/file_utils.py:787
Method
unk_token
Unknown token (string). Log an error if used while not having been set.
bert/tokenization_utils_base.py:734
Method
unk_token_id
Id of the unknown token in the vocabulary. Log an error if used while not having been set.
bert/tokenization_utils_base.py:828
Method
vocab_size
(self)
bert/tokenization_bert.py:199
Method
vocab_size
Size of the base vocabulary (without the added tokens)
bert/tokenization_utils.py:170
Method
word_to_chars
Get the character span in the original string corresponding to given word in a sequence of the batch. Character spans are re
bert/tokenization_utils_base.py:398
Method
word_to_tokens
Get the encoded token span corresponding to a word in the sequence of the batch. Token spans are returned as a TokenSpan NamedTuple
bert/tokenization_utils_base.py:272
Method
words
(self, batch_index: int = 0)
bert/tokenization_utils_base.py:226
Function
worker_init_fn
(worker_id, num_workers, rank, seed)
utils/misc.py:63
Function
wrapper
(*args, **kwargs)
bert/file_utils.py:790
← previous
401–468 of 468, ranked by callers