MCPcopy Create free account

hub / github.com/CompVis/diff2flow / types & classes

Types & classes79 in github.com/CompVis/diff2flow

↓ 20 callersClassBlock
diff2flow/tiny_autoencoder.py:19
↓ 6 callersClassResBlock
A residual block that can optionally change the number of channels. :param channels: the number of input channels. :param emb_channels: t
diff2flow/models/unet/openaimodel.py:166
↓ 6 callersClassResnetBlock
diff2flow/kl_autoencoder.py:121
↓ 5 callersClassTimestepEmbedSequential
A sequential module that passes timestep embeddings to the children that support it as an extra input.
diff2flow/models/unet/openaimodel.py:77
↓ 4 callersClassLoraLinear
diff2flow/lora.py:53
↓ 3 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
diff2flow/models/unet/openaimodel.py:281
↓ 3 callersClassDownsample
A downsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determini
diff2flow/models/unet/openaimodel.py:137
↓ 3 callersClassSpatialTransformer
Transformer block for image-like data. First, project the input (aka embedding) and reshape to b, t, d. Then apply standard transform
diff2flow/models/unet/attention.py:276
↓ 3 callersClassUpsample
An upsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determinin
diff2flow/models/unet/openaimodel.py:94
↓ 2 callersClassForwardDiffusion
diff2flow/diffusion.py:36
↓ 2 callersClassQKVAttention
A module which performs QKV attention and splits in a different order.
diff2flow/models/unet/openaimodel.py:382
↓ 1 callersClassAutoencoderKL
diff2flow/kl_autoencoder.py:463
↓ 1 callersClassBasicTransformerBlock
diff2flow/models/unet/attention.py:244
↓ 1 callersClassClamp
diff2flow/tiny_autoencoder.py:14
↓ 1 callersClassDDIMSampler
diff2flow/ddim.py:52
↓ 1 callersClassDataProvider
diff2flow/lora.py:25
↓ 1 callersClassDecoder
diff2flow/kl_autoencoder.py:340
↓ 1 callersClassDiagonalGaussianDistribution
diff2flow/kl_autoencoder.py:45
↓ 1 callersClassDownsample
diff2flow/kl_autoencoder.py:103
↓ 1 callersClassEMA
Implements exponential moving average shadowing for your model. Utilizes an inverse decay schedule to manage longer term training runs.
diff2flow/ema.py:32
↓ 1 callersClassEncoder
diff2flow/kl_autoencoder.py:250
↓ 1 callersClassFeedForward
diff2flow/models/unet/attention.py:57
↓ 1 callersClassFlowSDE
diff2flow/flow.py:225
↓ 1 callersClassFrozenCLIPEmbedder
Uses the CLIP transformer encoder for text (from Hugging Face)
diff2flow/conditioning/encoders.py:224
↓ 1 callersClassGEGLU
diff2flow/models/unet/attention.py:47
↓ 1 callersClassGVPSchedule
diff2flow/flow.py:164
↓ 1 callersClassGaussianDiffusion
diff2flow/ddpm.py:91
↓ 1 callersClassGaussianDiffusion
Utilities for training and sampling diffusion models. Original ported from this codebase: https://github.com/hojonathanho/diffusion/blob/
diff2flow/openai_diffusion/gaussian_diffusion.py:144
↓ 1 callersClassGroupNorm32
diff2flow/models/unet/util.py:110
↓ 1 callersClassIterExponential
diff2flow/lr_schedulers.py:83
↓ 1 callersClassLinearSchedule
diff2flow/flow.py:60
↓ 1 callersClassLoRAAdapterConv
diff2flow/lora.py:121
↓ 1 callersClassLoRAConv
diff2flow/lora.py:83
↓ 1 callersClassLossSecondMomentResampler
diff2flow/openai_diffusion/timestep_sampler.py:120
↓ 1 callersClassMemoryEfficientAttnBlock
Uses xformers efficient implementation, see https://github.com/MatthieuTPHR/diffusers/blob/d80b531ff8060ec1ea982b65a1b8df70f73aa67c/src/diffu
diff2flow/kl_autoencoder.py:178
↓ 1 callersClassQKVAttentionLegacy
A module which performs QKV attention. Matches legacy QKVAttention + input/ouput heads shaping
diff2flow/models/unet/openaimodel.py:350
↓ 1 callersClassSpacedDiffusion
A diffusion process which can skip steps in a base diffusion process. :param use_timesteps: a collection (sequence or set) of timesteps from
diff2flow/openai_diffusion/respace.py:65
↓ 1 callersClassStepSDE
SDE solver class
diff2flow/flow.py:185
↓ 1 callersClassTinyAutoencoderKL
diff2flow/tiny_autoencoder.py:49
↓ 1 callersClassTrainerModuleLatentFM
diff2flow/trainer_module.py:28
↓ 1 callersClassUNetModel
The full UNet model with attention and timestep embedding. :param in_channels: channels in the input Tensor. :param model_channels: base
diff2flow/models/unet/openaimodel.py:425
↓ 1 callersClassUniformSampler
diff2flow/openai_diffusion/timestep_sampler.py:62
↓ 1 callersClassUpsample
diff2flow/kl_autoencoder.py:89
↓ 1 callersClass_WrappedModel
diff2flow/openai_diffusion/respace.py:117
ClassAddNoiseLatent
diff2flow/dataset/image_preprocessing.py:32
ClassAttentionPool2d
Adapted from CLIP: https://github.com/openai/CLIP/blob/main/clip/model.py
diff2flow/models/unet/openaimodel.py:35
ClassCenterCropResize
diff2flow/dataset/image_preprocessing.py:6
ClassCheckpointFunction
diff2flow/models/unet/attention.py:358
ClassCheckpointFunction
diff2flow/models/unet/util.py:34
ClassClipImageEmbedder
diff2flow/conditioning/encoders.py:12
ClassCrossAttention
diff2flow/models/unet/attention.py:143
ClassDataModuleFromConfig
diff2flow/dataloader.py:213
ClassDatasetPreprocessor
diff2flow/dataset/depth_preprocessing.py:115
ClassDepthMetricTracker
diff2flow/metrics.py:62
ClassDiffusionFlow
diff2flow/diffusion.py:71
ClassDummyDataset
diff2flow/dataloader.py:264
ClassDummyOpenCLIPTextEmbedder
diff2flow/conditioning/encoders.py:65
ClassFlowModel
diff2flow/flow.py:394
ClassFlowModelObj
diff2flow/flow_obj.py:19
ClassFrozenOpenCLIPEmbedder
Uses the OpenCLIP transformer encoder for text
diff2flow/conditioning/encoders.py:148
ClassFrozenOpenCLIPImageEmbedder
diff2flow/conditioning/encoders.py:96
ClassImageDepthVisualizer
diff2flow/visualizer.py:94
ClassImageMetricTracker
diff2flow/metrics.py:20
ClassImageVisualizer
diff2flow/visualizer.py:51
ClassLogitNormalSampler
diff2flow/flow.py:377
ClassLossAwareSampler
diff2flow/openai_diffusion/timestep_sampler.py:71
ClassLossType
diff2flow/openai_diffusion/gaussian_diffusion.py:46
ClassMemoryEfficientCrossAttention
diff2flow/models/unet/attention.py:195
ClassModelMeanType
Which type of output the model predicts.
diff2flow/openai_diffusion/gaussian_diffusion.py:23
ClassModelVarType
What is used as the model's output variance. The LEARNED_RANGE option has been added to allow the model to predict values between FIXED_S
diff2flow/openai_diffusion/gaussian_diffusion.py:33
ClassRescaleDiffusersLatent
diff2flow/dataset/image_preprocessing.py:19
ClassScheduleSampler
A distribution over timesteps in the diffusion process, intended to reduce variance of the objective. By default, samplers perform unbias
diff2flow/openai_diffusion/timestep_sampler.py:27
ClassSpatialSelfAttention
diff2flow/models/unet/attention.py:90
ClassT2IVisualizer
diff2flow/visualizer.py:65
ClassTimer
diff2flow/helpers.py:124
ClassTimestep
diff2flow/models/unet/openaimodel.py:416
ClassTimestepBlock
Any module where forward() takes timestep embeddings as a second argument.
diff2flow/models/unet/openaimodel.py:65
ClassTransposedUpsample
Learned 2x upsampling without padding
diff2flow/models/unet/openaimodel.py:124
ClassWebDataModuleFromConfig
diff2flow/dataloader.py:54