Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IceClear/StableSR
/ functions
Functions
1,625 in github.com/IceClear/StableSR
⨍
Functions
1,625
◇
Types & classes
334
↳
Endpoints
1
↓ 1 callers
Method
_gaussian_weights
Generates a gaussian mask of weights for tile contributions
ldm/models/diffusion/ddpm.py:2960
↓ 1 callers
Method
_get_init_lr
Get the initial lr, which is set by the scheduler.
basicsr/models/base_model.py:173
↓ 1 callers
Function
_get_paths_from_images
(path)
ldm/modules/image_degradation/utils_image.py:74
↓ 1 callers
Function
_img2tensor
(img)
scripts/util_image.py:288
↓ 1 callers
Method
_infer_shape
(ctx, input, weight)
basicsr/ops/dcn/deform_conv.py:177
↓ 1 callers
Function
_init_dist_pytorch
(backend, **kwargs)
basicsr/utils/dist_util.py:21
↓ 1 callers
Function
_init_dist_slurm
Initialize slurm distributed training environment. If argument ``port`` is not specified, then the master port will be system environment var
basicsr/utils/dist_util.py:28
↓ 1 callers
Method
_load
(self)
ldm/data/imagenet.py:93
↓ 1 callers
Method
_log_validation_metric_values
(self, current_iter, dataset_name, tb_logger)
basicsr/models/video_base_model.py:118
↓ 1 callers
Function
_no_grad_trunc_normal_
(tensor, mean, std, a, b)
basicsr/archs/arch_util.py:273
↓ 1 callers
Method
_output_size
(input, weight, padding, dilation, stride)
basicsr/ops/dcn/deform_conv.py:107
↓ 1 callers
Function
_postprocess_yml_value
(value)
basicsr/utils/options.py:75
↓ 1 callers
Method
_prepare
(self)
ldm/data/imagenet.py:45
↓ 1 callers
Method
_prepare_human_to_integer_label
(self)
ldm/data/imagenet.py:80
↓ 1 callers
Method
_prepare_idx_to_synset
(self)
ldm/data/imagenet.py:74
↓ 1 callers
Method
_prepare_synset_to_human
(self)
ldm/data/imagenet.py:66
↓ 1 callers
Method
_print_different_keys_loading
Print keys with different name or different size when loading models. 1. Print keys with different names. 2. If strict=False, print t
basicsr/models/base_model.py:254
↓ 1 callers
Function
_scandir
(dir_path, suffix, recursive)
basicsr/utils/misc.py:73
↓ 1 callers
Method
_set_lr
Set learning rate for warm-up. Args: lr_groups_l (list): List for lr_groups, each for an optimizer.
basicsr/models/base_model.py:163
↓ 1 callers
Function
_ssim
Calculate SSIM (structural similarity) for one channel images. It is called by func:`calculate_ssim`. Args: img (ndarray): Images wi
basicsr/metrics/psnr_ssim.py:170
↓ 1 callers
Function
_ssim_pth
Calculate SSIM (structural similarity) (PyTorch version). It is called by func:`calculate_ssim_pt`. Args: img (Tensor): Images with
basicsr/metrics/psnr_ssim.py:201
↓ 1 callers
Function
adaptive_instance_normalization
Adaptive instance normalization. Adjust the reference features to have the similar color and illuminations as those in the degradate features
basicsr/archs/dfdnet_util.py:74
↓ 1 callers
Function
add_sharpening
USM sharpening. borrowed from real-ESRGAN Input image: I; Blurry image: B. 1. K = I + weight * (I - B) 2. Mask = 1 if abs(I - B) > thresho
ldm/modules/image_degradation/bsrgan.py:299
↓ 1 callers
Function
anisotropic_Gaussian
generate an anisotropic Gaussian kernel Args: ksize : e.g., 15, kernel size theta : [0, pi], rotation angle range l1
ldm/modules/image_degradation/bsrgan_light.py:65
↓ 1 callers
Function
anisotropic_Gaussian
generate an anisotropic Gaussian kernel Args: ksize : e.g., 15, kernel size theta : [0, pi], rotation angle range l1
ldm/modules/image_degradation/bsrgan.py:65
↓ 1 callers
Function
augment_img
Kai Zhang (github: https://github.com/cszn)
ldm/modules/image_degradation/utils_image.py:380
↓ 1 callers
Function
avg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
ldm/modules/diffusionmodules/util.py:238
↓ 1 callers
Function
bgr2ycbcr
bgr version of rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
ldm/modules/image_degradation/utils_image.py:573
↓ 1 callers
Function
bivariate_Gaussian
Generate a bivariate isotropic or anisotropic Gaussian kernel. In the isotropic mode, only `sig_x` is used. `sig_y` and `theta` is ignored.
basicsr/data/degradations.py:84
↓ 1 callers
Function
bivariate_generalized_Gaussian
Generate a bivariate generalized Gaussian kernel. ``Paper: Parameter Estimation For Multivariate Generalized Gaussian Distributions`` In the
basicsr/data/degradations.py:112
↓ 1 callers
Function
bivariate_plateau
Generate a plateau-like anisotropic kernel. 1 / (1+x^(beta)) Reference: https://stats.stackexchange.com/questions/203629/is-there-a-plateau-
basicsr/data/degradations.py:143
↓ 1 callers
Function
blur
x: image, NxcxHxW k: kernel, Nx1xhxw
ldm/modules/image_degradation/bsrgan.py:128
↓ 1 callers
Method
calculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
ldm/modules/losses/vqperceptual.py:85
↓ 1 callers
Method
calculate_adaptive_weight
(self, nll_loss, g_loss, last_layer=None)
ldm/modules/losses/contperceptual.py:32
↓ 1 callers
Function
calculate_psnr
PSNR metric. im1, im2: h x w x , [0, 255], uint8
scripts/util_image.py:68
↓ 1 callers
Function
calculate_psnr
Calculate PSNR (Peak Signal-to-Noise Ratio). Reference: https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio Args: img (ndarray)
basicsr/metrics/psnr_ssim.py:12
↓ 1 callers
Function
calculate_ssim
SSIM the same outputs as MATLAB's im1, im2: h x w x , [0, 255], uint8
scripts/util_image.py:39
↓ 1 callers
Function
calculate_ssim
Calculate SSIM (structural similarity). ``Paper: Image quality assessment: From error visibility to structural similarity`` The results are
basicsr/metrics/psnr_ssim.py:85
↓ 1 callers
Function
charbonnier_loss
(pred, target, eps=1e-12)
basicsr/losses/basic_loss.py:23
↓ 1 callers
Method
check_frequency
(self, check_idx)
main.py:374
↓ 1 callers
Method
check_if_mirror_extended
Check whether the input is a mirror-extended sequence. If mirror-extended, the i-th (i=0, ..., t-1) frame is equal to the (t-1-i)-th frame.
basicsr/archs/basicvsrpp_arch.py:109
↓ 1 callers
Method
check_image_size
(self, x)
ldm/modules/swinir.py:770
↓ 1 callers
Function
check_resume
Check resume states and pretrain_network paths. Args: opt (dict): Options. resume_iter (int): Resume iteration.
basicsr/utils/misc.py:94
↓ 1 callers
Method
color_jitter
jitter color: randomly jitter the RGB values, in numpy formats
basicsr/data/ffhq_degradation_dataset.py:93
↓ 1 callers
Method
color_jitter_pt
jitter color: randomly jitter the brightness, contrast, saturation, and hue, in torch Tensor formats
basicsr/data/ffhq_degradation_dataset.py:101
↓ 1 callers
Function
compute_feature
Compute features. Args: block (ndarray): 2D Image block. Returns: list: Features with length of 18.
basicsr/metrics/niqe.py:41
↓ 1 callers
Method
compute_flow
Compute optical flow using SPyNet for feature alignment. Note that if the input is an mirror-extended sequence, 'flows_forward' is no
basicsr/archs/basicvsrpp_arch.py:123
↓ 1 callers
Function
conv_block
Conv block used in MSDilationBlock.
basicsr/archs/dfdnet_util.py:97
↓ 1 callers
Function
copy_opt_file
(opt_file, experiments_root)
basicsr/utils/options.py:197
↓ 1 callers
Function
create_train_val_dataloader
(opt, logger)
basicsr/train.py:29
↓ 1 callers
Function
data_aug_np
Performs data augmentation of the input image Input: image: a cv2 (OpenCV) image mode: int. Choice of transformation to apply
scripts/util_image.py:390
↓ 1 callers
Method
ddim_sampling
(self, cond, shape, x_T=None, ddim_use_original_steps=False, callb
ldm/models/diffusion/ddim.py:178
↓ 1 callers
Method
decode
(self, z)
ldm/models/autoencoder.py:353
↓ 1 callers
Method
decode
(self, z, enc_fea)
ldm/models/autoencoder.py:586
↓ 1 callers
Method
denormalize
(self, img)
basicsr/archs/tof_arch.py:134
↓ 1 callers
Function
dequantize
Dequantize an array. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clipped. max_val (scalar): M
basicsr/utils/flow_util.py:150
↓ 1 callers
Method
dist_validation
(self, dataloader, current_iter, tb_logger, save_img)
basicsr/models/video_base_model.py:18
↓ 1 callers
Function
drop_path
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:14
↓ 1 callers
Method
embedding_to_coarse_loss
(self)
ldm/modules/embedding_manager.py:150
↓ 1 callers
Method
encode
(self, text)
ldm/modules/encoders/modules.py:104
↓ 1 callers
Method
encode
(self, x, return_encfea=False)
ldm/models/autoencoder.py:339
↓ 1 callers
Method
encode
(self, x)
ldm/models/autoencoder.py:573
↓ 1 callers
Method
encode_with_pretrained
(self,x)
ldm/modules/diffusionmodules/model.py:1085
↓ 1 callers
Method
encode_with_transformer
(self, text)
ldm/modules/encoders/modules.py:179
↓ 1 callers
Function
equals
(val)
ldm/modules/x_transformer.py:76
↓ 1 callers
Function
fid_inception_v3
Build pretrained Inception model for FID computation. The Inception model for FID computation uses a different set of weights and has a sligh
basicsr/archs/inception.py:155
↓ 1 callers
Method
freeze
(self)
ldm/modules/encoders/modules.py:169
↓ 1 callers
Method
freeze
(self)
ldm/modules/encoders/modules.py:211
↓ 1 callers
Method
freeze
(self)
ldm/modules/encoders/modules.py:439
↓ 1 callers
Function
fspecial_gaussian
(hsize, sigma)
ldm/modules/image_degradation/bsrgan_light.py:187
↓ 1 callers
Function
fspecial_gaussian
(hsize, sigma)
ldm/modules/image_degradation/bsrgan.py:187
↓ 1 callers
Function
fspecial_laplacian
(alpha)
ldm/modules/image_degradation/bsrgan_light.py:201
↓ 1 callers
Function
fspecial_laplacian
(alpha)
ldm/modules/image_degradation/bsrgan.py:201
↓ 1 callers
Function
g_path_regularize
(fake_img, latents, mean_path_length, decay=0.01)
basicsr/losses/gan_loss.py:159
↓ 1 callers
Method
gather
(self)
scripts/util_image.py:682
↓ 1 callers
Function
generate_gaussian_kernel
Generate Gaussian kernel used in `duf_downsample`. Args: kernel_size (int): Kernel size. Default: 13. sigma (float): Sigma of the
basicsr/data/data_util.py:314
↓ 1 callers
Method
get
(self, filepath, client_key='default')
basicsr/utils/file_client.py:158
↓ 1 callers
Method
get_base
(self)
ldm/data/imagenet.py:379
↓ 1 callers
Method
get_component_coordinates
Get facial component (left_eye, right_eye, mouth) coordinates from a pre-loaded pth file
basicsr/data/ffhq_degradation_dataset.py:122
↓ 1 callers
Function
get_confirm_token
(response)
basicsr/utils/download_util.py:41
↓ 1 callers
Method
get_current_learning_rate
(self)
basicsr/models/base_model.py:204
↓ 1 callers
Method
get_current_log
(self)
basicsr/models/base_model.py:84
↓ 1 callers
Method
get_flow
(self, x)
basicsr/archs/basicvsr_arch.py:44
↓ 1 callers
Method
get_flow
(self, x)
basicsr/archs/basicvsr_arch.py:192
↓ 1 callers
Function
get_image_paths
(dataroot)
ldm/modules/image_degradation/utils_image.py:67
↓ 1 callers
Method
get_keyframe_feature
(self, x, keyframe_idx)
basicsr/archs/basicvsr_arch.py:203
↓ 1 callers
Function
get_local_weights
Get local weights for generating the artifact map of LDL. It is only called by the `get_refined_artifact_map` function. Args: residu
basicsr/losses/loss_util.py:99
↓ 1 callers
Function
get_nonspade_norm_layer
(norm_type='instance')
basicsr/archs/hifacegan_util.py:217
↓ 1 callers
Function
get_parser
(**parser_kwargs)
main.py:26
↓ 1 callers
Function
get_position_from_periods
Get the position from a period list. It will return the index of the right-closest number in the period list. For example, the cumulative_per
basicsr/models/lr_scheduler.py:36
↓ 1 callers
Function
get_refined_artifact_map
Calculate the artifact map of LDL (Details or Artifacts: A Locally Discriminative Learning Approach to Realistic Image Super-Resolution. In CVPR 2
basicsr/losses/loss_util.py:121
↓ 1 callers
Method
get_target_label
Get target label. Args: input (Tensor): Input tensor. target_is_real (bool): Whether the target is real or fake.
basicsr/losses/gan_loss.py:72
↓ 1 callers
Function
get_timestamp
()
ldm/modules/image_degradation/utils_image.py:33
↓ 1 callers
Function
get_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches
ldm/modules/diffusionmodules/model.py:50
↓ 1 callers
Method
get_x_noisy
(self, x, t, noise=None)
ldm/models/diffusion/classifier.py:110
↓ 1 callers
Function
gm_blur_kernel
(mean, cov, size=15)
ldm/modules/image_degradation/bsrgan_light.py:86
↓ 1 callers
Function
gm_blur_kernel
(mean, cov, size=15)
ldm/modules/image_degradation/bsrgan.py:86
↓ 1 callers
Function
imgrad
Calculate image gradient. Input: im: h x w x c numpy array
scripts/util_image.py:489
↓ 1 callers
Function
imgrad_fft
Calculate image gradient. Input: im: h x w x c numpy array
scripts/util_image.py:519
↓ 1 callers
Function
imread_uint
(path, n_channels=3)
ldm/modules/image_degradation/utils_image.py:185
← previous
next →
401–500 of 1,625, ranked by callers