Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JiangkaiWu/Promptus
/ types & classes
Types & classes
174 in github.com/JiangkaiWu/Promptus
⨍
Functions
645
◇
Types & classes
174
↳
Endpoints
3
↓ 19 callers
Class
QParam
quantization.py:53
↓ 10 callers
Class
TimestepEmbedSequential
A sequential module that passes timestep embeddings to the children that support it as an extra input.
sgm/modules/diffusionmodules/openaimodel.py:66
↓ 8 callers
Class
ResBlock
A residual block that can optionally change the number of channels. :param channels: the number of input channels. :param emb_channels: t
sgm/modules/diffusionmodules/openaimodel.py:210
↓ 7 callers
Class
ResnetBlock
sgm/modules/diffusionmodules/model.py:94
↓ 6 callers
Class
SamplingSpec
sgm/inference/api.py:80
↓ 5 callers
Class
LossBuilder
lossbuilder.py:6
↓ 5 callers
Class
NetLinLayer
A single linear layer which does a 1x1 conv
sgm/modules/autoencoding/lpips/loss/lpips.py:81
↓ 5 callers
Class
SpatialTransformer
Transformer block for image-like data. First, project the input (aka embedding) and reshape to b, t, d. Then apply standard transform
sgm/modules/attention.py:619
↓ 4 callers
Class
BasicTransformerBlock
sgm/modules/attention.py:456
↓ 4 callers
Class
FeedForward
sgm/modules/attention.py:97
↓ 3 callers
Class
DeepFloydDataFiltering
scripts/util/detection/nsfw_and_watermark_dectection.py:39
↓ 3 callers
Class
Downsample
A downsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determini
sgm/modules/diffusionmodules/openaimodel.py:160
↓ 3 callers
Class
Downsample
sgm/modules/diffusionmodules/model.py:74
↓ 3 callers
Class
Engine
tensorrt_acceleration/utilities.py:82
↓ 3 callers
Class
LPIPS
sgm/modules/autoencoding/lpips/loss/lpips.py:12
↓ 3 callers
Class
MNISTDataDictWrapper
sgm/data/mnist.py:7
↓ 3 callers
Class
Timestep
sgm/modules/diffusionmodules/openaimodel.py:463
↓ 3 callers
Class
Upsample
An upsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determinin
sgm/modules/diffusionmodules/openaimodel.py:107
↓ 3 callers
Class
Upsample
sgm/modules/diffusionmodules/model.py:58
↓ 3 callers
Class
VideoTransformerBlock
sgm/modules/video_attention.py:15
↓ 2 callers
Class
AlphaBlender
sgm/modules/diffusionmodules/util.py:312
↓ 2 callers
Class
CIFAR10DataDictWrapper
sgm/data/cifar10.py:7
↓ 2 callers
Class
DPMPP2MSampler
sgm/modules/diffusionmodules/sampling.py:287
↓ 2 callers
Class
DPMPP2SAncestralSampler
sgm/modules/diffusionmodules/sampling.py:247
↓ 2 callers
Class
EulerAncestralSampler
sgm/modules/diffusionmodules/sampling.py:237
↓ 2 callers
Class
EulerEDMSampler
sgm/modules/diffusionmodules/sampling.py:211
↓ 2 callers
Class
HeunEDMSampler
sgm/modules/diffusionmodules/sampling.py:218
↓ 2 callers
Class
LinearMultistepSampler
sgm/modules/diffusionmodules/sampling.py:173
↓ 2 callers
Class
LitEma
sgm/modules/ema.py:5
↓ 2 callers
Class
QKVAttention
A module which performs QKV attention and splits in a different order.
sgm/modules/diffusionmodules/openaimodel.py:433
↓ 1 callers
Class
AttnBlock
sgm/modules/diffusionmodules/model.py:161
↓ 1 callers
Class
DiagonalGaussianDistribution
sgm/modules/distributions/distributions.py:24
↓ 1 callers
Class
DiagonalGaussianRegularizer
sgm/modules/autoencoding/regularizers/__init__.py:13
↓ 1 callers
Class
EmbeddingEMA
sgm/modules/autoencoding/regularizers/quantize.py:323
↓ 1 callers
Class
FrozenCLIPEmbedder
Uses the CLIP transformer encoder for text (from huggingface)
sgm/modules/encoders/modules.py:331
↓ 1 callers
Class
FrozenT5Embedder
Uses the T5 transformer encoder for text
sgm/modules/encoders/modules.py:249
↓ 1 callers
Class
GEGLU
sgm/modules/attention.py:87
↓ 1 callers
Class
Generator
realtime_demo.py:15
↓ 1 callers
Class
GetWatermarkMatch
scripts/demo/detect.py:77
↓ 1 callers
Class
GroupNorm32
sgm/modules/diffusionmodules/util.py:274
↓ 1 callers
Class
Img2ImgDiscretizationWrapper
wraps a discretizer, and prunes the sigmas params: strength: float between 0.0 and 1.0. 1.0 means full sampling (all sigmas are retur
scripts/demo/discretization.py:6
↓ 1 callers
Class
Img2ImgDiscretizationWrapper
wraps a discretizer, and prunes the sigmas params: strength: float between 0.0 and 1.0. 1.0 means full sampling (all sigmas are retur
sgm/inference/helpers.py:77
↓ 1 callers
Class
LinAttnBlock
to match AttnBlock usage
sgm/modules/diffusionmodules/model.py:154
↓ 1 callers
Class
MemoryEfficientAttnBlock
Uses xformers efficient implementation, see https://github.com/MatthieuTPHR/diffusers/blob/d80b531ff8060ec1ea982b65a1b8df70f73aa67c/src/diffu
sgm/modules/diffusionmodules/model.py:204
↓ 1 callers
Class
MemoryEfficientCrossAttentionWrapper
sgm/modules/diffusionmodules/model.py:268
↓ 1 callers
Class
QKVAttentionLegacy
A module which performs QKV attention. Matches legacy QKVAttention + input/ouput heads shaping
sgm/modules/diffusionmodules/openaimodel.py:405
↓ 1 callers
Class
ScalingLayer
sgm/modules/autoencoding/lpips/loss/lpips.py:67
↓ 1 callers
Class
SeededNoise
inversion.py:57
↓ 1 callers
Class
SeededNoise
generation.py:61
↓ 1 callers
Class
SeededNoise
scripts/demo/turbo.py:53
↓ 1 callers
Class
SeededNoise
scripts/demo/turbo_demo.py:61
↓ 1 callers
Class
SpatialVideoTransformer
sgm/modules/video_attention.py:146
↓ 1 callers
Class
SubstepSampler
inversion.py:31
↓ 1 callers
Class
SubstepSampler
generation.py:35
↓ 1 callers
Class
SubstepSampler
scripts/demo/turbo.py:27
↓ 1 callers
Class
SubstepSampler
scripts/demo/turbo_demo.py:35
↓ 1 callers
Class
Txt2NoisyDiscretizationWrapper
wraps a discretizer, and prunes the sigmas params: strength: float between 0.0 and 1.0. 0.0 means full sampling (all sigmas are retur
scripts/demo/discretization.py:30
↓ 1 callers
Class
VideoResBlock
sgm/modules/diffusionmodules/video_model.py:12
↓ 1 callers
Class
WatermarkDecoder
A minimal version of https://github.com/ShieldMnt/invisible-watermark/blob/main/imwatermark/watermark.py to only reconstruct b
scripts/demo/detect.py:21
↓ 1 callers
Class
WatermarkEmbedder
sgm/inference/helpers.py:16
↓ 1 callers
Class
vgg16
sgm/modules/autoencoding/lpips/loss/lpips.py:99
Class
AE3DConv
sgm/modules/autoencoding/temporal_ae.py:86
Class
AEIntegerWrapper
sgm/models/autoencoder.py:567
Class
AbstractAutoencoder
This is the base class for all autoencoders, including image autoencoders, image autoencoders with discriminators, unCLIP models, etc. Hence,
sgm/models/autoencoder.py:22
Class
AbstractDistribution
sgm/modules/distributions/distributions.py:5
Class
AbstractEmbModel
sgm/modules/encoders/modules.py:27
Class
AbstractQuantizer
sgm/modules/autoencoding/regularizers/quantize.py:17
Class
AbstractRegularizer
sgm/modules/autoencoding/regularizers/base.py:9
Class
ActNorm
sgm/modules/autoencoding/lpips/util.py:45
Class
AncestralSampler
sgm/modules/diffusionmodules/sampling.py:133
Class
AttentionBlock
An attention block that allows spatial positions to attend to each other. Originally ported from here, but adapted to the N-d case. https
sgm/modules/diffusionmodules/openaimodel.py:357
Class
AttentionPool2d
Adapted from CLIP: https://github.com/openai/CLIP/blob/main/clip/model.py
sgm/modules/diffusionmodules/openaimodel.py:22
Class
AutoencoderKL
sgm/models/autoencoder.py:508
Class
AutoencoderKLModeOnly
sgm/models/autoencoder.py:606
Class
AutoencoderLegacyVQ
sgm/models/autoencoder.py:523
Class
AutoencodingEngine
Base class for all image autoencoders that we train, like VQGAN or AutoencoderKL (we also restore them explicitly as special cases for legacy
sgm/models/autoencoder.py:102
Class
AutoencodingEngineLegacy
sgm/models/autoencoder.py:437
Class
BaseDiffusionSampler
sgm/modules/diffusionmodules/sampling.py:21
Class
BasicTransformerSingleLayerBlock
sgm/modules/attention.py:575
Class
CIFAR10Loader
sgm/data/cifar10.py:20
Class
CheckpointFunction
sgm/modules/diffusionmodules/util.py:171
Class
ClassEmbedder
sgm/modules/encoders/modules.py:215
Class
ClassEmbedderForMultiCond
sgm/modules/encoders/modules.py:237
Class
ConcatTimestepEmbedderND
embeds each dimension independently and concatenates them
sgm/modules/encoders/modules.py:922
Class
Conv2DWrapper
sgm/modules/autoencoding/temporal_ae.py:288
Class
CrossAttention
sgm/modules/attention.py:255
Class
Decoder
sgm/modules/diffusionmodules/model.py:604
Class
Denoiser
sgm/modules/diffusionmodules/denoiser.py:11
Class
DenoiserScaling
sgm/modules/diffusionmodules/denoiser_scaling.py:7
Class
DiffusionEngine
sgm/models/diffusion.py:19
Class
DiffusionLossWeighting
sgm/modules/diffusionmodules/loss_weighting.py:6
Class
DiracDistribution
sgm/modules/distributions/distributions.py:13
Class
DiscreteDenoiser
sgm/modules/diffusionmodules/denoiser.py:42
Class
DiscreteSampling
sgm/modules/diffusionmodules/sigma_sampling.py:16
Class
Discretization
sgm/modules/diffusionmodules/discretizer.py:17
Class
Discretization
sgm/inference/api.py:37
Class
EDMDiscretization
sgm/modules/diffusionmodules/discretizer.py:28
Class
EDMSampler
sgm/modules/diffusionmodules/sampling.py:82
Class
EDMSampling
sgm/modules/diffusionmodules/sigma_sampling.py:6
Class
EDMScaling
sgm/modules/diffusionmodules/denoiser_scaling.py:15
next →
1–100 of 174, ranked by callers