MCPcopy Create free account

hub / github.com/TianheWu/CoSeR / functions

Functions1,666 in github.com/TianheWu/CoSeR

Methodshared_step
(self, batch, **kwargs)
ldm/models/diffusion/ddpm.py:1029
Methodshared_step
(self, batch, **kwargs)
ldm/models/diffusion/ddpm.py:2520
Methodshared_step
(self, batch, **kwargs)
ldm/models/diffusion/ddpm_inv.py:905
Functionshave
(img_in, border=0)
ldm/modules/image_degradation/utils_image.py:510
Functionsingle2tensor3
(img)
ldm/modules/image_degradation/utils_image.py:302
Functionsingle2tensor4
(img)
ldm/modules/image_degradation/utils_image.py:307
Functionsingle2tensor5
(img)
ldm/modules/image_degradation/utils_image.py:329
Functionsingle2uint
(img)
ldm/modules/image_degradation/utils_image.py:254
Functionsingle2uint16
(img)
ldm/modules/image_degradation/utils_image.py:264
Functionsingle32tensor5
(img)
ldm/modules/image_degradation/utils_image.py:333
Functionsingle42tensor4
(img)
ldm/modules/image_degradation/utils_image.py:337
Functionsmooth_data
Smooth data using 1st-order IIR low-pass filter (what tensorflow does). Reference: https://github.com/tensorflow/tensorboard/blob/f801ebf1f9fbfe
basicsr/utils/plot_util.py:68
Functionspace_timesteps
Create a list of timesteps to use from an original diffusion process, given the number of timesteps we want to take from equally-sized portio
ldm/models/respace.py:7
Functionspace_timesteps
Create a list of timesteps to use from an original diffusion process, given the number of timesteps we want to take from equally-sized portio
ldm/models/diffusion/ddim.py:13
Functionsplit_imageset
split the large images from original_dataroot into small overlapped images with size (p_size)x(p_size), and save them into taget_dataroot; on
ldm/modules/image_degradation/utils_image.py:125
Functionsrmd_degradation
blur + bicubic downsampling Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
ldm/modules/image_degradation/bsrgan_light.py:240
Functionsrmd_degradation
blur + bicubic downsampling Args: x: HxWxC image, [0, 1] k: hxw, double sf: down-scale factor Return: downsam
ldm/modules/image_degradation/bsrgan.py:240
Methodstochastic_encode
(self, x0, t, use_original_steps=False, noise=None)
ldm/models/diffusion/ddim.py:271
Functionstr2bool
(v)
main.py:28
Functionstring_begins_with
(prefix, str)
ldm/modules/x_transformer.py:102
Functionsurf
(Z, cmap='rainbow', figsize=None)
ldm/modules/image_degradation/utils_image.py:47
Functiontensor2img
Convert torch Tensors into image numpy arrays. After clamping to [min, max], values will be normalized to [0, 1]. Args: tensor (Tens
scripts/util_image.py:216
Functiontensor2img
Converts a torch Tensor into an image Numpy array of BGR channel order Input: 4D(B,(3/1),H,W), 3D(C,H,W), or 2D(H,W), any range, RGB channel
ldm/modules/image_degradation/utils_image.py:342
Functiontensor2img_fast
This implementation is slightly faster than tensor2img. It now only supports torch tensor with shape (1, c, h, w). Args: tensor (Tens
basicsr/utils/img_util.py:97
Functiontensor2single
(img)
ldm/modules/image_degradation/utils_image.py:312
Functiontensor2single3
(img)
ldm/modules/image_degradation/utils_image.py:320
Functiontensor2uint
(img)
ldm/modules/image_degradation/utils_image.py:289
Methodtest
(self)
basicsr/models/swinir_model.py:11
Methodtest_selfensemble
(self)
basicsr/models/sr_model.py:132
Methodto_rgb
(self, x)
ldm/models/diffusion/ddpm.py:3449
Methodto_rgb
(self, x)
ldm/models/diffusion/ddpm.py:4080
Functiontorch2img
(input)
ldm/models/diffusion/ddpm.py:49
Methodtraining_step
(self, batch, batch_idx, optimizer_idx)
ldm/models/autoencoder.py:150
Methodtraining_step
(self, batch, batch_idx, optimizer_idx)
ldm/models/autoencoder.py:376
Methodtraining_step
(self, batch, batch_idx, optimizer_idx)
ldm/models/autoencoder.py:834
Methodtraining_step
(self, batch, batch_idx)
ldm/models/diffusion/classifier.py:198
Methodtraining_step
(self, batch, batch_idx)
ldm/models/diffusion/ddpm.py:487
Methodtraining_step
(self, batch, batch_idx)
ldm/models/diffusion/ddpm.py:3985
Methodtraining_step
(self, batch, batch_idx)
ldm/models/diffusion/ddpm_inv.py:351
Functiontriplet_random_crop
(img_gts, img_lqs, img_segs, gt_patch_size, scale, gt_path=None)
basicsr/data/transforms.py:93
Functionuint162single
(img)
ldm/modules/image_degradation/utils_image.py:259
Functionuint2single
(img)
ldm/modules/image_degradation/utils_image.py:249
Functionuint2tensor3
(img)
ldm/modules/image_degradation/utils_image.py:282
Functionuint2tensor4
(img)
ldm/modules/image_degradation/utils_image.py:275
Functionuniform_on_device
(r1, r2, shape, device)
ldm/models/diffusion/ddpm.py:161
Functionuniform_on_device
(r1, r2, shape, device)
ldm/models/diffusion/ddpm_inv.py:42
Functionuniq
(arr)
ldm/modules/attention.py:25
Functionusm_sharp
USM sharpening. Input image: I; Blurry image: B. 1. sharp = I + weight * (I - B) 2. Mask = 1 if abs(I - B) > threshold, else: 0 3. Bl
basicsr/utils/img_process_util.py:34
Methodvalidation
Warning: HiFaceGAN requires train() mode even for validation For more info, see https://github.com/Lotayou/Face-Renovation/issues/31
basicsr/models/hifacegan_model.py:194
Methodvalidation_step
(self, batch, batch_idx)
ldm/models/autoencoder.py:172
Methodvalidation_step
(self, batch, batch_idx)
ldm/models/autoencoder.py:397
Methodvalidation_step
(self, batch, batch_idx)
ldm/models/autoencoder.py:858
Methodvalidation_step
(self, batch, batch_idx)
ldm/models/diffusion/classifier.py:210
Methodvalidation_step
(self, batch, batch_idx)
ldm/models/diffusion/ddpm.py:503
Methodvalidation_step
(self, batch, batch_idx)
ldm/models/diffusion/ddpm.py:2031
Methodvalidation_step
(self, batch, batch_idx)
ldm/models/diffusion/ddpm.py:3997
Methodvalidation_step
(self, batch, batch_idx)
ldm/models/diffusion/ddpm_inv.py:367
Functionwavelet_color_fix
(target: Image, source: Image)
scripts/wavelet_color_fix.py:29
Functionweighted_loss
Create a weighted version of a given loss function. To use this decorator, the loss function must have the signature like `loss_func(pred, ta
basicsr/losses/loss_util.py:58
Functionworker_init_fn
(_)
main.py:155
Functionworker_init_fn
(worker_id, num_workers, rank, seed)
basicsr/data/__init__.py:97
Functionwrapper
(*args, **kwargs)
basicsr/utils/dist_util.py:77
Functionwrapper
(pred, target, weight=None, reduction='mean', **kwargs)
basicsr/losses/loss_util.py:90
Functionycbcr2bgr
Convert a YCbCr image to BGR image. The bgr version of ycbcr2rgb. It implements the ITU-R BT.601 conversion for standard-definition telev
basicsr/utils/color_util.py:100
Functionycbcr2rgb
Convert a YCbCr image to RGB image. This function produces the same results as Matlab's ycbcr2rgb function. It implements the ITU-R BT.601 co
basicsr/utils/color_util.py:71
Functionycbcr2rgb
same as matlab ycbcr2rgb Input: uint8, [0, 255] float, [0, 1]
ldm/modules/image_degradation/utils_image.py:553
← previous1,601–1,666 of 1,666, ranked by callers