MCPcopy Create free account

hub / github.com/TianheWu/CoSeR / functions

Functions1,666 in github.com/TianheWu/CoSeR

↓ 2 callersMethodget_input_val
Degradation pipeline, modified from Real-ESRGAN: https://github.com/xinntao/Real-ESRGAN
ldm/models/diffusion/ddpm.py:2270
↓ 2 callersMethodget_learned_conditioning
(self, c)
ldm/models/diffusion/ddpm.py:1876
↓ 2 callersFunctionget_obj_from_str
(string, reload=False)
ldm/util.py:96
↓ 2 callersFunctiongroup_dict_by_key
(cond, d)
ldm/modules/x_transformer.py:93
↓ 2 callersFunctiongroupby_prefix_and_trim
(prefix, d)
ldm/modules/x_transformer.py:110
↓ 2 callersFunctioninit_dist
(launcher, backend='nccl', **kwargs)
basicsr/utils/dist_util.py:10
↓ 2 callersMethodinit_from_ckpt
(self, path, ignore_keys=list(), only_model=False)
ldm/models/diffusion/ddpm_inv.py:195
↓ 2 callersMethodinit_weights
(self)
basicsr/ops/dcn/deform_conv.py:322
↓ 2 callersFunctioninstantiate_from_config_sr
(config)
ldm/util.py:87
↓ 2 callersFunctionismap
(x)
ldm/util.py:41
↓ 2 callersFunctionload_model_from_config
(config, ckpt, verbose=False)
scripts/inference.py:81
↓ 2 callersFunctionload_model_from_config
(config, ckpt, verbose=False)
scripts/inference_tile.py:81
↓ 2 callersFunctionmake_beta_schedule
(schedule, n_timestep, linear_start=1e-4, linear_end=2e-2, cosine_s=8e-3)
ldm/modules/diffusionmodules/util.py:21
↓ 2 callersFunctionmake_ddim_sampling_parameters
(alphacums, ddim_timesteps, eta, verbose=True)
ldm/modules/diffusionmodules/util.py:63
↓ 2 callersFunctionmake_ddim_timesteps
(ddim_discr_method, num_ddim_timesteps, num_ddpm_timesteps, verbose=True)
ldm/modules/diffusionmodules/util.py:46
↓ 2 callersFunctionmake_exp_dirs
Make dirs for experiments.
basicsr/utils/misc.py:38
↓ 2 callersMethodmake_noise
(self, batch, num_noise)
basicsr/models/stylegan2_model.py:172
↓ 2 callersFunctionmkdir
(path)
ldm/modules/image_degradation/utils_image.py:153
↓ 2 callersMethodnext
(self)
basicsr/data/prefetch_dataloader.py:114
↓ 2 callersMethodnondist_validation
(self, dataloader, current_iter, tb_logger, save_img)
basicsr/models/sr_model.py:184
↓ 2 callersFunctionnorm_cdf
(x)
basicsr/archs/arch_util.py:277
↓ 2 callersFunctionordered_yaml
Support OrderedDict for yaml. Returns: tuple: yaml Loader and Dumper.
basicsr/utils/options.py:13
↓ 2 callersMethodp_losses
(self, x_start, condition_dic, t, t_ori, z_gt, pre_sr_loss, clip_adapt_loss, noise=None)
ldm/models/diffusion/ddpm.py:2643
↓ 2 callersMethodp_sample
(self, x, c, t, clip_denoised=False, repeat_noise=False, return_codebook_ids=False, quantize_
ldm/models/diffusion/ddpm.py:1247
↓ 2 callersMethodp_sample
(self, x, c, c_ne, cfg, t, clip_denoised=False, repeat_noise=False, return_codebook_ids=False
ldm/models/diffusion/ddpm.py:2900
↓ 2 callersMethodp_sample
(self, x, c, t, clip_denoised=False, repeat_noise=False, return_codebook_ids=False, quantize_
ldm/models/diffusion/ddpm_inv.py:1128
↓ 2 callersMethodp_sample_ddim
(self, x, c, t, index, repeat_noise=False, use_original_steps=False, quantize_denoised=False,
ldm/models/diffusion/ddim.py:230
↓ 2 callersMethodp_sample_ddim_sr
(self, x, c, struct_c, t, index, repeat_noise=False, use_original_steps=False, quantize_denoised=False,
ldm/models/diffusion/ddim.py:309
↓ 2 callersFunctionpaired_paths_from_folder
Generate paired paths from folders. Args: folders (list[str]): A list of folder path. The order of list should be [input_fold
basicsr/data/data_util.py:247
↓ 2 callersFunctionpaired_paths_from_lmdb
Generate paired paths from lmdb files. Contents of lmdb. Taking the `lq.lmdb` for example, the file structure is: :: lq.lmdb
basicsr/data/data_util.py:95
↓ 2 callersFunctionparse_options
(root_path, is_train=True)
basicsr/utils/options.py:99
↓ 2 callersFunctionpixel_unshuffle
Pixel unshuffle. Args: x (Tensor): Input feature with shape (b, c, hh, hw). scale (int): Downsample ratio. Returns:
basicsr/archs/arch_util.py:225
↓ 2 callersMethodpost_process
(self)
basicsr/utils/realesrgan_utils.py:162
↓ 2 callersMethodpre_process
Pre-process, such as pre-pad and mod pad, so that the images can be divisible
basicsr/utils/realesrgan_utils.py:68
↓ 2 callersMethodpredict_start_from_noise
(self, x_t, t, noise)
ldm/models/diffusion/ddpm_inv.py:225
↓ 2 callersMethodpreprocess
(self, tensor_input)
basicsr/archs/spynet_arch.py:45
↓ 2 callersMethodprocess
(self)
basicsr/utils/realesrgan_utils.py:93
↓ 2 callersMethodq_posterior
(self, x_start, x_t, t)
ldm/models/diffusion/ddpm_inv.py:231
↓ 2 callersFunctionquality_to_factor
Calculate factor corresponding to quality Args: quality(float): Quality for jpeg compression. Returns: float: Compression f
basicsr/utils/diffjpeg.py:32
↓ 2 callersFunctionrandom_crop
(lq, hq, sf=4, lq_patchsize=64)
ldm/modules/image_degradation/bsrgan.py:427
↓ 2 callersFunctionrandom_generate_gaussian_noise
(img, sigma_range=(0, 10), gray_prob=0, return_sigma=False)
basicsr/data/degradations.py:565
↓ 2 callersMethodrecord
(self)
basicsr/utils/logger.py:23
↓ 2 callersMethodregister_schedule
(self, given_betas=None, beta_schedule="linear", timesteps=1000, linear_start=1e-4,
ldm/models/diffusion/ddpm_inv.py:126
↓ 2 callersMethodreset_parameters
(self)
basicsr/ops/dcn/deform_conv.py:225
↓ 2 callersFunctionrgb2bgr
(im)
scripts/util_image.py:214
↓ 2 callersMethodsample
(self, cond, cond_ne, cfg, batch_size=16, return_intermediates=False, x_T=None, verbose=True, t
ldm/models/diffusion/ddpm.py:3224
↓ 2 callersMethodsample
(self, batch_size=16, return_intermediates=False)
ldm/models/diffusion/ddpm_inv.py:277
↓ 2 callersMethodsample_tile
(self, cond, cond_ne, cfg, batch_size=16, return_intermediates=False, x_T=None, verbose=True, t
ldm/models/diffusion/ddpm.py:3244
↓ 2 callersMethodsave
Save networks and training state.
basicsr/models/base_model.py:32
↓ 2 callersMethodsave
(self, ckpt_path)
ldm/modules/embedding_manager.py:131
↓ 2 callersMethodshared_step_val
(self, batch, **kwargs)
ldm/models/diffusion/ddpm.py:2039
↓ 2 callersFunctionshift_pixel
shift pixel for super-resolution with different scale factors Args: x: WxHxC or WxH sf: scale factor upper_left: shift dir
ldm/modules/image_degradation/bsrgan_light.py:99
↓ 2 callersFunctionshift_pixel
shift pixel for super-resolution with different scale factors Args: x: WxHxC or WxH sf: scale factor upper_left: shift dir
ldm/modules/image_degradation/bsrgan.py:99
↓ 2 callersFunctionsizeof_fmt
Get human readable file size. Args: size (int): File size. suffix (str): Suffix. Default: 'B'. Return: str: Formatte
basicsr/utils/misc.py:127
↓ 2 callersMethodtile_process
It will first crop input images to tiles, and then process each tile. Finally, all the processed tiles are merged into one images. Mo
basicsr/utils/realesrgan_utils.py:97
↓ 2 callersMethodto_rgb
(self, x)
ldm/models/autoencoder.py:442
↓ 2 callersMethodto_rgb
(self, x)
ldm/models/diffusion/ddpm.py:1558
↓ 2 callersFunctionvisualize_fea
(save_path, fea_img)
ldm/models/diffusion/ddpm.py:65
↓ 2 callersFunctionwavelet_decomposition
Apply wavelet decomposition to the input tensor. This function only returns the low frequency & the high frequency.
scripts/wavelet_color_fix.py:94
↓ 2 callersFunctionwindow_partition
Args: x: (b, h, w, c) window_size (int): window size Returns: windows: (num_windows*b, window_size, window_size, c)
basicsr/archs/swinir_arch.py:63
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
ldm/modules/swinir.py:33
↓ 1 callersFunctionAttentionBlock
(in_channel)
basicsr/archs/dfdnet_util.py:91
↓ 1 callersMethod__init__
(self, opt, que, qid)
basicsr/utils/realesrgan_utils.py:278
↓ 1 callersMethod__init__
(self, load_path=None)
basicsr/archs/spynet_arch.py:36
↓ 1 callersMethod__init__
(self, num_in_ch, num_feat=64, skip_connection=True)
basicsr/archs/discriminator_arch.py:102
↓ 1 callersMethod__init__
(self, mid_channels=64, num_blocks=7, max_residue_magnitude
basicsr/archs/basicvsrpp_arch.py:43
↓ 1 callersMethod__init__
(self, num_feat, dict_path)
basicsr/archs/dfdnet_arch.py:67
↓ 1 callersMethod__init__
(self, opt)
basicsr/data/paired_image_dataset.py:46
↓ 1 callersMethod__init__
(self, opt)
basicsr/data/vimeo90k_dataset.py:59
↓ 1 callersMethod__init__
(self, opt)
basicsr/data/single_image_dataset.py:32
↓ 1 callersMethod__init__
(self, opt)
basicsr/data/reds_dataset.py:49
↓ 1 callersMethod__init__
(self, opt)
basicsr/data/realesrgan_dataset.py:39
↓ 1 callersMethod__init__
(self, optimizer, milestones, gamma=0.1, restarts=(0, ), restart_weights=(1, ), last_epoch=-1)
basicsr/models/lr_scheduler.py:19
↓ 1 callersMethod__init__
(self, gan_type, real_label_val=1.0, fake_label_val=0.0, loss_weight=1.0)
basicsr/losses/gan_loss.py:23
↓ 1 callersMethod__iter__
(self)
basicsr/data/prefetch_dataloader.py:35
↓ 1 callersMethod__len__
(self)
scripts/util_image.py:641
↓ 1 callersMethod__len__
(self)
scripts/util_image.py:720
↓ 1 callersMethod__len__
(self)
basicsr/data/ffhq_dataset.py:79
↓ 1 callersMethod__len__
(self)
basicsr/data/realesrgan_dataset.py:570
↓ 1 callersMethod__len__
(self)
ldm/data/base.py:18
↓ 1 callersFunction_augment
(img)
basicsr/data/transforms.py:181
↓ 1 callersFunction_augment
(img)
ldm/modules/image_degradation/utils_image.py:475
↓ 1 callersFunction_augment_flow
(flow)
basicsr/data/transforms.py:190
↓ 1 callersMethod_build_causal_attention_mask
(self, bsz, seq_len, dtype)
ldm/modules/encoders/transformer_utils.py:174
↓ 1 callersMethod_dequeue_and_enqueue
It is the training pair pool for increasing the diversity in a batch. Batch processing limits the diversity of synthetic degradations in a ba
basicsr/models/realesrnet_model.py:31
↓ 1 callersMethod_dequeue_and_enqueue
It is the training pair pool for increasing the diversity in a batch. Batch processing limits the diversity of synthetic degradations in a ba
basicsr/models/realesrgan_model.py:32
↓ 1 callersMethod_dequeue_and_enqueue
It is the training pair pool for increasing the diversity in a batch. Batch processing limits the diversity of synthetic degradations in a ba
ldm/models/autoencoder.py:597
↓ 1 callersMethod_dequeue_and_enqueue
It is the training pair pool for increasing the diversity in a batch, taken from Real-ESRGAN: https://github.com/xinntao/Real-ESRGAN
ldm/models/diffusion/ddpm.py:1979
↓ 1 callersMethod_divide_pred
Take the prediction of fake and real images from the combined batch. The prediction contains the intermediate outputs of multiscale G
basicsr/models/hifacegan_model.py:98
↓ 1 callersMethod_filter_relpaths
(self, relpaths)
ldm/data/imagenet.py:48
↓ 1 callersMethod_gaussian_weights
Generates a gaussian mask of weights for tile contributions
ldm/models/diffusion/ddpm.py:3131
↓ 1 callersMethod_get_init_lr
Get the initial lr, which is set by the scheduler.
basicsr/models/base_model.py:173
↓ 1 callersFunction_get_paths_from_images
(path)
ldm/modules/image_degradation/utils_image.py:74
↓ 1 callersFunction_img2tensor
(img)
scripts/util_image.py:288
↓ 1 callersMethod_infer_shape
(ctx, input, weight)
basicsr/ops/dcn/deform_conv.py:177
↓ 1 callersFunction_init_dist_pytorch
(backend, **kwargs)
basicsr/utils/dist_util.py:21
↓ 1 callersFunction_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 callersMethod_load
(self)
ldm/data/imagenet.py:93
↓ 1 callersMethod_log_validation_metric_values
(self, current_iter, dataset_name, tb_logger)
basicsr/models/video_base_model.py:118
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
basicsr/archs/arch_util.py:273
← previousnext →301–400 of 1,666, ranked by callers