Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TianheWu/CoSeR
/ types & classes
Types & classes
358 in github.com/TianheWu/CoSeR
⨍
Functions
1,666
◇
Types & classes
358
↳
Endpoints
1
↓ 21 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
ldm/modules/diffusionmodules/openaimodel.py:224
↓ 20 callers
Class
ResnetBlock
ldm/modules/diffusionmodules/model.py:120
↓ 19 callers
Class
TimestepEmbedSequential
A sequential module that passes timestep embeddings to the children that support it as an extra input.
ldm/modules/diffusionmodules/openaimodel.py:122
↓ 13 callers
Class
FileClient
A general file client to access files in different backend. The client loads a file or text in a specified backend from its path and return i
basicsr/utils/file_client.py:132
↓ 11 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
ldm/modules/diffusionmodules/openaimodel.py:469
↓ 8 callers
Class
ConvResidualBlocks
Conv and residual block used in BasicVSR. Args: num_in_ch (int): Number of input channels. Default: 3. num_out_ch (int): Number o
basicsr/archs/basicvsr_arch.py:101
↓ 8 callers
Class
DiffJPEG
This JPEG algorithm result is slightly different from cv2. DiffJPEG supports batch processing. Args: differentiable(bool): If True, u
basicsr/utils/diffjpeg.py:449
↓ 8 callers
Class
Downsample
A downsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determini
ldm/modules/diffusionmodules/openaimodel.py:195
↓ 7 callers
Class
SPADEResnetBlock
ResNet block that uses SPADE. It differs from the ResNet block of pix2pixHD in that it takes in the segmentation map as input, learns the ski
basicsr/archs/hifacegan_util.py:57
↓ 7 callers
Class
USMSharp
basicsr/utils/img_process_util.py:63
↓ 6 callers
Class
ResidualBlockNoBN
Residual block without BN. Args: num_feat (int): Channel number of intermediate features. Default: 64. res_scale (flo
basicsr/archs/arch_util.py:103
↓ 6 callers
Class
Upsample
An upsampling layer with an optional convolution. :param channels: channels in the inputs and outputs. :param use_conv: a bool determinin
ldm/modules/diffusionmodules/openaimodel.py:152
↓ 5 callers
Class
ConvLayer
Conv Layer used in StyleGAN2 Discriminator. Args: in_channels (int): Channel number of the input. out_channels (int): Channel num
basicsr/archs/stylegan2_arch.py:654
↓ 5 callers
Class
Registry
The registry that provides name -> object mapping, to support third-party users' custom modules. To create a registry (e.g. a backbone r
basicsr/utils/registry.py:4
↓ 5 callers
Class
Upsample
ldm/modules/diffusionmodules/model.py:80
↓ 4 callers
Class
DDIMSampler
ldm/models/diffusion/ddim.py:68
↓ 4 callers
Class
Decoder
ldm/modules/diffusionmodules/model.py:569
↓ 4 callers
Class
DiagonalGaussianDistribution
ldm/modules/distributions/distributions.py:24
↓ 4 callers
Class
Encoder
ldm/modules/diffusionmodules/model.py:468
↓ 4 callers
Class
EqualLinear
Equalized Linear as StyleGAN2. Args: in_channels (int): Size of each sample. out_channels (int): Size of each output sample.
basicsr/archs/stylegan2_arch.py:134
↓ 4 callers
Class
FIDInceptionC
InceptionC block patched for FID computation
basicsr/archs/inception.py:214
↓ 4 callers
Class
FusedLeakyReLU
basicsr/ops/fused_act/fused_act.py:81
↓ 4 callers
Class
SFTUpBlock
Spatial feature transform (SFT) with upsampling block. Args: in_channel (int): Number of input channels. out_channel (int): Numbe
basicsr/archs/dfdnet_arch.py:12
↓ 4 callers
Class
SeqConv3x3
The re-parameterizable block used in the ECBSR architecture. ``Paper: Edge-oriented Convolution Block for Real-time Super Resolution on Mobile De
basicsr/archs/ecbsr_arch.py:8
↓ 3 callers
Class
BertModel
The model can behave as an encoder (with only self-attention) as well as a decoder, in which case a layer of cross-attention is added between
ldm/models/Qformer.py:677
↓ 3 callers
Class
ConvLayer
Conv Layer used in StyleGAN2 Discriminator. Args: in_channels (int): Channel number of the input. out_channels (int): Channel num
basicsr/archs/stylegan2_bilinear_arch.py:531
↓ 3 callers
Class
Downsample
ldm/modules/diffusionmodules/model.py:98
↓ 3 callers
Class
ECB
The ECB block used in the ECBSR architecture. Paper: Edge-oriented Convolution Block for Real-time Super Resolution on Mobile Devices Ref git
basicsr/archs/ecbsr_arch.py:156
↓ 3 callers
Class
FIDInceptionA
InceptionA block patched for FID computation
basicsr/archs/inception.py:189
↓ 3 callers
Class
FeedForward
ldm/modules/attention.py:57
↓ 3 callers
Class
LatentRescaler
ldm/modules/diffusionmodules/model.py:921
↓ 3 callers
Class
LitEma
ldm/modules/ema.py:5
↓ 3 callers
Class
NLayerDiscriminator
Defines the PatchGAN discriminator with the specified arguments.
basicsr/archs/hifacegan_arch.py:223
↓ 3 callers
Class
ResidualDenseBlock
Residual Dense Block. Used in RRDB block in ESRGAN. Args: num_feat (int): Channel number of intermediate features. num_grow_
basicsr/archs/rrdbnet_arch.py:9
↓ 3 callers
Class
SPADE
basicsr/archs/hifacegan_util.py:12
↓ 3 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
ldm/modules/attention.py:416
↓ 3 callers
Class
SpatialTransformerV2d4
Transformer block for image-like data. First, project the input (aka embedding) and reshape to b, t, d. Then apply standard transform
ldm/modules/attention.py:525
↓ 3 callers
Class
SpyNet
SpyNet architecture. Args: load_path (str): path for pretrained SpyNet. Default: None.
basicsr/archs/spynet_arch.py:29
↓ 3 callers
Class
StyleConv
Style conv. Args: in_channels (int): Channel number of the input. out_channels (int): Channel number of the output. kerne
basicsr/archs/stylegan2_arch.py:288
↓ 3 callers
Class
StyleConv
Style conv. Args: in_channels (int): Channel number of the input. out_channels (int): Channel number of the output. kerne
basicsr/archs/stylegan2_bilinear_arch.py:163
↓ 3 callers
Class
UpFirDnSmooth
Upsample, FIR filter, and downsample (smooth version). Args: resample_kernel (list[int]): A list indicating the 1D resample kernel
basicsr/archs/stylegan2_arch.py:97
↓ 2 callers
Class
Attention
ldm/modules/x_transformer.py:215
↓ 2 callers
Class
AttnBlock
ldm/modules/diffusionmodules/model.py:188
↓ 2 callers
Class
AvgTimer
basicsr/utils/logger.py:10
↓ 2 callers
Class
BasicTransformerBlockV2
ldm/modules/attention.py:329
↓ 2 callers
Class
BertAttention
ldm/models/Qformer.py:292
↓ 2 callers
Class
BertIntermediate
ldm/models/Qformer.py:349
↓ 2 callers
Class
BertOnlyMLMHead
ldm/models/Qformer.py:644
↓ 2 callers
Class
BertOutput
ldm/models/Qformer.py:364
↓ 2 callers
Class
CrossAttention
ldm/modules/attention.py:162
↓ 2 callers
Class
DCNv2Pack
Modulated deformable conv for deformable alignment. Different from the official DCNv2Pack, which generates offsets and masks from the precedi
basicsr/archs/arch_util.py:244
↓ 2 callers
Class
DropPath
Drop paths (Stochastic Depth) per sample (when applied in main path of residual blocks). From: https://github.com/rwightman/pytorch-image-models
basicsr/archs/swinir_arch.py:29
↓ 2 callers
Class
Encoder
ldm/modules/x_transformer.py:541
↓ 2 callers
Class
EqualLinear
Equalized Linear as StyleGAN2. Args: in_channels (int): Size of each sample. out_channels (int): Size of each output sample.
basicsr/archs/stylegan2_bilinear_arch.py:25
↓ 2 callers
Class
MeanShift
Data normalization with mean and std. Args: rgb_range (int): Maximum value of RGB. rgb_mean (list[float]): Mean for RGB channels
basicsr/archs/ridnet_arch.py:8
↓ 2 callers
Class
MemoryEfficientAttnBlock
ldm/modules/diffusionmodules/model.py:242
↓ 2 callers
Class
ModulatedConv2d
Modulated Conv2d used in StyleGAN2. There is no bias in ModulatedConv2d. Args: in_channels (int): Channel number of the input.
basicsr/archs/stylegan2_arch.py:182
↓ 2 callers
Class
ModulatedConv2d
Modulated Conv2d used in StyleGAN2. There is no bias in ModulatedConv2d. Args: in_channels (int): Channel number of the input.
basicsr/archs/stylegan2_bilinear_arch.py:73
↓ 2 callers
Class
PCDAlignment
Alignment module using Pyramid, Cascading and Deformable convolution (PCD). It is used in EDVR. ``Paper: EDVR: Video Restoration with Enhance
basicsr/archs/edvr_arch.py:9
↓ 2 callers
Class
PatchEmbed
r""" Image to Patch Embedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
basicsr/archs/swinir_arch.py:571
↓ 2 callers
Class
PatchEmbed
r""" Image to Patch Embedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
ldm/modules/swinir.py:488
↓ 2 callers
Class
PatchUnEmbed
r""" Image to Patch Unembedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
basicsr/archs/swinir_arch.py:614
↓ 2 callers
Class
PatchUnEmbed
r""" Image to Patch Unembedding Args: img_size (int): Image size. Default: 224. patch_size (int): Patch token size. Default: 4.
ldm/modules/swinir.py:530
↓ 2 callers
Class
QKVAttention
A module which performs QKV attention and splits in a different order.
ldm/modules/diffusionmodules/openaimodel.py:584
↓ 2 callers
Class
ResBlock
ldm/modules/diffusionmodules/model.py:797
↓ 2 callers
Class
TSAFusion
Temporal Spatial Attention (TSA) fusion module. Temporal: Calculate the correlation between center frame and neighboring frames; Spat
basicsr/archs/edvr_arch.py:100
↓ 2 callers
Class
ToRGB
To RGB from features. Args: in_channels (int): Channel number of input. num_style_feat (int): Channel number of style features.
basicsr/archs/stylegan2_arch.py:336
↓ 2 callers
Class
ToRGB
To RGB from features. Args: in_channels (int): Channel number of input. num_style_feat (int): Channel number of style features.
basicsr/archs/stylegan2_bilinear_arch.py:209
↓ 2 callers
Class
TransformerWrapper
ldm/modules/x_transformer.py:548
↓ 2 callers
Class
UpResBlock
basicsr/archs/dfdnet_util.py:150
↓ 2 callers
Class
Upsample
Upsample module. Args: scale (int): Scale factor. Supported scales: 2^n and 3. num_feat (int): Channel number of intermediate fea
basicsr/archs/arch_util.py:130
↓ 2 callers
Class
VGGFeatureExtractor
VGG network for feature extraction. In this implementation, we allow users to choose whether use normalization in the input feature and the t
basicsr/archs/vgg_arch.py:55
↓ 1 callers
Class
AbsolutePositionalEmbedding
ldm/modules/x_transformer.py:25
↓ 1 callers
Class
BERTTokenizer
Uses a pretrained BERT tokenizer by huggingface. Vocab size: 30522 (?)
ldm/modules/encoders/modules.py:56
↓ 1 callers
Class
BasicLayer
A basic Swin Transformer layer for one stage. Args: dim (int): Number of input channels. input_resolution (tuple[int]): Input re
basicsr/archs/swinir_arch.py:393
↓ 1 callers
Class
BasicLayer
A basic Swin Transformer layer for one stage. Args: dim (int): Number of input channels. input_resolution (tuple[int]): Input res
ldm/modules/swinir.py:344
↓ 1 callers
Class
BasicModule
Basic Module for SpyNet.
basicsr/archs/spynet_arch.py:10
↓ 1 callers
Class
BasicModule
Basic module of SPyNet. Note that unlike the architecture in spynet_arch.py, the basic module here contains batch normalization.
basicsr/archs/tof_arch.py:9
↓ 1 callers
Class
BasicTransformerBlock
ldm/modules/attention.py:308
↓ 1 callers
Class
BasicTransformerBlockV8_refV5
ldm/modules/attention.py:360
↓ 1 callers
Class
BertEmbeddings
Construct the embeddings from word and position embeddings.
ldm/models/Qformer.py:51
↓ 1 callers
Class
BertEncoder
ldm/models/Qformer.py:487
↓ 1 callers
Class
BertLMPredictionHead
ldm/models/Qformer.py:624
↓ 1 callers
Class
BertLayer
ldm/models/Qformer.py:378
↓ 1 callers
Class
BertPooler
ldm/models/Qformer.py:592
↓ 1 callers
Class
BertPredictionHeadTransform
ldm/models/Qformer.py:607
↓ 1 callers
Class
BertSelfAttention
ldm/models/Qformer.py:111
↓ 1 callers
Class
BertSelfOutput
ldm/models/Qformer.py:278
↓ 1 callers
Class
BlockMerging
Merge patches into image
basicsr/utils/diffjpeg.py:324
↓ 1 callers
Class
BlockSplitting
Splitting image into patches
basicsr/utils/diffjpeg.py:98
↓ 1 callers
Class
Blur
basicsr/archs/dfdnet_util.py:41
↓ 1 callers
Class
CDequantize
Dequantize CbCr channel
basicsr/utils/diffjpeg.py:272
↓ 1 callers
Class
CPUPrefetcher
CPU prefetcher. Args: loader: Dataloader.
basicsr/data/prefetch_dataloader.py:61
↓ 1 callers
Class
CQuantize
JPEG Quantization for CbCr channels Args: rounding(function): rounding function to use
basicsr/utils/diffjpeg.py:178
↓ 1 callers
Class
CUDAPrefetcher
CUDA prefetcher. Reference: https://github.com/NVIDIA/apex/issues/304# It may consume more GPU memory. Args: loader: Dataloader
basicsr/data/prefetch_dataloader.py:82
↓ 1 callers
Class
ChannelAttention
Channel attention. Args: num_feat (int): Channel number of intermediate features. squeeze_factor (int): Channel squeeze factor. D
basicsr/archs/ridnet_arch.py:87
↓ 1 callers
Class
ChannelAttention
Channel attention used in RCAN. Args: num_feat (int): Channel number of intermediate features. squeeze_factor (int): Channel sque
basicsr/archs/rcan_arch.py:8
↓ 1 callers
Class
ChromaSubsampling
Chroma subsampling on CbCr channels
basicsr/utils/diffjpeg.py:73
↓ 1 callers
Class
ChromaUpsampling
Upsample chroma layers
basicsr/utils/diffjpeg.py:348
↓ 1 callers
Class
CompressJpeg
Full JPEG compression algorithm Args: rounding(function): rounding function to use
basicsr/utils/diffjpeg.py:208
next →
1–100 of 358, ranked by callers