Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-research/scenic
/ types & classes
Types & classes
859 in github.com/google-research/scenic
⨍
Functions
4,921
◇
Types & classes
859
↳
Endpoints
16
↓ 7 callers
Class
DatasetInfo
scenic/projects/robust_segvit/datasets/datasets_info.py:45
↓ 5 callers
Class
GaussianOrthogonalRandomMatrix
r"""Class providing a method to create Gaussian orthogonal matrix. Class is responsible for constructing 2D Gaussian orthogonal arrays.
scenic/projects/performer/performer.py:75
↓ 5 callers
Class
MLP
scenic/projects/pixel_llm/modeling/prompt_adapter.py:175
↓ 5 callers
Class
ModelNet40DatasetConfig
Dataset config.
scenic/projects/pointcloud/pointcloud_dataset.py:36
↓ 5 callers
Class
StdConv
Convolution with weight standardized kernel.
scenic/projects/baselines/bit_resnet.py:43
↓ 4 callers
Class
Attention
Attention module.
scenic/projects/baselines/segment_anything/modeling/transformer.py:169
↓ 4 callers
Class
ConvBlock
Implements a multi-layer conv block.
scenic/projects/unloc/heads.py:64
↓ 4 callers
Class
ConvRelu2
Two unpadded convolutions & relus. Attributes: features: Num convolutional features. padding: Type of padding: 'SAME' or 'VALID'. use_b
scenic/projects/baselines/unet.py:63
↓ 4 callers
Class
MultiHeadDotProductAttention
DETR Customized Multi-head dot-product attention. Attributes: num_heads: Number of attention heads. Features (i.e. inputs_q.shape[-1]) sh
scenic/projects/baselines/detr/model.py:220
↓ 4 callers
Class
MyObjectDetectionWithMatchingModel
A dummy set detection model for testing purposes.
scenic/projects/baselines/detr/tests/test_detr_base_model.py:34
↓ 4 callers
Class
ResNetStage
Attention pooling layer. Attributes: features: Number of features. num_layers: Number of bottleneck blocks. stride: Stride in the Bottl
scenic/projects/baselines/clip/layers.py:133
↓ 4 callers
Class
ResNetStage
Attention pooling layer. Attributes: features: Number of features. num_layers: Number of bottleneck blocks. stride: Stride in the Bottl
scenic/projects/owl_vit/clip/layers.py:137
↓ 3 callers
Class
BBoxCoordPredictor
FFN block for predicting bounding box coordinates.
scenic/projects/baselines/deformable_detr/deformable_transformer.py:54
↓ 3 callers
Class
BERT
BERT.
scenic/projects/baselines/bert/model.py:31
↓ 3 callers
Class
CustomMultiHeadDotProductAttention
MultiHeadDotProductAttention that supports LoRA.
scenic/projects/pixel_llm/modeling/t5_text_head.py:138
↓ 3 callers
Class
Encoder
Transformer Encoder. **This is same as vit.Encoder(), but without adding positional embedding.** Attributes: num_layers: Number of layers.
scenic/projects/tasseo/duplex_vit.py:28
↓ 3 callers
Class
Encoder1DBlock
Transformer encoder layer. Attributes: mlp_dim: Dimension of the mlp on top of attention block. num_heads: Number of self-attention heads.
scenic/projects/baselines/universal_transformer/uvit/uvit.py:111
↓ 3 callers
Class
Encoder1DBlock
Transformer encoder layer. Attributes: mlp_dim: Dimension of the mlp on top of attention block. num_heads: Number of self-attention heads.
scenic/projects/baselines/pondernet/pondervit/pondervit.py:108
↓ 3 callers
Class
Encoder1DBlock
Transformer encoder layer. Attributes: mlp_dim: Dimension of the mlp on top of attention block. num_heads: Number of self-attention heads.
scenic/projects/polyvit/layers.py:329
↓ 3 callers
Class
FakeMultiLabelClassificationModel
A dummy multi-label classification model for testing purposes.
scenic/model_lib/base_models/tests/test_multilabel_classification_model.py:29
↓ 3 callers
Class
FakeSemanticSegmentationModel
A dummy semantic segmentation model for testing purposes.
scenic/model_lib/base_models/tests/test_segmentation_model.py:31
↓ 3 callers
Class
MlpBlock
Transformer MLP / feed-forward block.
scenic/projects/adatape/layers.py:632
↓ 3 callers
Class
MockActionSegmentationModel
A mock action segmentation model for testing purposes.
scenic/projects/unloc/action_segmentation_base_model_test.py:26
↓ 3 callers
Class
MultiHeadDotProductAttention
LayoutViT Customized Multi-head dot-product attention. Attributes: num_heads: Number of attention heads. Features (i.e. inputs_q.shape[-1])
scenic/projects/layout_denoise/layers/transformer.py:67
↓ 3 callers
Class
MultiScaleDeformableAttention
Layer for MultiScaleDeformableAttention.
scenic/projects/baselines/deformable_detr/attention.py:199
↓ 3 callers
Class
Stringid2IntIdClass
Helper to go from question id (str) to id (int).
scenic/projects/gerald/input_pipeline.py:480
↓ 3 callers
Class
VideoTextSingleTower
Implements a video+text single-tower backbone. Attributes: num_classes: Number of output classes. video_tower_config: The config of the vid
scenic/projects/unloc/model.py:130
↓ 3 callers
Class
XViT
XViT model. Attributes: num_outputs: number of classes. mlp_dim: Dimension of the MLP on top of attention block. num_layers: Number of
scenic/projects/fast_vit/xvit.py:334
↓ 2 callers
Class
AddPositionEmbs
Adds (optionally learned) positional embeddings to the inputs. Attributes: config: hyperparameters of the module
scenic/projects/avatar/models.py:90
↓ 2 callers
Class
AxialResNetStage
ResNet Stage: one or more stacked ResNet blocks. Attributes: block_size: Number of ResNet blocks to stack. nout: Number of features. fi
scenic/projects/baselines/axial_resnet.py:211
↓ 2 callers
Class
AxialResidualUnit
Bottleneck AxialResNet block. Attributes: nout: Number of output features. axial_attention_configs: Configurations of the axial attention.
scenic/projects/baselines/axial_resnet.py:157
↓ 2 callers
Class
AxialSelfAttention
Axial Self Attention module. Attributes: attention_axis: Axis of the attention axial_attention_configs: Configurations of the axial attenti
scenic/projects/baselines/axial_resnet.py:119
↓ 2 callers
Class
BeamState
Holds beam search state data.
scenic/projects/avatar/decode.py:128
↓ 2 callers
Class
BeamState
Holds beam search state data.
scenic/projects/gerald/ger_eval.py:207
↓ 2 callers
Class
BeamState
Holds beam search state data.
scenic/projects/pixel_llm/auto_regressive_decode.py:122
↓ 2 callers
Class
BeamState
Holds beam search state data.
scenic/projects/streaming_dvc/modeling/auto_regressive_decode.py:125
↓ 2 callers
Class
BitResNet
Bit ResNetV1. Attributes: num_outputs: Num output classes. If None, a dict of intermediate feature maps is returned gn_num_groups: Nu
scenic/projects/baselines/bit_resnet.py:142
↓ 2 callers
Class
Bottleneck
Bottleneck layer of ResNet. Attributes: features: Number of features. stride: Stride of the down-sampled output. expansion: Expansion o
scenic/projects/baselines/clip/layers.py:58
↓ 2 callers
Class
Bottleneck
Bottleneck layer of ResNet. Attributes: features: Number of features. stride: Stride of the down-sampled output. expansion: Expansion o
scenic/projects/owl_vit/clip/layers.py:62
↓ 2 callers
Class
ClipTransformer
Clip Transformer module. Attributes: features: Number of features. num_layers: Number of layers for each block. num_heads: Number of he
scenic/projects/unloc/encoders.py:243
↓ 2 callers
Class
DeConv3x3
Deconvolution layer for upscaling. Attributes: features: Num convolutional features. padding: Type of padding: 'SAME' or 'VALID'. use_b
scenic/projects/baselines/unet.py:30
↓ 2 callers
Class
DeformableDETRBackbone
Backbone CNN for multi-scale feature extraction for DeformableDETR. Attributes: num_filters: Number of Resnet filters. num_layers: Number o
scenic/projects/baselines/deformable_detr/backbone.py:99
↓ 2 callers
Class
DeformableDETRDecoder
Sequence of DeformableDETRDecoderLayers. Attributes: embed_dim: Size of the hidden embedding dimension, used for query, value, embeddings
scenic/projects/baselines/deformable_detr/deformable_transformer.py:345
↓ 2 callers
Class
DeformableDETRDecoderLayer
Layer of DeformableDETR decoder. Uses MultiScaleDeformableAttention for cross-attention and typical DETR dense attention for the self-attention.
scenic/projects/baselines/deformable_detr/deformable_transformer.py:233
↓ 2 callers
Class
DeformableDETREncoder
Sequence of DeformableDETREncoderLayer.
scenic/projects/baselines/deformable_detr/deformable_transformer.py:175
↓ 2 callers
Class
DeformableDETREncoderLayer
Layer of DETR encoder.
scenic/projects/baselines/deformable_detr/deformable_transformer.py:95
↓ 2 callers
Class
DeformableDETRTransformer
DeformableDETR Transformer. Attributes: embed_dim: Size of the hidden embedding dimension. enc_embed_dim: Size of the hidden embedding dime
scenic/projects/baselines/deformable_detr/deformable_transformer.py:525
↓ 2 callers
Class
DeformableEncoder
Finds next hidden state.
scenic/projects/boundary_attention/models/model_lib/deformable_attention_blocks.py:155
↓ 2 callers
Class
Encoder
Transformer Encoder. Attributes: inputs: nd-array, Input data temporal_dims: Number of temporal dimensions in the input. mlp_dim: Dimen
scenic/projects/vivit/model.py:343
↓ 2 callers
Class
EncoderMod
Transformer Encoder modified, to use TokenLearner. Attributes: num_layers: Number of layers. mlp_dim: Dimension of the MLP on top of the at
scenic/projects/token_learner/model.py:257
↓ 2 callers
Class
EncoderModFuser
Transformer Encoder modified, to use TokenLearner + TokenFuser. Attributes: num_layers: Number of layers. mlp_dim: Dimension of the MLP on
scenic/projects/token_learner/model.py:342
↓ 2 callers
Class
FakeClassificationModel
A dummy classification model for testing purposes.
scenic/model_lib/base_models/tests/test_classification_model.py:29
↓ 2 callers
Class
FakeEncoderDecoderModel
A dummy encoder-decoder model for testing purposes.
scenic/model_lib/base_models/tests/test_encoder_decoder_model.py:30
↓ 2 callers
Class
FakeFlaxModel
A fake flax model.
scenic/train_lib/tests/test_classification_trainer.py:65
↓ 2 callers
Class
FakeFlaxModel
A fake flax model.
scenic/projects/vivit/tests/test_vivit_trainer.py:64
↓ 2 callers
Class
FakeRegressionModel
A dummy regression model for testing purposes.
scenic/model_lib/base_models/tests/test_regression_model.py:25
↓ 2 callers
Class
FastAttentionviaLowRankDecomposition
Class providing a method for fast attention via low rank decomposition. Class is responsible for providing a method <dot_product_attention> for fas
scenic/projects/fast_vit/model_utils.py:1217
↓ 2 callers
Class
HParams
Parameters for AutoAugment and RandAugment.
scenic/dataset_lib/big_transfer/preprocessing/autoaugment.py:37
↓ 2 callers
Class
InputPosEmbeddingSine
Creates sinusoidal positional embeddings for inputs.
scenic/projects/baselines/deformable_detr/backbone.py:25
↓ 2 callers
Class
InputProj
Simple input projection layer. Attributes: embed_dim: Size of the output embedding dimension. num_groups: Number channel groups for group n
scenic/projects/baselines/deformable_detr/model.py:236
↓ 2 callers
Class
IntegerToTextLabels
Looks up class names from integer labels and adds them as text features. Attributes: tfds_name: The TFDS name of the dataset, used to determi
scenic/projects/owl_vit/preprocessing/label_ops.py:518
↓ 2 callers
Class
MBT
Audio-Visual Fusion Transformer model for Video. Attributes: mlp_dim: Dimension of the mlp on top of attention block. num_layers: Number of
scenic/projects/mbt/model.py:383
↓ 2 callers
Class
MBT
Audio-Visual Fusion Transformer model for Video. Attributes: mlp_dim: Dimension of the mlp on top of attention block. num_classes: Number o
scenic/projects/av_mae/mbt.py:343
↓ 2 callers
Class
MLP
scenic/projects/baselines/segment_anything/modeling/mask_decoder.py:148
↓ 2 callers
Class
MLP
MLP with pre-norm.
scenic/projects/pixel_llm/modeling/mask_adapter.py:118
↓ 2 callers
Class
MlpBlock
Transformer MLP / feed-forward block.
scenic/projects/baselines/detr/model.py:183
↓ 2 callers
Class
MlpBlock
Transformer MLP / feed-forward block.
scenic/projects/baselines/plainvit/plainvit.py:61
↓ 2 callers
Class
MlpBlock
Transformer MLP / feed-forward block.
scenic/projects/layout_denoise/layers/transformer.py:30
↓ 2 callers
Class
MlpBlock
Transformer MLP / feed-forward block. Attributes: config: hyperparameters of the module out_dim: optionally specify out dimension.
scenic/projects/avatar/models.py:148
↓ 2 callers
Class
MockMomentRetrievalModel
A mock moment retrieval model for testing purposes.
scenic/projects/unloc/moment_retrieval_base_model_test.py:26
↓ 2 callers
Class
MockTemporalLocalizationModel
A mock temporal localization model for testing purposes.
scenic/projects/unloc/temporal_localization_base_model_test.py:26
↓ 2 callers
Class
PartitionedTrainState
Dataclass to keep track of state of training. Parameters are separated into frozen and learned parameters. The state of training is structured a
scenic/projects/pixel_llm/partition_utils.py:44
↓ 2 callers
Class
PartitionedTrainState
Dataclass to keep track of state of training. Parameters are separated into frozen and learned parameters. The state of training is structured a
scenic/projects/streaming_dvc/partition_utils.py:44
↓ 2 callers
Class
PointCloudTransformerEncoder
Point Cloud Transformer Encoder.
scenic/projects/pointcloud/models.py:223
↓ 2 callers
Class
PredictOffsets
Predicts deformable attention sampling offsets.
scenic/projects/boundary_attention/models/model_lib/deformable_attention_blocks.py:103
↓ 2 callers
Class
ResNet
ResNet architecture. Attributes: num_outputs: Num output classes. If None, a dict of intermediate feature maps is returned. num_filte
scenic/projects/baselines/resnet.py:80
↓ 2 callers
Class
ResNet
ResNetV1 based on big_vision/models/bit.py. This variant makes the root_block optional. Attributes: num_classes: Number of output channels f
scenic/projects/owl_vit/layers.py:38
↓ 2 callers
Class
ResNetStage
ResNet Stage: one or more stacked ResNet blocks. Attributes: block_size: Number of ResNet blocks to stack. nout: Number of features. fi
scenic/projects/baselines/bit_resnet.py:106
↓ 2 callers
Class
ResidualUnit
Bottleneck ResNet block. Attributes: nout: Number of output features. strides: Downsampling stride. dilation: Kernel dilation. bott
scenic/projects/baselines/bit_resnet.py:53
↓ 2 callers
Class
SimpleCNN
Defines a simple convolutional neural network. The model assumes the input shape is [batch, H, W, C]. Attributes: num_outputs: Number of out
scenic/projects/baselines/simple_cnn.py:31
↓ 2 callers
Class
SpaceTimeViViT
ViT model for Video with factorized space-time attention.
scenic/projects/vivit/model.py:563
↓ 2 callers
Class
SplitDropout
Dropout with two paths.
scenic/projects/adversarialtraining/models/vit_advtrain.py:35
↓ 2 callers
Class
SplitStochasticDepth
Stochastic depth with two paths.
scenic/projects/adversarialtraining/models/vit_advtrain.py:74
↓ 2 callers
Class
State
Holds beam search state data.
scenic/projects/densevoc/modeling/auto_regressive_decode.py:29
↓ 2 callers
Class
State
Holds beam search state data.
scenic/projects/pixel_llm/auto_regressive_decode.py:33
↓ 2 callers
Class
State
Holds beam search state data.
scenic/projects/streaming_dvc/modeling/auto_regressive_decode.py:36
↓ 2 callers
Class
TextZeroShotDetectionModule
Text-query-based OWL-ViT model. This module computes joint text and image embeddings which are then used for localized prediction of bounding box
scenic/projects/owl_vit/models.py:88
↓ 2 callers
Class
TiedWeightsConv
Convolution with tied weights. Attributes: filters: number of filters kernel_size: filter size strides: strides padding: 'SAME' or
scenic/projects/boundary_attention/models/model_lib/patch_mixer_blocks.py:140
↓ 2 callers
Class
TokenLearnerMHA
TokenLearner module using MHA. Attributes: num_tokens: Number of tokens to generate. num_heads: Number of heads to use for the dot product
scenic/projects/token_turing/model.py:33
↓ 2 callers
Class
TokenLearnerModule
TokenLearner module. This is the module used for the experiments in the paper. Attributes: num_tokens: Number of tokens.
scenic/projects/token_learner/model.py:57
↓ 2 callers
Class
TokenLearnerModuleV11
TokenLearner module Version 1.1, using slightly different conv. layers. Instead of using 4 conv. layers with small channels to implement spatial
scenic/projects/token_learner/model.py:127
↓ 2 callers
Class
TokenLearnerViT
Vision Transformer model with TokenLearner. Attributes: num_classes: Number of output classes. mlp_dim: Dimension of the mlp on top of at
scenic/projects/token_learner/model.py:435
↓ 2 callers
Class
Tokenizer2D
Tokenizer for 2D inputs (e.g., images). Attributes: patches: Configuration of the patches extracted in the stem of the model. hidden_size:
scenic/projects/polyvit/layers.py:409
↓ 2 callers
Class
TrainState
scenic/projects/boundary_attention/helpers/train_utils.py:42
↓ 2 callers
Class
Transformer
Transformer module. Attributes: features: Number of features. num_layers: Number of layers for each block. num_heads: Number of heads.
scenic/projects/baselines/clip/layers.py:262
↓ 2 callers
Class
Transformer
Transformer module. Attributes: features: Number of features. num_layers: Number of layers for each block. num_heads: Number of heads.
scenic/projects/owl_vit/clip/layers.py:290
↓ 2 callers
Class
UTStochasticDepth
Performs layer-dropout (also known as stochastic depth). Described in Huang & Sun et al, "Deep Networks with Stochastic Depth", 2016 https://ar
scenic/projects/baselines/universal_transformer/uvit/uvit.py:65
↓ 2 callers
Class
UTStochasticDepth
Performs layer-dropout (also known as stochastic depth). Described in Huang & Sun et al, "Deep Networks with Stochastic Depth", 2016 https://ar
scenic/projects/baselines/pondernet/pondervit/pondervit.py:62
↓ 2 callers
Class
UniversalCOCO
Extends the COCO API to (optionally) support panoptic annotations.
scenic/dataset_lib/coco_dataset/coco_eval.py:70
↓ 2 callers
Class
ViT
Vision Transformer model. This differs from scenic.projects.baselines.vit in that -- Positional embeddings are added before the transformer b
scenic/projects/av_mae/vit.py:35
next →
1–100 of 859, ranked by callers