MCPcopy Create free account

hub / github.com/Vanessik/HAAR / types & classes

Types & classes41 in github.com/Vanessik/HAAR

↓ 10 callersClassResBlock
A residual block that can optionally change the number of channels. :param channels: the number of input channels. :param emb_channels: t
src/openaimodel.py:164
↓ 9 callersClassTimestepEmbedSequential
A sequential module that passes timestep embeddings to the children that support it as an extra input.
src/openaimodel.py:75
↓ 5 callersClassAttentionBlock
An attention block that allows spatial positions to attend to each other. Originally ported from here, but adapted to the N-d case. https
src/openaimodel.py:279
↓ 4 callersClassDownsample
A downsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determini
src/openaimodel.py:135
↓ 4 callersClassHairstyle
src/datasets/dataset.py:20
↓ 3 callersClassHairstyleUpsampler
src/upsampling/upsampler.py:10
↓ 3 callersClassSpatialTransformer
Transformer block for image-like data. First, project the input (aka embedding) and reshape to b, t, d. Then apply standard transform
src/utils/attention.py:220
↓ 3 callersClassUpsample
An upsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determinin
src/openaimodel.py:92
↓ 2 callersClassCrossAttention
src/utils/attention.py:154
↓ 2 callersClassQKVAttention
A module which performs QKV attention and splits in a different order.
src/openaimodel.py:380
↓ 1 callersClassAttentionPool2d
Adapted from CLIP: https://github.com/openai/CLIP/blob/main/clip/model.py
src/openaimodel.py:33
↓ 1 callersClassAugmentHairstyle
src/datasets/aug_dataset.py:17
↓ 1 callersClassBasicTransformerBlock
src/utils/attention.py:198
↓ 1 callersClassConditionedSequential
src/utils/layers.py:166
↓ 1 callersClassFeedForward
src/utils/attention.py:49
↓ 1 callersClassGEGLU
src/utils/attention.py:39
↓ 1 callersClassGroupNorm32
src/utils/util.py:225
↓ 1 callersClassQKVAttentionLegacy
A module which performs QKV attention. Matches legacy QKVAttention + input/ouput heads shaping
src/openaimodel.py:348
↓ 1 callersClassUNetModel
The full UNet model with attention and timestep embedding. :param in_channels: channels in the input Tensor. :param model_channels: base
src/openaimodel.py:414
ClassAdaGN
src/utils/layers.py:187
ClassCheckpointFunction
src/utils/util.py:130
ClassConditionedModule
src/utils/layers.py:153
ClassConditionedResidualBlock
src/utils/layers.py:176
ClassCrossAttention2d
src/utils/layers.py:230
ClassDenoiser
A Karras et al. preconditioner for denoising diffusion models.
src/utils/layers.py:49
ClassDenoiserWithVariance
src/utils/layers.py:107
ClassDownsample2d
src/utils/layers.py:289
ClassEncoderUNetModel
The half UNet model with attention and timestep embedding. For usage, see UNet.
src/openaimodel.py:760
ClassFourierFeatures
src/utils/layers.py:323
ClassHybridConditioner
src/utils/util.py:262
ClassLinearAttention
src/utils/attention.py:82
ClassResidualBlock
src/utils/layers.py:141
ClassSelfAttention2d
src/utils/layers.py:206
ClassSiLU
src/utils/util.py:220
ClassSimpleLossDenoiser
L_simple with the Karras et al. preconditioner.
src/utils/layers.py:126
ClassSpatialSelfAttention
src/utils/attention.py:101
ClassTimestepBlock
Any module where forward() takes timestep embeddings as a second argument.
src/openaimodel.py:63
ClassTransposedUpsample
Learned 2x upsampling without padding
src/openaimodel.py:122
ClassUNet
src/utils/layers.py:336
ClassUnconditionedModule
src/utils/layers.py:157
ClassUpsample2d
src/utils/layers.py:305