Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cientgu/VQ-Diffusion
/ types & classes
Types & classes
107 in github.com/cientgu/VQ-Diffusion
⨍
Functions
543
◇
Types & classes
107
↓ 18 callers
Class
ResnetBlock
image_synthesis/taming/modules/diffusionmodules/model.py:78
↓ 10 callers
Class
AttnBlock
image_synthesis/taming/modules/diffusionmodules/model.py:140
↓ 5 callers
Class
LayerNorm
Subclass torch's LayerNorm to handle fp16.
image_synthesis/modeling/modules/clip/model.py:152
↓ 5 callers
Class
NetLinLayer
A single linear layer which does a 1x1 conv
image_synthesis/taming/modules/losses/lpips.py:65
↓ 5 callers
Class
Upsample
image_synthesis/taming/modules/diffusionmodules/model.py:38
↓ 3 callers
Class
AdaLayerNorm
image_synthesis/modeling/transformers/transformer_utils.py:136
↓ 3 callers
Class
Block
an unassuming Transformer block
image_synthesis/modeling/transformers/transformer_utils.py:170
↓ 3 callers
Class
Decoder
image_synthesis/modeling/codecs/image_codec/taming_gumbel_vqvae.py:32
↓ 3 callers
Class
Downsample
image_synthesis/taming/modules/diffusionmodules/model.py:56
↓ 3 callers
Class
Encoder
image_synthesis/modeling/codecs/image_codec/taming_gumbel_vqvae.py:17
↓ 2 callers
Class
Block
an unassuming Transformer block
image_synthesis/taming/modules/transformer/mingpt.py:97
↓ 2 callers
Class
Bottleneck
image_synthesis/modeling/modules/clip/model.py:9
↓ 2 callers
Class
FullAttention
image_synthesis/modeling/transformers/transformer_utils.py:22
↓ 2 callers
Class
GPTConfig
base GPT config, params common to all GPT versions
image_synthesis/taming/modules/transformer/mingpt.py:21
↓ 2 callers
Class
KeyNotFoundError
image_synthesis/taming/util.py:47
↓ 2 callers
Class
SinusoidalPosEmb
image_synthesis/modeling/transformers/transformer_utils.py:119
↓ 2 callers
Class
Transformer
image_synthesis/modeling/modules/clip/model.py:190
↓ 1 callers
Class
AdaInsNorm
image_synthesis/modeling/transformers/transformer_utils.py:153
↓ 1 callers
Class
AlternateParsing
image_synthesis/taming/modules/transformer/permuter.py:217
↓ 1 callers
Class
AttentionPool2d
image_synthesis/modeling/modules/clip/model.py:55
↓ 1 callers
Class
CLIP
image_synthesis/modeling/modules/clip/model.py:238
↓ 1 callers
Class
CausalSelfAttention
A vanilla multi-head masked self-attention layer with a projection at the end. It is possible to use torch.nn.MultiheadAttention here but I a
image_synthesis/taming/modules/transformer/mingpt.py:41
↓ 1 callers
Class
Comm
image_synthesis/data/utils/comm.py:13
↓ 1 callers
Class
Conv_MLP
image_synthesis/modeling/transformers/transformer_utils.py:276
↓ 1 callers
Class
CrossAttention
image_synthesis/modeling/transformers/transformer_utils.py:62
↓ 1 callers
Class
Decoder
image_synthesis/taming/modules/diffusionmodules/model.py:436
↓ 1 callers
Class
EMA
image_synthesis/engine/ema.py:4
↓ 1 callers
Class
Encoder
image_synthesis/taming/modules/diffusionmodules/model.py:342
↓ 1 callers
Class
GELU2
image_synthesis/modeling/transformers/transformer_utils.py:113
↓ 1 callers
Class
GumbelQuantize
credit to @karpathy: https://github.com/karpathy/deep-vector-quantization/blob/main/model.py (thanks!) Gumbel Softmax trick quantizer Cat
image_synthesis/taming/modules/vqvae/quantize.py:110
↓ 1 callers
Class
GumbelVQ
image_synthesis/taming/models/vqgan.py:159
↓ 1 callers
Class
LPIPS
image_synthesis/taming/modules/losses/lpips.py:11
↓ 1 callers
Class
Logger
image_synthesis/engine/logger.py:18
↓ 1 callers
Class
ModifiedResNet
A ResNet class that is similar to torchvision's but contains the following changes: - There are now 3 "stem" convolutions as opposed to 1, wi
image_synthesis/modeling/modules/clip/model.py:92
↓ 1 callers
Class
NLayerDiscriminator
Defines a PatchGAN discriminator as in Pix2Pix --> see https://github.com/junyanz/pytorch-CycleGAN-and-pix2pix/blob/master/models/networks.py
image_synthesis/taming/modules/discriminator/model.py:17
↓ 1 callers
Class
Net2NetTransformer
image_synthesis/taming/models/cond_transformer.py:16
↓ 1 callers
Class
QuickGELU
image_synthesis/modeling/modules/clip/model.py:161
↓ 1 callers
Class
ResidualAttentionBlock
image_synthesis/modeling/modules/clip/model.py:166
↓ 1 callers
Class
SOSProvider
image_synthesis/taming/modules/util.py:117
↓ 1 callers
Class
ScalingLayer
image_synthesis/taming/modules/losses/lpips.py:55
↓ 1 callers
Class
Solver
image_synthesis/engine/solver.py:36
↓ 1 callers
Class
SpiralOut
image_synthesis/taming/modules/transformer/permuter.py:81
↓ 1 callers
Class
ThreadPool
image_synthesis/data/utils/manage.py:27
↓ 1 callers
Class
VQModel
image_synthesis/taming/models/vqgan.py:12
↓ 1 callers
Class
VQ_Diffusion
inference_VQ_Diffusion.py:23
↓ 1 callers
Class
VectorQuantizer
see https://github.com/MishaLaskin/vqvae/blob/d761a999e2267766400dc646d82d3ac3657771d4/models/quantizer.py __________________________________
image_synthesis/taming/modules/vqvae/quantize.py:9
↓ 1 callers
Class
VisualTransformer
image_synthesis/modeling/modules/clip/model.py:201
↓ 1 callers
Class
vgg16
image_synthesis/taming/modules/losses/lpips.py:74
Class
AbstractEncoder
image_synthesis/taming/modules/util.py:95
Class
AbstractPermuter
image_synthesis/taming/modules/transformer/permuter.py:6
Class
ActNorm
image_synthesis/taming/modules/util.py:10
Class
BCELoss
image_synthesis/taming/modules/losses/segmentation.py:5
Class
BCELossWithQuant
image_synthesis/taming/modules/losses/segmentation.py:11
Class
BaseCodec
image_synthesis/modeling/codecs/base_codec.py:5
Class
BaseEmbedding
image_synthesis/modeling/embeddings/base_embedding.py:5
Class
CLIPTextEmbedding
image_synthesis/modeling/embeddings/clip_text_embedding.py:7
Class
C_DALLE
image_synthesis/modeling/models/conditional_dalle.py:19
Class
ClassEmbedding
image_synthesis/modeling/embeddings/class_embedding.py:5
Class
ClipGradNorm
image_synthesis/engine/clip_grad_norm.py:4
Class
CocoDataset
image_synthesis/data/mscoco_dataset.py:14
Class
CodeGPT
Takes in semi-embeddings
image_synthesis/taming/modules/transformer/mingpt.py:224
Class
Condition2ImageTransformer
image_synthesis/modeling/transformers/transformer_utils.py:438
Class
CoordStage
image_synthesis/taming/modules/misc/coord.py:3
Class
CosineAnnealingLRWithWarmup
adjust lr: args: warmup_lr: float or None, the learning rate to be touched after warmup warmup: int, the number of steps to
image_synthesis/engine/lr_scheduler.py:209
Class
Cub200Dataset
image_synthesis/data/cub200_dataset.py:16
Class
DALLE
image_synthesis/modeling/models/dalle.py:19
Class
DBManager
image_synthesis/data/utils/manage.py:158
Class
DalleMaskImageEmbedding
image_synthesis/modeling/embeddings/dalle_mask_image_embedding.py:5
Class
DalleTransformerPreprocessor
image_synthesis/data/utils/image_preprocessor.py:9
Class
DiffusionTransformer
image_synthesis/modeling/transformers/diffusion_transformer.py:68
Class
DiffusionTransformer
image_synthesis/modeling/transformers/diffusion_transformer_amp.py:61
Class
DummyGPT
image_synthesis/taming/modules/transformer/mingpt.py:214
Class
DummyLoss
image_synthesis/taming/modules/losses/vqperceptual.py:9
Class
FFHQDataset
image_synthesis/data/ffhq_dataset.py:11
Class
GPT
the full GPT language model, with a context size of block_size
image_synthesis/taming/modules/transformer/mingpt.py:124
Class
GPT1Config
GPT-1 like network roughly 125M params
image_synthesis/taming/modules/transformer/mingpt.py:34
Class
Identity
image_synthesis/taming/modules/transformer/permuter.py:13
Class
ImageNetDataset
image_synthesis/data/imagenet_dataset.py:14
Class
ImageNetTransformerPreprocessor
image_synthesis/data/utils/image_preprocessor.py:60
Class
KMeans
image_synthesis/taming/modules/transformer/mingpt.py:323
Class
KVReader
image_synthesis/data/utils/manage.py:219
Class
Labelator
Net2Net Interface for Class-Conditional Model
image_synthesis/taming/modules/util.py:103
Class
LambdaWarmUpCosineScheduler
note: use with a base_lr of 1.0
image_synthesis/taming/lr_scheduler.py:4
Class
MetaDB
image_synthesis/data/utils/manage.py:382
Class
Model
image_synthesis/taming/modules/diffusionmodules/model.py:195
Class
MultipleLMDBManager
image_synthesis/data/utils/manage.py:282
Class
MultipleZipManager
image_synthesis/data/utils/manage.py:104
Class
Random
image_synthesis/taming/modules/transformer/permuter.py:202
Class
ReduceLROnPlateauWithWarmup
Reduce learning rate when a metric has stopped improving. Models often benefit from reducing the learning rate by a factor of 2-10 once learni
image_synthesis/engine/lr_scheduler.py:10
Class
SimpleDecoder
image_synthesis/taming/modules/diffusionmodules/model.py:694
Class
SimpleTokenizer
image_synthesis/modeling/modules/clip/simple_tokenizer.py:62
Class
SimpleTokenizer
image_synthesis/modeling/modules/clip/clip_tokenizer.py:62
Class
SpiralIn
image_synthesis/taming/modules/transformer/permuter.py:141
Class
Subsample
image_synthesis/taming/modules/transformer/permuter.py:21
Class
TamingFFHQVQVAE
image_synthesis/modeling/codecs/image_codec/taming_gumbel_vqvae.py:50
Class
TamingGumbelVQVAE
image_synthesis/modeling/codecs/image_codec/taming_gumbel_vqvae.py:210
Class
TamingVQVAE
image_synthesis/modeling/codecs/image_codec/taming_gumbel_vqvae.py:132
Class
Text2ImageTransformer
image_synthesis/modeling/transformers/transformer_utils.py:291
Class
Tokenize
image_synthesis/modeling/codecs/text_codec/tokenize.py:7
Class
UC_DALLE
image_synthesis/modeling/models/unconditional_dalle.py:19
next →
1–100 of 107, ranked by callers