MCPcopy Create free account

hub / github.com/TianheWu/CoSeR / functions

Functions1,666 in github.com/TianheWu/CoSeR

↓ 1 callersMethodprogressive_denoising
(self, cond, shape, verbose=True, callback=None, quantize_denoised=False, img_ca
ldm/models/diffusion/ddpm_inv.py:1159
↓ 1 callersMethodpropagate
Propagate the latent features throughout the sequence. Args: feats dict(list[tensor]): Features from previous branches. Each
basicsr/archs/basicvsrpp_arch.py:156
↓ 1 callersMethodprune_heads
(self, heads)
ldm/models/Qformer.py:299
↓ 1 callersFunctionpsf2otf
MATLAB psf2otf function. Borrowed from https://github.com/aboucaud/pypher/blob/master/pypher/pypher.py. Input: psf : h x w numpy
scripts/util_image.py:553
↓ 1 callersMethodput_dict_to_device
(self, x)
basicsr/archs/dfdnet_arch.py:126
↓ 1 callersMethodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of diff
ldm/models/diffusion/ddpm_inv.py:213
↓ 1 callersFunctionquantize
Quantize an array of (-inf, inf) to [0, levels-1]. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clippe
basicsr/utils/flow_util.py:126
↓ 1 callersFunctionquantize_flow
Quantize flow to [0, 255]. After this step, the size of flow will be much smaller, and can be dumped as jpeg images. Args: flow
basicsr/utils/flow_util.py:76
↓ 1 callersFunctionr1_penalty
R1 regularization for discriminator. The core idea is to penalize the gradient on real data alone: when the generator distribution pro
basicsr/losses/gan_loss.py:143
↓ 1 callersMethodrandn_cropinput
(self, lq, gt, base_size=[64, 128, 256, 512])
ldm/models/diffusion/ddpm.py:2019
↓ 1 callersFunctionrandom_crop
Randomly crop a patch from the give image.
scripts/util_image.py:587
↓ 1 callersFunctionrandom_crop
(lq, hq, sf=4, lq_patchsize=64)
ldm/modules/image_degradation/bsrgan_light.py:431
↓ 1 callersFunctionrandom_generate_gaussian_noise_pt
(img, sigma_range=(0, 10), gray_prob=0)
basicsr/data/degradations.py:595
↓ 1 callersFunctionrandom_generate_poisson_noise
(img, scale_range=(0, 1.0), gray_prob=0)
basicsr/data/degradations.py:743
↓ 1 callersFunctionrandom_generate_poisson_noise_pt
(img, scale_range=(0, 1.0), gray_prob=0)
basicsr/data/degradations.py:764
↓ 1 callersFunctionread_img_worker
Read image worker. Args: path (str): Image path. key (str): Image key. compress_level (int): Compress level when encoding
basicsr/utils/lmdb_util.py:135
↓ 1 callersFunctionreduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are 'none', 'mean' and 'sum'.
basicsr/losses/loss_util.py:6
↓ 1 callersMethodregister_schedule
(self, given_betas=None, beta_schedule="linear", timesteps=1000,
ldm/models/diffusion/ddpm.py:1811
↓ 1 callersMethodrep_params
(self)
basicsr/archs/ecbsr_arch.py:214
↓ 1 callersMethodreset
(self)
basicsr/data/prefetch_dataloader.py:120
↓ 1 callersMethodreset_noise_accs
(self)
ldm/models/diffusion/classifier.py:202
↓ 1 callersMethodreset_start_time
(self)
basicsr/utils/logger.py:68
↓ 1 callersMethodresume_training
Reload the optimizers and schedulers for resumed training. Args: resume_state (dict): Resume state.
basicsr/models/base_model.py:352
↓ 1 callersMethodsample
(self, cond, batch_size=16, return_intermediates=False, x_T=None, verbose=True, timesteps=None,
ldm/models/diffusion/ddpm.py:1385
↓ 1 callersMethodsample
(self, cond, batch_size=16, return_intermediates=False, x_T=None, verbose=True, timesteps=None,
ldm/models/diffusion/ddpm_inv.py:1266
↓ 1 callersMethodsave_attention_map
(self, attention_map)
ldm/models/Qformer.py:155
↓ 1 callersFunctionsave_response_content
(response, destination, file_size=None, chunk_size=32768)
basicsr/utils/download_util.py:48
↓ 1 callersMethodschedule
(self, n, **kwargs)
ldm/lr_scheduler.py:17
↓ 1 callersMethodschedule
(self, n, **kwargs)
ldm/lr_scheduler.py:59
↓ 1 callersMethodset_epoch
(self, epoch)
basicsr/data/data_sampler.py:47
↓ 1 callersFunctionset_random_seed
Set random seeds.
basicsr/utils/misc.py:11
↓ 1 callersMethodsetup
(self, stage=None)
main.py:198
↓ 1 callersMethodsetup_optimizers
(self)
basicsr/models/video_recurrent_gan_model.py:68
↓ 1 callersMethodsetup_optimizers
(self)
basicsr/models/sr_model.py:73
↓ 1 callersMethodsetup_optimizers
(self)
basicsr/models/srgan_model.py:74
↓ 1 callersMethodsetup_optimizers
(self)
basicsr/models/stylegan2_model.py:88
↓ 1 callersMethodsetup_optimizers
(self)
basicsr/models/hifacegan_model.py:63
↓ 1 callersMethodshortcut
(self, x, seg)
basicsr/archs/hifacegan_util.py:102
↓ 1 callersFunctionspace_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 portions of
scripts/inference.py:29
↓ 1 callersFunctionspace_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 portions of
scripts/inference_tile.py:29
↓ 1 callersFunctionspace_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/ddpm.py:101
↓ 1 callersMethodswap_feat
swap the features from the dictionary.
basicsr/archs/dfdnet_arch.py:105
↓ 1 callersFunctionsynset2idx
(path_to_yaml="data/index_synset.yaml")
ldm/data/imagenet.py:20
↓ 1 callersMethodtest
(self)
basicsr/models/stylegan2_model.py:256
↓ 1 callersMethodtest
(self)
basicsr/models/video_recurrent_model.py:176
↓ 1 callersFunctiontest_pipeline
(root_path)
basicsr/test.py:11
↓ 1 callersMethodtext_transformer_forward
(self, x: torch.Tensor, attn_mask = None)
ldm/modules/encoders/modules.py:188
↓ 1 callersMethodtext_transformer_forward
(self, x: torch.Tensor, attn_mask = None)
ldm/modules/encoders/modules.py:259
↓ 1 callersMethodto_rgb
(self, x)
ldm/models/diffusion/ddpm_inv.py:1478
↓ 1 callersFunctiontrain_pipeline
(root_path)
basicsr/train.py:91
↓ 1 callersMethodupdate
Input: pch_res: n x c x pch_size x pch_size, float index_infos: (h_start, h_end, w_start, w_end)
scripts/util_image.py:752
↓ 1 callersMethodupdate_learning_rate
Update learning rate. Args: current_iter (int): Current iteration. warmup_iter (int): Warm-up iter numbers. -1 for no
basicsr/models/base_model.py:181
↓ 1 callersFunctionupfirdn2d_native
(input, kernel, up_x, up_y, down_x, down_y, pad_x0, pad_x1, pad_y0, pad_y1)
basicsr/ops/upfirdn2d/upfirdn2d.py:162
↓ 1 callersFunctionwavelet_blur
Apply wavelet blur to the input tensor.
scripts/wavelet_color_fix.py:73
↓ 1 callersFunctionweight_reduce_loss
Apply element-wise weight and reduce loss. Args: loss (Tensor): Element-wise loss. weight (Tensor): Element-wise weights. Default
basicsr/losses/loss_util.py:26
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*b, window_size, window_size, c) window_size (int): Window size h (int): Height of image
basicsr/archs/swinir_arch.py:78
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
ldm/modules/swinir.py:47
↓ 1 callersMethodwrite_logs
(self, loss, logits, targets)
ldm/models/diffusion/classifier.py:162
↓ 1 callersFunctionyaml_load
Load yaml file or string. Args: f (str): File path or a python string. Returns: dict: Loaded dict.
basicsr/utils/options.py:38
Method__call__
(self, im, flag=None)
scripts/util_image.py:471
Method__call__
(self, im)
scripts/util_image.py:606
Method__call__
(self, im)
scripts/util_image.py:776
Method__call__
Format logging message. Args: log_vars (dict): It contains the following keys: epoch (int): Epoch number.
basicsr/utils/logger.py:72
Method__call__
(self, n, **kwargs)
ldm/lr_scheduler.py:32
Method__call__
(self, n, **kwargs)
ldm/lr_scheduler.py:77
Method__call__
(self, x, ts, **kwargs)
ldm/models/respace.py:111
Method__contains__
(self, name)
basicsr/utils/registry.py:74
Method__getitem__
(self, idx)
main.py:151
Method__getitem__
(self, index)
basicsr/data/ffhq_degradation_dataset.py:146
Method__getitem__
(self, index)
basicsr/data/paired_image_dataset.py:71
Method__getitem__
(self, index)
basicsr/data/paired_image_dataset.py:242
Method__getitem__
(self, index)
basicsr/data/video_test_dataset.py:102
Method__getitem__
(self, index)
basicsr/data/video_test_dataset.py:181
Method__getitem__
(self, index)
basicsr/data/video_test_dataset.py:212
Method__getitem__
(self, index)
basicsr/data/video_test_dataset.py:267
Method__getitem__
(self, index)
basicsr/data/vimeo90k_dataset.py:84
Method__getitem__
(self, index)
basicsr/data/vimeo90k_dataset.py:145
Method__getitem__
(self, index)
basicsr/data/realesrgan_paired_dataset.py:81
Method__getitem__
(self, index)
basicsr/data/ffhq_dataset.py:47
Method__getitem__
(self, index)
basicsr/data/single_image_dataset.py:52
Method__getitem__
(self, index)
basicsr/data/single_image_dataset.py:123
Method__getitem__
(self, index)
basicsr/data/reds_dataset.py:95
Method__getitem__
(self, index)
basicsr/data/reds_dataset.py:290
Method__getitem__
(self, index)
basicsr/data/realesrgan_dataset.py:121
Method__getitem__
(self, index)
basicsr/data/realesrgan_dataset.py:421
Method__getitem__
(self, i)
ldm/data/imagenet.py:42
Method__getitem__
(self, i)
ldm/data/imagenet.py:339
Method__getitem__
(self, i)
ldm/data/lsun.py:39
Method__init__
(self, dataset)
main.py:145
Method__init__
(self, batch_size, train=None, validation=None, test=None, predict=None, wrap=False, num_work
main.py:172
Method__init__
(self, resume, now, logdir, ckptdir, cfgdir, config, lightning_config)
main.py:250
Method__init__
(self)
scripts/util_image.py:468
Method__init__
(self, pch_size)
scripts/util_image.py:603
Method__init__
Input: im: h x w x c, numpy array, [0, 1], low-resolution image in SR pch_size, stride: patch setting sf:
scripts/util_image.py:610
Method__init__
Input: im: n x c x h x w, torch tensor, float, low-resolution image in SR pch_size, stride: patch setting
scripts/util_image.py:687
Method__init__
(self, min_max=(-1, 1))
scripts/util_image.py:773
Method__init__
(self, channel, negative_slope=0.2, scale=2**0.5)
basicsr/ops/fused_act/fused_act.py:83
Method__init__
(self, *args, **kwargs)
basicsr/ops/dcn/deform_conv.py:266
Method__init__
(self, in_channels, out_channels, kernel_size,
basicsr/ops/dcn/deform_conv.py:291
Method__init__
(self, *args, **kwargs)
basicsr/ops/dcn/deform_conv.py:354
← previousnext →601–700 of 1,666, ranked by callers