Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SooLab/CGFormer
/ types & classes
Types & classes
79 in github.com/SooLab/CGFormer
⨍
Functions
468
◇
Types & classes
79
↓ 8 callers
Class
BertModel
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 callers
Class
AverageMeter
Computes and stores the average and current value
utils/misc.py:71
↓ 5 callers
Class
BatchEncoding
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 callers
Class
Identity
r"""A placeholder identity operator that is argument-insensitive.
bert/modeling_utils.py:48
↓ 3 callers
Class
RefDataset
utils/dataset.py:85
↓ 3 callers
Class
TruncationStrategy
bert/tokenization_utils_base.py:86
↓ 2 callers
Class
BertAttention
bert/modeling_bert.py:280
↓ 2 callers
Class
BertLMPredictionHead
bert/modeling_bert.py:490
↓ 2 callers
Class
BertOnlyMLMHead
bert/modeling_bert.py:510
↓ 2 callers
Class
CGAttention
model/layers.py:256
↓ 2 callers
Class
CfgNode
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 callers
Class
CharSpan
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 callers
Class
CrossAttn
model/layers.py:131
↓ 2 callers
Class
Mlp
model/layers.py:16
↓ 2 callers
Class
REFER
tools/refer.py:41
↓ 1 callers
Class
BasicTokenizer
Runs basic tokenization (punctuation splitting, lower casing, etc.).
bert/tokenization_bert.py:348
↓ 1 callers
Class
BeamHypotheses
bert/generation_utils.py:948
↓ 1 callers
Class
BertEmbeddings
Construct the embeddings from word, position and token_type embeddings.
bert/modeling_bert.py:148
↓ 1 callers
Class
BertEncoder
bert/modeling_bert.py:394
↓ 1 callers
Class
BertIntermediate
bert/modeling_bert.py:322
↓ 1 callers
Class
BertLayer
bert/modeling_bert.py:351
↓ 1 callers
Class
BertOnlyNSPHead
bert/modeling_bert.py:520
↓ 1 callers
Class
BertOutput
bert/modeling_bert.py:337
↓ 1 callers
Class
BertPooler
bert/modeling_bert.py:458
↓ 1 callers
Class
BertPreTrainingHeads
bert/modeling_bert.py:530
↓ 1 callers
Class
BertPredictionHeadTransform
bert/modeling_bert.py:473
↓ 1 callers
Class
BertSelfAttention
bert/modeling_bert.py:188
↓ 1 callers
Class
BertSelfOutput
bert/modeling_bert.py:266
↓ 1 callers
Class
CGFormer
model/segmenter.py:54
↓ 1 callers
Class
Conv1D
bert/modeling_utils.py:815
↓ 1 callers
Class
DProjector
model/layers.py:86
↓ 1 callers
Class
Decoder
model/layers.py:295
↓ 1 callers
Class
Fusion
model/layers.py:63
↓ 1 callers
Class
LoadLayer
model/layers.py:235
↓ 1 callers
Class
LoadToken
model/layers.py:213
↓ 1 callers
Class
MMBasicLayer
model/backbone.py:497
↓ 1 callers
Class
Mlp
Multilayer perceptron.
model/backbone.py:12
↓ 1 callers
Class
MultiModalSwinTransformer
model/backbone.py:334
↓ 1 callers
Class
PWAM
model/backbone.py:648
↓ 1 callers
Class
PaddingStrategy
bert/tokenization_utils_base.py:93
↓ 1 callers
Class
PatchEmbed
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 callers
Class
PoolerAnswerClass
Compute SQuAD 2.0 answer class from classification and start tokens hidden states.
bert/modeling_utils.py:905
↓ 1 callers
Class
PoolerEndLogits
Compute SQuAD end_logits from sequence hidden states and start token hidden state.
bert/modeling_utils.py:858
↓ 1 callers
Class
PoolerStartLogits
Compute SQuAD start_logits from sequence hidden states.
bert/modeling_utils.py:834
↓ 1 callers
Class
PretrainedConfig
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 callers
Class
ProgressMeter
utils/misc.py:99
↓ 1 callers
Class
SpatialImageLanguageAttention
model/backbone.py:678
↓ 1 callers
Class
StreamToLoguru
stream object that redirects writes to a logger instance.
utils/misc.py:228
↓ 1 callers
Class
SwinTransformerBlock
Swin Transformer Block. Args: dim (int): Number of input channels. num_heads (int): Number of attention heads. window_si
model/backbone.py:146
↓ 1 callers
Class
TensorType
bert/tokenization_utils_base.py:99
↓ 1 callers
Class
TokenSpan
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 callers
Class
WindowAttention
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 callers
Class
WordpieceTokenizer
Runs WordPiece tokenization.
bert/tokenization_bert.py:487
Class
BertConfig
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
Class
BertForMaskedLM
bert/modeling_bert.py:1005
Class
BertForMultipleChoice
bert/modeling_bert.py:1295
Class
BertForNextSentencePrediction
bert/modeling_bert.py:1116
Class
BertForPreTraining
bert/modeling_bert.py:778
Class
BertForQuestionAnswering
bert/modeling_bert.py:1477
Class
BertForSequenceClassification
bert/modeling_bert.py:1208
Class
BertForTokenClassification
bert/modeling_bert.py:1389
Class
BertLMHeadModel
bert/modeling_bert.py:894
Class
BertPreTrainedModel
An abstract class to handle weights initialization and a simple interface for downloading and loading pretrained models.
bert/modeling_bert.py:542
Class
BertTokenizer
r""" Constructs a BERT tokenizer. Based on WordPiece. This tokenizer inherits from :class:`~transformers.PreTrainedTokenizer` which contains
bert/tokenization_bert.py:117
Class
DynamicAdapter
model/backbone.py:612
Class
ExplicitEnum
Enum with more explicit error message for missing values.
bert/tokenization_utils_base.py:74
Class
GenerationMixin
A class contraining all of the functions supporting generation, to be used as a mixin in PreTrainedModel.
bert/generation_utils.py:28
Class
ModuleUtilsMixin
A few utilities for torch.nn.Modules, to be used as a mixin.
bert/modeling_utils.py:73
Class
OriLoadToken
model/layers.py:189
Class
PatchMerging
Patch Merging Layer Args: dim (int): Number of input channels. norm_layer (nn.Module, optional): Normalization layer. Default:
model/backbone.py:248
Class
PreTrainedModel
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
Class
PreTrainedTokenizer
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
Class
PreTrainedTokenizerBase
Base class for slow and fast tokenizers. Handle shared (mostly boiler plate) methods for slow and fast tokenizers.
bert/tokenization_utils_base.py:1015
Class
RefDataset
utils/dataset_open.py:98
Class
SQuADHead
r""" A SQuAD head inspired by XLNet. Parameters: config (:class:`~transformers.XLNetConfig`): Model configuration class with all the para
bert/modeling_utils.py:952
Class
SequenceSummary
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
Class
SimpleTokenizer
utils/simple_tokenizer.py:62
Class
SpecialTokensMixin
SpecialTokensMixin is derived by ``PreTrainedTokenizer`` and ``PreTrainedTokenizerFast`` and handles specific behaviors related to special to
bert/tokenization_utils_base.py:565
Class
cached_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