MCPcopy Create free account

hub / github.com/Vision-CAIR/VisualGPT / types & classes

Types & classes70 in github.com/Vision-CAIR/VisualGPT

↓ 7 callersClassBatchEncoding
BatchEncoding hold the output of the encode and batch_encode methods (tokens, attention_masks, etc). This class is derived from a python Dict
data/tokenization_utils_base.py:129
↓ 6 callersClassConv1D
models/transformer/gpt_decoder_visualGPT.py:33
↓ 5 callersClassDataLoader
data/__init__.py:7
↓ 3 callersClassConv1D
models/transformer/attention.py:7
↓ 3 callersClassDataset
data/dataset.py:11
↓ 3 callersClassImageFeaturesReader
r""" A reader for H5 files containing pre-extracted image features. A typical image features file should have at least two H5 datasets, na
data/custom_readers.py:47
↓ 3 callersClassLayerNorm
models/transformer/gpt_decoder_visualGPT.py:18
↓ 3 callersClassPairedDataset
data/dataset.py:142
↓ 3 callersClassRawField
Defines a general datatype. Every dataset consists of one or more types of data. For instance, a machine translation dataset contains paired
data/field.py:20
↓ 3 callersClassTruncationStrategy
data/tokenization_utils_base.py:86
↓ 2 callersClassBleuScorer
Bleu scorer.
evaluation/bleu/bleu_scorer.py:79
↓ 2 callersClassCharSpan
Character span in the original string Args: start: index of the first character in the original string end: index of
data/tokenization_utils_base.py:105
↓ 2 callersClassCider
Main Class to compute the CIDEr metric
evaluation/cider/cider.py:4
↓ 2 callersClassCiderScorer
CIDEr scorer.
evaluation/cider/cider_scorer.py:44
↓ 2 callersClassDictionaryDataset
data/dataset.py:91
↓ 2 callersClassGPT2Config
models/transformer/config.py:6
↓ 2 callersClassGPT2LMHeadModel
models/transformer/gpt_decoder_visualGPT.py:368
↓ 1 callersClassAttention
models/transformer/gpt_decoder_visualGPT.py:51
↓ 1 callersClassBeamSearch
models/beam_search/beam_search.py:5
↓ 1 callersClassBleu
evaluation/bleu/bleu.py:6
↓ 1 callersClassBlock
models/transformer/gpt_decoder_visualGPT.py:228
↓ 1 callersClassCOCO
data/dataset.py:181
↓ 1 callersClassCocoCaptionsPointerReader
data/custom_readers.py:229
↓ 1 callersClassDummyFile
data/utils.py:3
↓ 1 callersClassEnc_Dec_Attention
models/transformer/gpt_decoder_visualGPT.py:131
↓ 1 callersClassEncoder
data/encoder.py:41
↓ 1 callersClassEncoderLayer
models/transformer/encoders.py:8
↓ 1 callersClassGPT2LMHead
models/transformer/gpt_decoder_visualGPT.py:350
↓ 1 callersClassGPT2Model
models/transformer/gpt_decoder_visualGPT.py:295
↓ 1 callersClassImageDetectionsField
data/field.py:86
↓ 1 callersClassMLP
models/transformer/gpt_decoder_visualGPT.py:215
↓ 1 callersClassMeteor
evaluation/meteor/meteor.py:11
↓ 1 callersClassModuleList
models/containers.py:76
↓ 1 callersClassMultiHeadAttention
Multi-head attention layer with Dropout and Layer Normalization.
models/transformer/attention.py:203
↓ 1 callersClassPaddingStrategy
data/tokenization_utils_base.py:93
↓ 1 callersClassPositionWiseFeedForward
Position-wise feed forward layer
models/transformer/utils.py:27
↓ 1 callersClassRouge
Class for computing ROUGE-L score for a set of candidate sentences for the MS COCO test set
evaluation/rouge/rouge.py:31
↓ 1 callersClassScaledDotProductAttention
Scaled dot-product attention
models/transformer/attention.py:27
↓ 1 callersClassTensorType
data/tokenization_utils_base.py:99
↓ 1 callersClassTextField
data/field.py:130
↓ 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
data/tokenization_utils_base.py:117
↓ 1 callersClassTransformer_visualgpt
models/transformer/transformer_visualGPT.py:15
↓ 1 callersClassValueDataset
data/dataset.py:57
↓ 1 callersClassVisualEncoder
models/transformer/encoders.py:52
ClassCaptioningModel
models/captioning_model.py:8
ClassCharNGram
data/vocab.py:490
ClassCocoCaptionsReader
r""" A reader for annotation files containing training captions. These are JSON files in COCO format. Parameters ---------- capti
data/custom_readers.py:149
ClassEvaluationDataset
r""" A PyTorch :class:`~torch.utils.data.Dataset` providing image features for inference. When wrapped with a :class:`~torch.utils.data.DataLo
data/custom_datasets.py:157
ClassEvaluationDatasetWithConstraints
r""" A PyTorch :class:`~torch.utils.data.Dataset` providing image features for inference, along with constraints for :class:`~updown.modules.c
data/custom_datasets.py:257
ClassExample
Defines a single training or test example. Stores each column of the example as an attribute.
data/example.py:2
ClassExplicitEnum
Enum with more explicit error message for missing values.
data/tokenization_utils_base.py:74
ClassFastText
data/vocab.py:480
ClassGPT2Tokenizer
GPT-2 BPE tokenizer. Peculiarities: - Byte-level Byte-Pair-Encoding - Requires a space to start the input string => the encoding methods
data/tokenization_gpt2.py:103
ClassGPT2TokenizerFast
Constructs a "Fast" GPT-2 BPE tokenizer (backed by HuggingFace's `tokenizers` library). Peculiarities: - Byte-level Byte-Pair-Encoding
data/tokenization_gpt2.py:288
ClassGloVe
data/vocab.py:466
ClassMerge
data/field.py:68
ClassModule
models/containers.py:6
ClassModuleDict
models/containers.py:80
ClassMultiLevelEncoder
models/transformer/encoders.py:24
ClassPTBTokenizer
Python wrapper of Stanford PTBTokenizer
evaluation/tokenizer.py:15
ClassPreTrainedTokenizer
Base class for all slow tokenizers. Handle all the shared methods for tokenization and special tokens as well as methods downloading/caching
data/tokenization_utils.py:98
ClassPreTrainedTokenizerBase
Base class for slow and fast tokenizers. Handle shared (mostly boiler plate) methods for slow and fast tokenizers.
data/tokenization_utils_base.py:1015
ClassPreTrainedTokenizerFast
Base class for all fast tokenizers (wrapping HuggingFace tokenizers library). Inherit from PreTrainedTokenizer. Handle all the shared metho
data/tokenization_utils_fast.py:44
ClassScaledDotProductAttentionMemory
Scaled dot-product attention with memory
models/transformer/attention.py:130
ClassSpecialTokensMixin
SpecialTokensMixin is derived by ``PreTrainedTokenizer`` and ``PreTrainedTokenizerFast`` and handles specific behaviors related to special to
data/tokenization_utils_base.py:565
ClassTrainingDataset
r""" A PyTorch `:class:`~torch.utils.data.Dataset` providing access to COCO train2017 captions data for training :class:`~updown.models.updown
data/custom_datasets.py:25
ClassVectors
data/vocab.py:349
ClassVocab
Defines a vocabulary object that will be used to numericalize a field. Attributes: freqs: A collections.Counter object holding the freque
data/vocab.py:20
ClassVocab_previous
Defines a vocabulary object that will be used to numericalize a field. Attributes: freqs: A collections.Counter object holding the freque
data/vocab.py:191
Classcached_property
Descriptor that mimics @property but caches output in member variable. From tensorflow_datasets Built-in in functools from Python 3.8.
data/file_utils.py:764