Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytetriper/RAE
/ types & classes
Types & classes
71 in github.com/bytetriper/RAE
⨍
Functions
315
◇
Types & classes
71
↓ 6 callers
Class
RMSNorm
src/stage2/models/model_utils.py:275
↓ 5 callers
Class
NetLinLayer
A single linear layer which does a 1x1 conv
src/eval/utils.py:36
↓ 5 callers
Class
NetLinLayer
src/disc/lpips.py:25
↓ 4 callers
Class
PatchEmbed
src/disc/dinodisc.py:271
↓ 3 callers
Class
Sampler
Sampler class for the transport model
src/stage2/transport/transport.py:282
↓ 3 callers
Class
VisionRotaryEmbeddingFast
src/stage2/models/model_utils.py:139
↓ 2 callers
Class
GaussianFourierEmbedding
Gaussian Fourier Embedding for timesteps.
src/stage2/models/model_utils.py:385
↓ 2 callers
Class
ImgArrDataset
Serve as the wrapper purpose for `torch-fidelity` to calculate the metrics (FID), which expects [B, C, H, W] tensor in uint8. We are returnin
src/eval/utils.py:124
↓ 2 callers
Class
LabelEmbedder
Embeds class labels into vector representations. Also handles label dropout for classifier-free guidance.
src/stage2/models/model_utils.py:411
↓ 2 callers
Class
LayerNormwStatistics
BN-like running-statistics accumulator over batch dim only. Input: x of shape (B, *input_shape) where input_shape = (C, ...) typically.
src/calculate_stat.py:65
↓ 2 callers
Class
NormAttention
Attention module of LightningDiT.
src/stage2/models/model_utils.py:321
↓ 2 callers
Class
SwiGLUFFN
src/stage2/models/model_utils.py:252
↓ 1 callers
Class
BatchNormLocal
src/disc/dinodisc.py:113
↓ 1 callers
Class
DDTFinalLayer
The final layer of DDT.
src/stage2/models/DDT.py:155
↓ 1 callers
Class
DiffAug
src/disc/diffaug.py:8
↓ 1 callers
Class
DinoDiscriminator
Thin wrapper aligning with legacy API expecting (fake, real) outputs.
src/disc/discriminator.py:8
↓ 1 callers
Class
FrozenDINONoDrop
src/disc/dinodisc.py:285
↓ 1 callers
Class
GeneralDecoder
src/stage1/decoders/decoder.py:542
↓ 1 callers
Class
IndexedImageFolder
ImageFolder that also returns the dataset index.
src/stage1_sample_ddp.py:54
↓ 1 callers
Class
IndexedImageFolder
ImageFolder that also returns the dataset index.
src/calculate_stat.py:54
↓ 1 callers
Class
LPIPS
src/eval/utils.py:83
↓ 1 callers
Class
LPIPS
Learned perceptual metric used by VQGAN.
src/disc/lpips.py:70
↓ 1 callers
Class
LightningDDTBlock
Lightning DiT Block. We add features including: - ROPE - QKNorm - RMSNorm - SwiGLU - No shift AdaLN. Not all of them ar
src/stage2/models/DDT.py:66
↓ 1 callers
Class
LightningDiTBlock
Lightning DiT Block. We add features including: - ROPE - QKNorm - RMSNorm - SwiGLU - No shift AdaLN. Not all of them ar
src/stage2/models/lightningDiT.py:12
↓ 1 callers
Class
LightningFinalLayer
The final layer of LightningDiT.
src/stage2/models/lightningDiT.py:90
↓ 1 callers
Class
MLPNoDrop
src/disc/dinodisc.py:26
↓ 1 callers
Class
RandomWindowCrop
Random crop with a fixed catalog of windows (XLA-friendly variant).
src/disc/utils.py:24
↓ 1 callers
Class
ResidualBlock
src/disc/dinodisc.py:96
↓ 1 callers
Class
SABlockNoDrop
src/disc/dinodisc.py:82
↓ 1 callers
Class
ScalingLayer
src/eval/utils.py:27
↓ 1 callers
Class
ScalingLayer
src/disc/lpips.py:15
↓ 1 callers
Class
SelfAttentionNoDrop
src/disc/dinodisc.py:58
↓ 1 callers
Class
Transport
src/stage2/transport/transport.py:86
↓ 1 callers
Class
VGG16
src/eval/utils.py:44
↓ 1 callers
Class
VGG16FeatureExtractor
src/disc/lpips.py:33
↓ 1 callers
Class
ViTMAEAttention
src/stage1/decoders/decoder.py:446
↓ 1 callers
Class
ViTMAEDecoderOutput
Class for ViTMAEDecoder's outputs, with potential hidden states and attentions. Args: logits (`torch.FloatTensor` of shape `(batch_s
src/stage1/decoders/decoder.py:60
↓ 1 callers
Class
ViTMAEIntermediate
src/stage1/decoders/decoder.py:466
↓ 1 callers
Class
ViTMAELayer
This corresponds to the Block class in the timm implementation.
src/stage1/decoders/decoder.py:500
↓ 1 callers
Class
ViTMAEOutput
src/stage1/decoders/decoder.py:483
↓ 1 callers
Class
ViTMAEPatchEmbeddings
This class turns `pixel_values` of shape `(batch_size, num_channels, height, width)` into the initial `hidden_states` (patch embeddings) of s
src/stage1/decoders/decoder.py:297
↓ 1 callers
Class
ViTMAESelfAttention
src/stage1/decoders/decoder.py:334
↓ 1 callers
Class
ViTMAESelfOutput
The residual connection is defined in ViTMAELayer instead of here (as is the case with other models), due to the layernorm applied before eac
src/stage1/decoders/decoder.py:427
↓ 1 callers
Class
ode
ODE solver class
src/stage2/transport/integrators.py:82
↓ 1 callers
Class
sde
SDE solver class
src/stage2/transport/integrators.py:8
Class
DiTwDDTHead
src/stage2/models/DDT.py:183
Class
DinoDisc
src/disc/dinodisc.py:208
Class
Dinov2withNorm
src/stage1/encoders/dinov2.py:9
Class
EasyDict
src/stage2/transport/utils.py:3
Class
GVPCPlan
src/stage2/transport/path.py:175
Class
ICPlan
Linear Coupling Plan
src/stage2/transport/path.py:18
Class
LightningDiT
Diffusion model with a Transformer backbone.
src/stage2/models/lightningDiT.py:111
Class
MAEwNorm
src/stage1/encoders/mae.py:8
Class
ModelType
Which type of output the model predicts.
src/stage2/transport/transport.py:11
Class
PathType
Which type of path to use.
src/stage2/transport/transport.py:20
Class
RAE
src/stage1/rae.py:17
Class
RandomCropStatic
src/disc/dinodisc.py:192
Class
RelativePositionBias2D
2D relative positional bias for full self-attention. Creates a learnable bias table of size (2*H-1) (2*W-1) per head, and a fixed index m
src/stage2/models/model_utils.py:201
Class
SigLIP2wNorm
src/stage1/encoders/siglip2.py:8
Class
SpectralConv1d
src/disc/dinodisc.py:107
Class
Stage1Protocal
src/stage1/rae.py:10
Class
Stage2ModelProtocol
src/stage2/__init__.py:7
Class
Stage2ModelProtocol
src/stage2/models/__init__.py:10
Class
VPCPlan
class for VP path flow matching
src/stage2/transport/path.py:140
Class
ViTMAEConfig
r""" This is the configuration class to store the configuration of a [`ViTMAEModel`]. It is used to instantiate an ViT MAE model according to
src/stage1/decoders/utils.py:6
Class
ViTMAEEmbeddings
Construct the CLS token, position and patch embeddings.
src/stage1/decoders/decoder.py:175
Class
ViTMAEForPreTrainingOutput
Class for ViTMAEForPreTraining's outputs, with potential hidden states and attentions. Args: loss (`torch.FloatTensor` of shape `(1,
src/stage1/decoders/decoder.py:83
Class
ViTMAEModelOutput
Class for ViTMAEModel's outputs, with potential hidden states and attentions. Args: last_hidden_state (`torch.FloatTensor` of shape
src/stage1/decoders/decoder.py:31
Class
ViTMAESdpaSelfAttention
src/stage1/decoders/decoder.py:395
Class
VisionRotaryEmbedding
src/stage2/models/model_utils.py:89
Class
WeightType
Which type of weighting to use.
src/stage2/transport/transport.py:29