MCPcopy Create free account

hub / github.com/IceClear/StableSR / functions

Functions1,625 in github.com/IceClear/StableSR

↓ 1 callersFunctionpdf2
Calculate PDF of the bivariate Gaussian distribution. Args: sigma_matrix (ndarray): with the shape (2, 2) grid (ndarray): generat
basicsr/data/degradations.py:50
↓ 1 callersMethodplms_sampling
(self, cond, shape, x_T=None, ddim_use_original_steps=False, callb
ldm/models/diffusion/plms.py:115
↓ 1 callersMethodprepare_data
(self)
main.py:187
↓ 1 callersMethodpreprocess
(self, x)
ldm/modules/encoders/modules.py:306
↓ 1 callersMethodpreprocess
(self, x)
ldm/modules/encoders/modules.py:343
↓ 1 callersMethodpreprocess
(self, x)
ldm/modules/encoders/modules.py:429
↓ 1 callersMethodpreprocess
(self, x)
ldm/modules/encoders/modules.py:469
↓ 1 callersMethodprocess
(self, ref, supp)
basicsr/archs/spynet_arch.py:49
↓ 1 callersMethodprogressive_denoising
(self, cond, shape, verbose=True, callback=None, quantize_denoised=False, img_ca
ldm/models/diffusion/ddpm.py:1275
↓ 1 callersMethodprogressive_denoising
(self, cond, struct_cond, shape, verbose=True, callback=None, quantize_denoised=False,
ldm/models/diffusion/ddpm.py:2800
↓ 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 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 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:1703
↓ 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:1382
↓ 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 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:191
↓ 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
(num_timesteps, section_counts)
predict.py:231
↓ 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
app.py:75
↓ 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
scripts/sr_val_ddim_text_T_negativeprompt.py:55
↓ 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
scripts/sr_val_ddim_text_T_negativeprompt_canvas_tile.py:58
↓ 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/sr_val_ddpm_text_T_vqganfin_oldcanvas.py:28
↓ 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/sr_val_ddpm_text_T_vqganfin_old.py:26
↓ 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
scripts/sr_val_ddim_text_T_negativeprompt_canvas.py:56
↓ 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 port
scripts/generate_vqgan_data_face.py:59
↓ 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 port
scripts/sr_val_ddpm_text_T_vqganfin_facerefersampling.py:55
↓ 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/sr_val_ddpm_text_T_vqganfin_oldcanvas_tile.py:30
↓ 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 port
scripts/generate_vqgan_data.py:59
↓ 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:98
↓ 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 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:770
↓ 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:809
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:144
Method__getitem__
(self, index)
basicsr/data/ffhq_degradation_dataset.py:147
Method__getitem__
(self, index)
basicsr/data/paired_image_dataset.py:64
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:118
Method__getitem__
(self, i)
ldm/data/imagenet.py:42
Method__getitem__
(self, i)
ldm/data/imagenet.py:339
← previousnext →601–700 of 1,625, ranked by callers