MCPcopy Create free account

hub / github.com/TianheWu/CoSeR / functions

Functions1,666 in github.com/TianheWu/CoSeR

Methodcustom_forward
(*inputs)
ldm/models/Qformer.py:534
Methoddeco
(func_or_class)
basicsr/utils/registry.py:54
Methoddecode
(self, text)
ldm/modules/encoders/modules.py:79
Methoddecode
(self, h, force_not_quantize=False)
ldm/models/autoencoder.py:281
Methoddecode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:458
Methoddecode_code
(self, code_b)
ldm/models/autoencoder.py:120
Methoddecode_sr
(self, x_latent, cond, struct_cond, t_start, unconditional_guidance_scale=1.0, unconditional_conditioning=None
ldm/models/diffusion/ddim.py:350
Functiondegradation_bsrgan
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan_light.py:442
Functiondegradation_bsrgan
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan.py:438
Functiondegradation_bsrgan_plus
This is an extended degradation model by combining the degradation models of BSRGAN and Real-ESRGAN ---------- img: HXWXC, [0, 1], it
ldm/modules/image_degradation/bsrgan.py:617
Functiondegradation_bsrgan_variant
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan_light.py:534
Functiondegradation_bsrgan_variant
This is the degradation model of BSRGAN from the paper "Designing a Practical Degradation Model for Deep Blind Image Super-Resolution" --
ldm/modules/image_degradation/bsrgan.py:530
Functiondict_constructor
(loader, node)
basicsr/utils/options.py:30
Functiondict_representer
(dumper, data)
basicsr/utils/options.py:27
Functiondiff_round
Differentiable rounding function
basicsr/utils/diffjpeg.py:26
Methoddifferentiable_decode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
ldm/models/diffusion/ddpm.py:930
Methoddifferentiable_decode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
ldm/models/diffusion/ddpm.py:2421
Methoddifferentiable_decode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
ldm/models/diffusion/ddpm_inv.py:806
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/classifier.py:22
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/ddpm.py:156
Functiondisabled_train
Overwrite model.train with this function to make sure train/eval mode does not change anymore.
ldm/models/diffusion/ddpm_inv.py:36
Methoddist_validation
(self, dataloader, current_iter, tb_logger, save_img)
basicsr/models/stylegan2_model.py:261
Methoddist_validation
(self, dataloader, current_iter, tb_logger, save_img)
basicsr/models/video_recurrent_model.py:66
Functiondivein
(*args, **kwargs)
main.py:744
Functiondownload_file_from_google_drive
Download files from google drive. Reference: https://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive Args:
basicsr/utils/download_util.py:11
Functiondpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
ldm/modules/image_degradation/bsrgan_light.py:262
Functiondpsr_degradation
bicubic downsampling + blur Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
ldm/modules/image_degradation/bsrgan.py:262
Methodencode
(self, *args, **kwargs)
ldm/modules/encoders/modules.py:19
Methodencode
(self, x)
ldm/modules/encoders/modules.py:52
Methodencode
(self, text)
ldm/modules/encoders/modules.py:73
Methodencode
(self, x)
ldm/modules/encoders/modules.py:137
Methodencode
(self, text)
ldm/modules/encoders/modules.py:198
Methodencode
(self, text)
ldm/modules/encoders/modules.py:269
Methodencode
(self, text)
ldm/modules/encoders/modules.py:297
Methodencode
(self, text)
ldm/modules/encoders/modules.py:325
Methodencode
(self, text)
ldm/modules/encoders/modules.py:352
Methodencode
(self, x)
ldm/models/autoencoder.py:276
Methodencode
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:455
Methodencode_gt
(self, x, new_encoder)
ldm/models/autoencoder.py:347
Methodencode_gt
(self, x, new_encoder)
ldm/models/autoencoder.py:580
Methodencode_to_prequant
(self, x)
ldm/models/autoencoder.py:110
Methodenhance
(self, img, outscale=None, alpha_upsampler='realesrgan')
basicsr/utils/realesrgan_utils.py:174
Methodextra_repr
(self)
basicsr/archs/swinir_arch.py:177
Methodextra_repr
(self)
basicsr/archs/swinir_arch.py:325
Methodextra_repr
(self)
basicsr/archs/swinir_arch.py:383
Methodextra_repr
(self)
basicsr/archs/swinir_arch.py:468
Methodextra_repr
(self)
ldm/modules/swinir.py:144
Methodextra_repr
(self)
ldm/modules/swinir.py:277
Methodextra_repr
(self)
ldm/modules/swinir.py:334
Methodextra_repr
(self)
ldm/modules/swinir.py:401
Functionextract_inception_features
Extract inception features. Args: data_generator (generator): A data generator. inception (nn.Module): Inception model. l
basicsr/metrics/fid.py:19
Methodfeed_data
Accept data from dataloader, and then add two-order degradations to obtain LQ images.
basicsr/models/realesrnet_model.py:68
Methodfeed_data
Accept data from dataloader, and then add two-order degradations to obtain LQ images.
basicsr/models/realesrgan_model.py:69
Methodfeed_data
(self, data)
basicsr/models/base_model.py:23
Methodfeed_data
(self, data)
basicsr/models/stylegan2_model.py:169
Methodfeed_forward_chunk
(self, attention_output)
ldm/models/Qformer.py:476
Methodfeed_forward_chunk_query
(self, attention_output)
ldm/models/Qformer.py:481
Methodflops
(self, n)
basicsr/archs/swinir_arch.py:180
Methodflops
(self)
basicsr/archs/swinir_arch.py:329
Methodflops
(self)
basicsr/archs/swinir_arch.py:386
Methodflops
(self)
basicsr/archs/swinir_arch.py:471
Methodflops
(self)
basicsr/archs/swinir_arch.py:606
Methodflops
(self)
basicsr/archs/swinir_arch.py:642
Methodflops
(self)
basicsr/archs/swinir_arch.py:687
Methodflops
(self)
basicsr/archs/swinir_arch.py:924
Methodflops
(self, N)
ldm/modules/swinir.py:147
Methodflops
(self)
ldm/modules/swinir.py:281
Methodflops
(self)
ldm/modules/swinir.py:337
Methodflops
(self)
ldm/modules/swinir.py:404
Methodflops
(self)
ldm/modules/swinir.py:522
Methodflops
(self)
ldm/modules/swinir.py:558
Methodflops
(self)
ldm/modules/swinir.py:600
Methodflops
(self)
ldm/modules/swinir.py:829
Functionflowread
Read an optical flow map. Args: flow_path (ndarray or str): Flow path. quantize (bool): whether to read quantized pair, if set to
basicsr/utils/flow_util.py:7
Functionflowwrite
Write optical flow to file. If the flow is not quantized, it will be saved as a .flo file losslessly, otherwise a jpeg image which is lossy b
basicsr/utils/flow_util.py:45
Methodforward
(ctx, grad_output, out, negative_slope, scale)
basicsr/ops/fused_act/fused_act.py:33
Methodforward
(ctx, input, bias, negative_slope, scale)
basicsr/ops/fused_act/fused_act.py:63
Methodforward
(self, input)
basicsr/ops/fused_act/fused_act.py:90
Methodforward
(ctx, input, offset, weight, stride=1,
basicsr/ops/dcn/deform_conv.py:36
Methodforward
(ctx, input, offset, mask, weight,
basicsr/ops/dcn/deform_conv.py:124
Methodforward
(self, x, offset)
basicsr/ops/dcn/deform_conv.py:232
Methodforward
(self, x)
basicsr/ops/dcn/deform_conv.py:283
Methodforward
(self, x, offset, mask)
basicsr/ops/dcn/deform_conv.py:331
Methodforward
(self, x)
basicsr/ops/dcn/deform_conv.py:373
Methodforward
(ctx, grad_output, kernel, grad_kernel, up, down, pad, g_pad, in_size, out_size)
basicsr/ops/upfirdn2d/upfirdn2d.py:33
Methodforward
(ctx, input, kernel, up, down, pad)
basicsr/ops/upfirdn2d/upfirdn2d.py:100
Methodforward
Args: image(Tensor): batch x 3 x height x width Returns: Tensor: batch x height x width x 3
basicsr/utils/diffjpeg.py:60
Methodforward
Args: image(tensor): batch x height x width x 3 Returns: y(tensor): batch x height x width cb(te
basicsr/utils/diffjpeg.py:80
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x h*w/64 x h x w
basicsr/utils/diffjpeg.py:106
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x height x width
basicsr/utils/diffjpeg.py:134
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x height x width
basicsr/utils/diffjpeg.py:160
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x height x width
basicsr/utils/diffjpeg.py:190
Methodforward
Args: image(tensor): batch x 3 x height x width Returns: dict(tensor): Compressed tensor with batch x h*w/64
basicsr/utils/diffjpeg.py:222
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x height x width
basicsr/utils/diffjpeg.py:255
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x height x width
basicsr/utils/diffjpeg.py:280
Methodforward
Args: image(tensor): batch x height x width Returns: Tensor: batch x height x width
basicsr/utils/diffjpeg.py:310
Methodforward
Args: patches(tensor) batch x height*width/64, height x width height(int) width(int) Returns:
basicsr/utils/diffjpeg.py:331
Methodforward
Args: y(tensor): y channel image cb(tensor): cb channel cr(tensor): cr channel Returns:
basicsr/utils/diffjpeg.py:355
Methodforward
Args: image(tensor): batch x height x width x 3 Returns: Tensor: batch x 3 x height x width
basicsr/utils/diffjpeg.py:389
Methodforward
Args: compressed(dict(tensor)): batch x h*w/64 x 8 x 8 imgh(int) imgw(int) factor(float)
basicsr/utils/diffjpeg.py:417
← previousnext →1,101–1,200 of 1,666, ranked by callers