MCPcopy Create free account

hub / github.com/SooLab/CGFormer / types & classes

Types & classes79 in github.com/SooLab/CGFormer

↓ 8 callersClassBertModel
The model can behave as an encoder (with only self-attention) as well as a decoder, in which case a layer of cross-attention is added betwee
bert/modeling_bert.py:627
↓ 6 callersClassAverageMeter
Computes and stores the average and current value
utils/misc.py:71
↓ 5 callersClassBatchEncoding
BatchEncoding hold the output of the encode and batch_encode methods (tokens, attention_masks, etc). This class is derived from a python Dict
bert/tokenization_utils_base.py:129
↓ 4 callersClassIdentity
r"""A placeholder identity operator that is argument-insensitive.
bert/modeling_utils.py:48
↓ 3 callersClassRefDataset
utils/dataset.py:85
↓ 3 callersClassTruncationStrategy
bert/tokenization_utils_base.py:86
↓ 2 callersClassBertAttention
bert/modeling_bert.py:280
↓ 2 callersClassBertLMPredictionHead
bert/modeling_bert.py:490
↓ 2 callersClassBertOnlyMLMHead
bert/modeling_bert.py:510
↓ 2 callersClassCGAttention
model/layers.py:256
↓ 2 callersClassCfgNode
CfgNode represents an internal node in the configuration tree. It's a simple dict-like container that allows for attribute-based access to ke
utils/config.py:11
↓ 2 callersClassCharSpan
Character span in the original string Args: start: index of the first character in the original string end: index of
bert/tokenization_utils_base.py:105
↓ 2 callersClassCrossAttn
model/layers.py:131
↓ 2 callersClassMlp
model/layers.py:16
↓ 2 callersClassREFER
tools/refer.py:41
↓ 1 callersClassBasicTokenizer
Runs basic tokenization (punctuation splitting, lower casing, etc.).
bert/tokenization_bert.py:348
↓ 1 callersClassBeamHypotheses
bert/generation_utils.py:948
↓ 1 callersClassBertEmbeddings
Construct the embeddings from word, position and token_type embeddings.
bert/modeling_bert.py:148
↓ 1 callersClassBertEncoder
bert/modeling_bert.py:394
↓ 1 callersClassBertIntermediate
bert/modeling_bert.py:322
↓ 1 callersClassBertLayer
bert/modeling_bert.py:351
↓ 1 callersClassBertOnlyNSPHead
bert/modeling_bert.py:520
↓ 1 callersClassBertOutput
bert/modeling_bert.py:337
↓ 1 callersClassBertPooler
bert/modeling_bert.py:458
↓ 1 callersClassBertPreTrainingHeads
bert/modeling_bert.py:530
↓ 1 callersClassBertPredictionHeadTransform
bert/modeling_bert.py:473
↓ 1 callersClassBertSelfAttention
bert/modeling_bert.py:188
↓ 1 callersClassBertSelfOutput
bert/modeling_bert.py:266
↓ 1 callersClassCGFormer
model/segmenter.py:54
↓ 1 callersClassConv1D
bert/modeling_utils.py:815
↓ 1 callersClassDProjector
model/layers.py:86
↓ 1 callersClassDecoder
model/layers.py:295
↓ 1 callersClassFusion
model/layers.py:63
↓ 1 callersClassLoadLayer
model/layers.py:235
↓ 1 callersClassLoadToken
model/layers.py:213
↓ 1 callersClassMMBasicLayer
model/backbone.py:497
↓ 1 callersClassMlp
Multilayer perceptron.
model/backbone.py:12
↓ 1 callersClassMultiModalSwinTransformer
model/backbone.py:334
↓ 1 callersClassPWAM
model/backbone.py:648
↓ 1 callersClassPaddingStrategy
bert/tokenization_utils_base.py:93
↓ 1 callersClassPatchEmbed
Image to Patch Embedding Args: patch_size (int): Patch token size. Default: 4. in_chans (int): Number of input image channels. D
model/backbone.py:291
↓ 1 callersClassPoolerAnswerClass
Compute SQuAD 2.0 answer class from classification and start tokens hidden states.
bert/modeling_utils.py:905
↓ 1 callersClassPoolerEndLogits
Compute SQuAD end_logits from sequence hidden states and start token hidden state.
bert/modeling_utils.py:858
↓ 1 callersClassPoolerStartLogits
Compute SQuAD start_logits from sequence hidden states.
bert/modeling_utils.py:834
↓ 1 callersClassPretrainedConfig
r""" Base class for all configuration classes. Handles a few parameters common to all models' configurations as well as methods for loading/do
bert/configuration_utils.py:31
↓ 1 callersClassProgressMeter
utils/misc.py:99
↓ 1 callersClassSpatialImageLanguageAttention
model/backbone.py:678
↓ 1 callersClassStreamToLoguru
stream object that redirects writes to a logger instance.
utils/misc.py:228
↓ 1 callersClassSwinTransformerBlock
Swin Transformer Block. Args: dim (int): Number of input channels. num_heads (int): Number of attention heads. window_si
model/backbone.py:146
↓ 1 callersClassTensorType
bert/tokenization_utils_base.py:99
↓ 1 callersClassTokenSpan
Token span in an encoded string (list of tokens) Args: start: index of the first token in the span end: index of the
bert/tokenization_utils_base.py:117
↓ 1 callersClassWindowAttention
Window based multi-head self attention (W-MSA) module with relative position bias. It supports both of shifted and non-shifted window. Args:
model/backbone.py:65
↓ 1 callersClassWordpieceTokenizer
Runs WordPiece tokenization.
bert/tokenization_bert.py:487
ClassBertConfig
r""" This is the configuration class to store the configuration of a :class:`~transformers.BertModel`. It is used to instantiate an BE
bert/configuration_bert.py:53
ClassBertForMaskedLM
bert/modeling_bert.py:1005
ClassBertForMultipleChoice
bert/modeling_bert.py:1295
ClassBertForNextSentencePrediction
bert/modeling_bert.py:1116
ClassBertForPreTraining
bert/modeling_bert.py:778
ClassBertForQuestionAnswering
bert/modeling_bert.py:1477
ClassBertForSequenceClassification
bert/modeling_bert.py:1208
ClassBertForTokenClassification
bert/modeling_bert.py:1389
ClassBertLMHeadModel
bert/modeling_bert.py:894
ClassBertPreTrainedModel
An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models.
bert/modeling_bert.py:542
ClassBertTokenizer
r""" Constructs a BERT tokenizer. Based on WordPiece. This tokenizer inherits from :class:`~transformers.PreTrainedTokenizer` which contains
bert/tokenization_bert.py:117
ClassDynamicAdapter
model/backbone.py:612
ClassExplicitEnum
Enum with more explicit error message for missing values.
bert/tokenization_utils_base.py:74
ClassGenerationMixin
A class contraining all of the functions supporting generation, to be used as a mixin in PreTrainedModel.
bert/generation_utils.py:28
ClassModuleUtilsMixin
A few utilities for torch.nn.Modules, to be used as a mixin.
bert/modeling_utils.py:73
ClassOriLoadToken
model/layers.py:189
ClassPatchMerging
Patch Merging Layer Args: dim (int): Number of input channels. norm_layer (nn.Module, optional): Normalization layer. Default:
model/backbone.py:248
ClassPreTrainedModel
r""" Base class for all models. :class:`~transformers.PreTrainedModel` takes care of storing the configuration of the models and handles meth
bert/modeling_utils.py:265
ClassPreTrainedTokenizer
Base class for all slow tokenizers. Handle all the shared methods for tokenization and special tokens as well as methods downloading/caching
bert/tokenization_utils.py:98
ClassPreTrainedTokenizerBase
Base class for slow and fast tokenizers. Handle shared (mostly boiler plate) methods for slow and fast tokenizers.
bert/tokenization_utils_base.py:1015
ClassRefDataset
utils/dataset_open.py:98
ClassSQuADHead
r""" A SQuAD head inspired by XLNet. Parameters: config (:class:`~transformers.XLNetConfig`): Model configuration class with all the para
bert/modeling_utils.py:952
ClassSequenceSummary
r""" Compute a single vector summary of a sequence hidden states according to various possibilities: Args of the config class: sum
bert/modeling_utils.py:1069
ClassSimpleTokenizer
utils/simple_tokenizer.py:62
ClassSpecialTokensMixin
SpecialTokensMixin is derived by ``PreTrainedTokenizer`` and ``PreTrainedTokenizerFast`` and handles specific behaviors related to special to
bert/tokenization_utils_base.py:565
Classcached_property
Descriptor that mimics @property but caches output in member variable. From tensorflow_datasets Built-in in functools from Python 3.8.
bert/file_utils.py:764