Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vision-CAIR/VisualGPT
/ types & classes
Types & classes
70 in github.com/Vision-CAIR/VisualGPT
⨍
Functions
410
◇
Types & classes
70
↓ 7 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
data/tokenization_utils_base.py:129
↓ 6 callers
Class
Conv1D
models/transformer/gpt_decoder_visualGPT.py:33
↓ 5 callers
Class
DataLoader
data/__init__.py:7
↓ 3 callers
Class
Conv1D
models/transformer/attention.py:7
↓ 3 callers
Class
Dataset
data/dataset.py:11
↓ 3 callers
Class
ImageFeaturesReader
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 callers
Class
LayerNorm
models/transformer/gpt_decoder_visualGPT.py:18
↓ 3 callers
Class
PairedDataset
data/dataset.py:142
↓ 3 callers
Class
RawField
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 callers
Class
TruncationStrategy
data/tokenization_utils_base.py:86
↓ 2 callers
Class
BleuScorer
Bleu scorer.
evaluation/bleu/bleu_scorer.py:79
↓ 2 callers
Class
CharSpan
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 callers
Class
Cider
Main Class to compute the CIDEr metric
evaluation/cider/cider.py:4
↓ 2 callers
Class
CiderScorer
CIDEr scorer.
evaluation/cider/cider_scorer.py:44
↓ 2 callers
Class
DictionaryDataset
data/dataset.py:91
↓ 2 callers
Class
GPT2Config
models/transformer/config.py:6
↓ 2 callers
Class
GPT2LMHeadModel
models/transformer/gpt_decoder_visualGPT.py:368
↓ 1 callers
Class
Attention
models/transformer/gpt_decoder_visualGPT.py:51
↓ 1 callers
Class
BeamSearch
models/beam_search/beam_search.py:5
↓ 1 callers
Class
Bleu
evaluation/bleu/bleu.py:6
↓ 1 callers
Class
Block
models/transformer/gpt_decoder_visualGPT.py:228
↓ 1 callers
Class
COCO
data/dataset.py:181
↓ 1 callers
Class
CocoCaptionsPointerReader
data/custom_readers.py:229
↓ 1 callers
Class
DummyFile
data/utils.py:3
↓ 1 callers
Class
Enc_Dec_Attention
models/transformer/gpt_decoder_visualGPT.py:131
↓ 1 callers
Class
Encoder
data/encoder.py:41
↓ 1 callers
Class
EncoderLayer
models/transformer/encoders.py:8
↓ 1 callers
Class
GPT2LMHead
models/transformer/gpt_decoder_visualGPT.py:350
↓ 1 callers
Class
GPT2Model
models/transformer/gpt_decoder_visualGPT.py:295
↓ 1 callers
Class
ImageDetectionsField
data/field.py:86
↓ 1 callers
Class
MLP
models/transformer/gpt_decoder_visualGPT.py:215
↓ 1 callers
Class
Meteor
evaluation/meteor/meteor.py:11
↓ 1 callers
Class
ModuleList
models/containers.py:76
↓ 1 callers
Class
MultiHeadAttention
Multi-head attention layer with Dropout and Layer Normalization.
models/transformer/attention.py:203
↓ 1 callers
Class
PaddingStrategy
data/tokenization_utils_base.py:93
↓ 1 callers
Class
PositionWiseFeedForward
Position-wise feed forward layer
models/transformer/utils.py:27
↓ 1 callers
Class
Rouge
Class for computing ROUGE-L score for a set of candidate sentences for the MS COCO test set
evaluation/rouge/rouge.py:31
↓ 1 callers
Class
ScaledDotProductAttention
Scaled dot-product attention
models/transformer/attention.py:27
↓ 1 callers
Class
TensorType
data/tokenization_utils_base.py:99
↓ 1 callers
Class
TextField
data/field.py:130
↓ 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
data/tokenization_utils_base.py:117
↓ 1 callers
Class
Transformer_visualgpt
models/transformer/transformer_visualGPT.py:15
↓ 1 callers
Class
ValueDataset
data/dataset.py:57
↓ 1 callers
Class
VisualEncoder
models/transformer/encoders.py:52
Class
CaptioningModel
models/captioning_model.py:8
Class
CharNGram
data/vocab.py:490
Class
CocoCaptionsReader
r""" A reader for annotation files containing training captions. These are JSON files in COCO format. Parameters ---------- capti
data/custom_readers.py:149
Class
EvaluationDataset
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
Class
EvaluationDatasetWithConstraints
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
Class
Example
Defines a single training or test example. Stores each column of the example as an attribute.
data/example.py:2
Class
ExplicitEnum
Enum with more explicit error message for missing values.
data/tokenization_utils_base.py:74
Class
FastText
data/vocab.py:480
Class
GPT2Tokenizer
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
Class
GPT2TokenizerFast
Constructs a "Fast" GPT-2 BPE tokenizer (backed by HuggingFace's `tokenizers` library). Peculiarities: - Byte-level Byte-Pair-Encoding
data/tokenization_gpt2.py:288
Class
GloVe
data/vocab.py:466
Class
Merge
data/field.py:68
Class
Module
models/containers.py:6
Class
ModuleDict
models/containers.py:80
Class
MultiLevelEncoder
models/transformer/encoders.py:24
Class
PTBTokenizer
Python wrapper of Stanford PTBTokenizer
evaluation/tokenizer.py:15
Class
PreTrainedTokenizer
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
Class
PreTrainedTokenizerBase
Base class for slow and fast tokenizers. Handle shared (mostly boiler plate) methods for slow and fast tokenizers.
data/tokenization_utils_base.py:1015
Class
PreTrainedTokenizerFast
Base class for all fast tokenizers (wrapping HuggingFace tokenizers library). Inherit from PreTrainedTokenizer. Handle all the shared metho
data/tokenization_utils_fast.py:44
Class
ScaledDotProductAttentionMemory
Scaled dot-product attention with memory
models/transformer/attention.py:130
Class
SpecialTokensMixin
SpecialTokensMixin is derived by ``PreTrainedTokenizer`` and ``PreTrainedTokenizerFast`` and handles specific behaviors related to special to
data/tokenization_utils_base.py:565
Class
TrainingDataset
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
Class
Vectors
data/vocab.py:349
Class
Vocab
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
Class
Vocab_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
Class
cached_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