Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Fanghua-Yu/SUPIR
/ types & classes
Types & classes
180 in github.com/Fanghua-Yu/SUPIR
⨍
Functions
867
◇
Types & classes
180
↳
Endpoints
12
↓ 15 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:81
↓ 14 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:213
↓ 11 callers
Class
Conversation
A class that keeps all conversation history.
llava/conversation.py:16
↓ 7 callers
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:359
↓ 7 callers
Class
ResnetBlock
sgm/modules/diffusionmodules/model.py:91
↓ 5 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:170
↓ 5 callers
Class
KeywordsStoppingCriteria
llava/mm_utils.py:76
↓ 5 callers
Class
LLavaAgent
llava/llava_agent.py:18
↓ 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:533
↓ 3 callers
Class
DiagonalGaussianDistribution
sgm/modules/distributions/distributions.py:24
↓ 3 callers
Class
LPIPS
sgm/modules/autoencoding/lpips/loss/lpips.py:12
↓ 3 callers
Class
Timestep
sgm/modules/diffusionmodules/openaimodel.py:497
↓ 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:108
↓ 3 callers
Class
VAEHook
SUPIR/utils/tilevae.py:677
↓ 2 callers
Class
Downsample
sgm/modules/diffusionmodules/model.py:71
↓ 2 callers
Class
EvalAIAnswerProcessor
Processes an answer similar to Eval AI copied from https://github.com/facebookresearch/mmf/blob/c46b3b3391275b4181567db80943473a8
llava/eval/m4c_evaluator.py:7
↓ 2 callers
Class
FeedForward
sgm/modules/attention.py:94
↓ 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:463
↓ 2 callers
Class
StreamToLogger
Fake file-like stream object that redirects writes to a logger instance.
llava/utils.py:60
↓ 2 callers
Class
Upsample
sgm/modules/diffusionmodules/model.py:55
↓ 2 callers
Class
ZeroCrossAttn
SUPIR/modules/SUPIR_v0.py:116
↓ 1 callers
Class
AttentionPool2d
Adapted from CLIP: https://github.com/openai/CLIP/blob/main/clip/model.py
sgm/modules/diffusionmodules/openaimodel.py:37
↓ 1 callers
Class
AttnBlock
sgm/modules/diffusionmodules/model.py:158
↓ 1 callers
Class
BasicTransformerBlock
sgm/modules/attention.py:376
↓ 1 callers
Class
CLIPVisionTower
llava/model/multimodal_encoder/clip_encoder.py:8
↓ 1 callers
Class
Controller
llava/serve/controller.py:57
↓ 1 callers
Class
CustomDataset
llava/eval/model_vqa_loader.py:31
↓ 1 callers
Class
DataCollatorForSupervisedDataset
Collate examples for supervised fine-tuning.
llava/train/train.py:711
↓ 1 callers
Class
Decoder
sgm/modules/diffusionmodules/model.py:599
↓ 1 callers
Class
DiagonalGaussianRegularizer
sgm/modules/autoencoding/regularizers/__init__.py:23
↓ 1 callers
Class
Encoder
sgm/modules/diffusionmodules/model.py:482
↓ 1 callers
Class
FaceRestoreHelper
Helper for the face restoration pipeline (base class).
SUPIR/utils/face_restoration_helper.py:49
↓ 1 callers
Class
FrozenCLIPEmbedder
Uses the CLIP transformer encoder for text (from huggingface)
sgm/modules/encoders/modules.py:445
↓ 1 callers
Class
FrozenT5Embedder
Uses the T5 transformer encoder for text
sgm/modules/encoders/modules.py:362
↓ 1 callers
Class
GEGLU
sgm/modules/attention.py:84
↓ 1 callers
Class
GroupNorm32
sgm/modules/diffusionmodules/util.py:273
↓ 1 callers
Class
GroupNormParam
SUPIR/utils/tilevae.py:599
↓ 1 callers
Class
IdentityMap
llava/model/multimodal_projector/builder.py:6
↓ 1 callers
Class
KeywordsStoppingCriteria
llava/eval/model_qa.py:14
↓ 1 callers
Class
LLaVATrainer
llava/train/llava_trainer.py:132
↓ 1 callers
Class
LazySupervisedDataset
Dataset for supervised fine-tuning.
llava/train/train.py:626
↓ 1 callers
Class
LengthGroupedSampler
r""" Sampler that samples indices in a way that groups together features of the dataset of roughly the same length while keeping a bit of rand
llava/train/llava_trainer.py:98
↓ 1 callers
Class
LinAttnBlock
to match AttnBlock usage
sgm/modules/diffusionmodules/model.py:151
↓ 1 callers
Class
LlavaLlamaModel
llava/model/language_model/llava_llama.py:34
↓ 1 callers
Class
LlavaMPTModel
llava/model/language_model/llava_mpt.py:34
↓ 1 callers
Class
MPTBlock
llava/model/language_model/mpt/blocks.py:20
↓ 1 callers
Class
MPTMLP
llava/model/language_model/mpt/blocks.py:8
↓ 1 callers
Class
MPTModel
llava/model/language_model/mpt/modeling_mpt.py:33
↓ 1 callers
Class
MemoryEfficientAttnBlock
Uses xformers efficient implementation, see https://github.com/MatthieuTPHR/diffusers/blob/d80b531ff8060ec1ea982b65a1b8df70f73aa67c/src/diffu
sgm/modules/diffusionmodules/model.py:201
↓ 1 callers
Class
MemoryEfficientCrossAttentionWrapper
sgm/modules/diffusionmodules/model.py:265
↓ 1 callers
Class
ModelWorker
llava/serve/model_worker.py:44
↓ 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
sgm/modules/autoencoding/lpips/model/model.py:17
↓ 1 callers
Class
NansException
SUPIR/utils/devices.py:103
↓ 1 callers
Class
QKVAttentionLegacy
A module which performs QKV attention. Matches legacy QKVAttention + input/output heads shaping
sgm/modules/diffusionmodules/openaimodel.py:431
↓ 1 callers
Class
ScalingLayer
sgm/modules/autoencoding/lpips/loss/lpips.py:67
↓ 1 callers
Class
SharedEmbedding
llava/model/language_model/mpt/custom_embedding.py:6
↓ 1 callers
Class
TextVQAAccuracyEvaluator
llava/eval/m4c_evaluator.py:221
↓ 1 callers
Class
UNetModel
The full UNet model with attention and timestep embedding. :param in_channels: channels in the input Tensor. :param model_channels: base
sgm/modules/diffusionmodules/openaimodel.py:506
↓ 1 callers
Class
WorkerInfo
llava/serve/controller.py:43
↓ 1 callers
Class
ZeroSFT
SUPIR/modules/SUPIR_v0.py:62
↓ 1 callers
Class
vgg16
sgm/modules/autoencoding/lpips/loss/lpips.py:99
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:18
Class
AbstractDistribution
sgm/modules/distributions/distributions.py:5
Class
AbstractEmbModel
sgm/modules/encoders/modules.py:37
Class
AbstractRegularizer
sgm/modules/autoencoding/regularizers/__init__.py:11
Class
ActNorm
sgm/modules/autoencoding/lpips/util.py:45
Class
AncestralSampler
sgm/modules/diffusionmodules/sampling.py:138
Class
AutoTokenizerForMOD
AutoTokenizer + Adaptation for MOD. A simple wrapper around AutoTokenizer to make instantiating an MOD-adapted tokenizer a bit easier. M
llava/model/language_model/mpt/adapt_tokenizer.py:25
Class
AutoencoderKL
sgm/models/autoencoder.py:282
Class
AutoencoderKLInferenceWrapper
sgm/models/autoencoder.py:319
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:116
Class
BaseDiffusionSampler
sgm/modules/diffusionmodules/sampling.py:25
Class
BasicTransformerSingleLayerBlock
sgm/modules/attention.py:489
Class
CheckpointFunction
sgm/modules/diffusionmodules/util.py:170
Class
ClassEmbedder
sgm/modules/encoders/modules.py:328
Class
ClassEmbedderForMultiCond
sgm/modules/encoders/modules.py:350
Class
ConcatTimestepEmbedderND
embeds each dimension independently and concatenates them
sgm/modules/encoders/modules.py:1027
Class
ControlWrapper
sgm/modules/diffusionmodules/wrappers.py:68
Class
CrossAttention
sgm/modules/attention.py:196
Class
DPMPP2MSampler
sgm/modules/diffusionmodules/sampling.py:293
Class
DPMPP2SAncestralSampler
sgm/modules/diffusionmodules/sampling.py:253
Class
DataArguments
llava/train/train.py:64
Class
Denoiser
sgm/modules/diffusionmodules/denoiser.py:6
Class
DiffusionEngine
sgm/models/diffusion.py:22
Class
DiracDistribution
sgm/modules/distributions/distributions.py:13
Class
DiscreteDenoiser
sgm/modules/diffusionmodules/denoiser.py:31
Class
DiscreteDenoiserWithControl
sgm/modules/diffusionmodules/denoiser.py:66
Class
DiscreteSampling
sgm/modules/diffusionmodules/sigma_sampling.py:16
Class
Discretization
sgm/modules/diffusionmodules/discretizer.py:17
Class
DispatchMethod
llava/serve/controller.py:28
Class
Dummy
sgm/modules/diffusionmodules/openaimodel.py:1243
Class
EDMDiscretization
sgm/modules/diffusionmodules/discretizer.py:28
Class
EDMSampler
sgm/modules/diffusionmodules/sampling.py:86
Class
EDMSampling
sgm/modules/diffusionmodules/sigma_sampling.py:6
Class
EDMScaling
sgm/modules/diffusionmodules/denoiser_scaling.py:4
Class
EDMWeighting
sgm/modules/diffusionmodules/denoiser_weighting.py:8
Class
EncoderUNetModel
The half UNet model with attention and timestep embedding. For usage, see UNet.
sgm/modules/diffusionmodules/openaimodel.py:1022
Class
EpsScaling
sgm/modules/diffusionmodules/denoiser_scaling.py:16
next →
1–100 of 180, ranked by callers