MCPcopy Create free account

hub / github.com/294coder/Dif-PAN / functions

Functions295 in github.com/294coder/Dif-PAN

Function_ssim
(img1, img2)
utils/_metric_legacy.py:382
Methodadd_noise
Compute the noised input xt = alpha_t * x + sigma_t * noise. Args: x: A `torch.Tensor` with shape `(batch_size, *shape)
solver/dpm_solver.py:1020
Functionclamp_fn
(g_sr)
diffusion_engine.py:43
Methodclear_history
(self)
utils/metric.py:41
Functioncompare_index
(A)
utils/_metric_legacy.py:423
Functioncompute_index
(img_base, img_out, ratio)
utils/_metric_legacy.py:262
Functioncompute_iters
(size, bs, drop_last=False)
utils/misc.py:204
Functionconcat_dif_timesteps_tensor
( tensor_list, n: int, out_size )
utils/misc.py:164
Functiondefault
(a, b)
utils/misc.py:18
Methoddynamic_thresholding_fn
The dynamic thresholding method.
solver/dpm_solver.py:424
Methodema_model_state_dict
(self)
utils/optim_utils.py:79
Methodforward
(self, x, mode="train", *args, **kwargs)
diffusion/diffusion_ddpm_pan.py:768
Methodforward
(self, pred, gt)
utils/loss_utils.py:69
Methodforward
(self, pred, gt)
utils/loss_utils.py:81
Methodforward
(self, pred, gt)
utils/loss_utils.py:93
Methodforward
(self, pred, gt)
utils/loss_utils.py:108
Methodforward
(self, img1, img2)
utils/loss_utils.py:129
Methodforward
(self, img1, img2)
utils/loss_utils.py:186
Methodforward
(self, x: torch.Tensor)
models/unet_model_google.py:27
Methodforward
(self, input)
models/unet_model_google.py:49
Methodforward
(self, x)
models/unet_model_google.py:58
Methodforward
(self, x, g)
models/unet_model_google.py:68
Methodforward
(self, x)
models/unet_model_google.py:79
Methodforward
(self, x)
models/unet_model_google.py:89
Methodforward
(self, x)
models/unet_model_google.py:108
Methodforward
(self, x, time_emb, guidance=None)
models/unet_model_google.py:134
Methodforward
(self, input)
models/unet_model_google.py:157
Methodforward
(self, x, time_emb, guidance=None)
models/unet_model_google.py:204
Methodforward
suit with dpm-solver api
models/unet_model_google.py:379
Methodforward
(self, x, time, cond=None, self_cond=None)
models/sr3_dwt.py:169
Methodforward
(self, noise_level)
models/sr3_dwt.py:228
Methodforward
(self, x, noise_embed)
models/sr3_dwt.py:249
Methodforward
(self, x)
models/sr3_dwt.py:262
Methodforward
(self, x)
models/sr3_dwt.py:272
Methodforward
(self, x)
models/sr3_dwt.py:281
Methodforward
(self, x)
models/sr3_dwt.py:299
Methodforward
(self, x, time_emb)
models/sr3_dwt.py:322
Methodforward
(self, input)
models/sr3_dwt.py:341
Methodforward
(self, x)
models/sr3_dwt.py:369
Methodforward
(self, x, cond)
models/sr3_dwt.py:389
Methodforward
(self, x, cond)
models/sr3_dwt.py:442
Methodforward
(self, x, cond)
models/sr3_dwt.py:536
Methodforward
(self, x, cond)
models/sr3_dwt.py:604
Methodforward
(self, x, time_emb, cond=None)
models/sr3_dwt.py:658
Methodforward
(self, x)
models/pansharpen_model.py:37
Methodforward
(self, x)
models/pansharpen_model.py:47
Methodforward
(self, x)
models/pansharpen_model.py:74
Methodforward
( self, lms, pan, schedule, n, pre_cal_fm: List[List[torch.Ten
models/pansharpen_model.py:151
Methodforward
(self, x, time, cond=None, self_cond=None)
models/sr3.py:162
Methodforward
(self, noise_level)
models/sr3.py:216
Methodforward
(self, x, noise_embed)
models/sr3.py:237
Methodforward
(self, x)
models/sr3.py:250
Methodforward
(self, x)
models/sr3.py:260
Methodforward
(self, x)
models/sr3.py:269
Methodforward
(self, x)
models/sr3.py:287
Methodforward
(self, x, time_emb)
models/sr3.py:310
Methodforward
(self, input)
models/sr3.py:329
Methodforward
(self, x)
models/sr3.py:357
Methodforward
(self, x, cond)
models/sr3.py:377
Methodforward
(self, x, cond)
models/sr3.py:430
Methodforward
(self, x, cond)
models/sr3.py:526
Methodforward
(self, x, cond)
models/sr3.py:594
Methodforward
(self, x, time_emb, cond=None)
models/sr3.py:655
Functionget_inner_feature_hook
(m: nn.Module, input, output, saved_list)
utils/model_hook.py:10
Functionget_loss
(loss_type)
utils/loss_utils.py:190
Functionimg_batch2one_img
(batched_img: torch.Tensor)
utils/misc.py:178
Functioninner
(x)
diffusion_engine.py:44
Methodinverse
Inverse the sample `x` from time `t_start` to `t_end` by DPM-Solver. For discrete-time DPMs, we use `t_start=1/N`, where `N` is the t
solver/dpm_solver.py:1040
Methodlast_acc
(self)
utils/metric.py:38
Methodload_ema_params
(self)
utils/optim_utils.py:60
Methodload_model_params
(self)
utils/optim_utils.py:64
Methodlog_image
(self, tag: str, image: Tensor, step: int)
utils/logger.py:83
Methodlog_images
( self, tag: str, images: Tensor, step: int, *, dataformats: str = "NCHW" )
utils/logger.py:88
Functionnon_wavelet_ref_loop
(dl: data.DataLoader)
dataset/for_loops.py:4
Functionnon_wavelet_unref_loop
(dl: data.DataLoader)
dataset/for_loops.py:12
Functionnorm
(x)
diffusion_engine.py:33
Methodnorm_func
(x)
dataset/pan_dataset.py:127
Functionnormalize_to_01
(x)
utils/metric.py:101
Methodon_fly_model_state_dict
(self)
utils/optim_utils.py:69
Methodpredict_start_from_xprev
(self, x_t, t, xprev)
diffusion/diffusion_ddpm_pan.py:289
Methodprint
(self, *args, **kwargs)
utils/logger.py:131
Methodprint_str
(*args, **kwargs)
utils/metric.py:18
Functionpsnr_batch_tensor_metric
calculate PSNR for batch tensor images :param b_gt: tensor, shape [B, C, H, W] :param b_test: tensor, shape [B, C, H, W] :return:
utils/metric.py:125
Functionq2n
utils/_metric_legacy.py:15
Methodq_mean_variance
(self, x_start, t)
diffusion/diffusion_ddpm_pan.py:278
Functionshow_distribution
(hr)
diffusion_engine.py:26
Functionssim
(img1, img2, win_size=11, data_range=1, size_average=True)
utils/loss_utils.py:150
Functionssim_batch_tensor_metric
(b_gt, b_test)
utils/metric.py:160
Methodstep
(self, epoch=None)
utils/lr_scheduler.py:37
Methodstep
(self, epoch=None)
utils/lr_scheduler.py:77
Methodstep
(self, epoch=None)
utils/lr_scheduler.py:95
Functionunorm
(x)
diffusion_engine.py:38
Functionwavelet_ref_loop
(dl: data.DataLoader)
dataset/for_loops.py:8
Functionwavelet_unref_loop
(dl: data.DataLoader)
dataset/for_loops.py:16
Methodweighted_diffusion_guidance_loss
(self, l1, l2, iteration)
utils/optim_utils.py:13
← previous201–295 of 295, ranked by callers