Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/294coder/Dif-PAN
/ functions
Functions
295 in github.com/294coder/Dif-PAN
⨍
Functions
295
◇
Types & classes
68
Function
_ssim
(img1, img2)
utils/_metric_legacy.py:382
Method
add_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
Function
clamp_fn
(g_sr)
diffusion_engine.py:43
Method
clear_history
(self)
utils/metric.py:41
Function
compare_index
(A)
utils/_metric_legacy.py:423
Function
compute_index
(img_base, img_out, ratio)
utils/_metric_legacy.py:262
Function
compute_iters
(size, bs, drop_last=False)
utils/misc.py:204
Function
concat_dif_timesteps_tensor
( tensor_list, n: int, out_size )
utils/misc.py:164
Function
default
(a, b)
utils/misc.py:18
Method
dynamic_thresholding_fn
The dynamic thresholding method.
solver/dpm_solver.py:424
Method
ema_model_state_dict
(self)
utils/optim_utils.py:79
Method
forward
(self, x, mode="train", *args, **kwargs)
diffusion/diffusion_ddpm_pan.py:768
Method
forward
(self, pred, gt)
utils/loss_utils.py:69
Method
forward
(self, pred, gt)
utils/loss_utils.py:81
Method
forward
(self, pred, gt)
utils/loss_utils.py:93
Method
forward
(self, pred, gt)
utils/loss_utils.py:108
Method
forward
(self, img1, img2)
utils/loss_utils.py:129
Method
forward
(self, img1, img2)
utils/loss_utils.py:186
Method
forward
(self, x: torch.Tensor)
models/unet_model_google.py:27
Method
forward
(self, input)
models/unet_model_google.py:49
Method
forward
(self, x)
models/unet_model_google.py:58
Method
forward
(self, x, g)
models/unet_model_google.py:68
Method
forward
(self, x)
models/unet_model_google.py:79
Method
forward
(self, x)
models/unet_model_google.py:89
Method
forward
(self, x)
models/unet_model_google.py:108
Method
forward
(self, x, time_emb, guidance=None)
models/unet_model_google.py:134
Method
forward
(self, input)
models/unet_model_google.py:157
Method
forward
(self, x, time_emb, guidance=None)
models/unet_model_google.py:204
Method
forward
suit with dpm-solver api
models/unet_model_google.py:379
Method
forward
(self, x, time, cond=None, self_cond=None)
models/sr3_dwt.py:169
Method
forward
(self, noise_level)
models/sr3_dwt.py:228
Method
forward
(self, x, noise_embed)
models/sr3_dwt.py:249
Method
forward
(self, x)
models/sr3_dwt.py:262
Method
forward
(self, x)
models/sr3_dwt.py:272
Method
forward
(self, x)
models/sr3_dwt.py:281
Method
forward
(self, x)
models/sr3_dwt.py:299
Method
forward
(self, x, time_emb)
models/sr3_dwt.py:322
Method
forward
(self, input)
models/sr3_dwt.py:341
Method
forward
(self, x)
models/sr3_dwt.py:369
Method
forward
(self, x, cond)
models/sr3_dwt.py:389
Method
forward
(self, x, cond)
models/sr3_dwt.py:442
Method
forward
(self, x, cond)
models/sr3_dwt.py:536
Method
forward
(self, x, cond)
models/sr3_dwt.py:604
Method
forward
(self, x, time_emb, cond=None)
models/sr3_dwt.py:658
Method
forward
(self, x)
models/pansharpen_model.py:37
Method
forward
(self, x)
models/pansharpen_model.py:47
Method
forward
(self, x)
models/pansharpen_model.py:74
Method
forward
( self, lms, pan, schedule, n, pre_cal_fm: List[List[torch.Ten
models/pansharpen_model.py:151
Method
forward
(self, x, time, cond=None, self_cond=None)
models/sr3.py:162
Method
forward
(self, noise_level)
models/sr3.py:216
Method
forward
(self, x, noise_embed)
models/sr3.py:237
Method
forward
(self, x)
models/sr3.py:250
Method
forward
(self, x)
models/sr3.py:260
Method
forward
(self, x)
models/sr3.py:269
Method
forward
(self, x)
models/sr3.py:287
Method
forward
(self, x, time_emb)
models/sr3.py:310
Method
forward
(self, input)
models/sr3.py:329
Method
forward
(self, x)
models/sr3.py:357
Method
forward
(self, x, cond)
models/sr3.py:377
Method
forward
(self, x, cond)
models/sr3.py:430
Method
forward
(self, x, cond)
models/sr3.py:526
Method
forward
(self, x, cond)
models/sr3.py:594
Method
forward
(self, x, time_emb, cond=None)
models/sr3.py:655
Function
get_inner_feature_hook
(m: nn.Module, input, output, saved_list)
utils/model_hook.py:10
Function
get_loss
(loss_type)
utils/loss_utils.py:190
Function
img_batch2one_img
(batched_img: torch.Tensor)
utils/misc.py:178
Function
inner
(x)
diffusion_engine.py:44
Method
inverse
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
Method
last_acc
(self)
utils/metric.py:38
Method
load_ema_params
(self)
utils/optim_utils.py:60
Method
load_model_params
(self)
utils/optim_utils.py:64
Method
log_image
(self, tag: str, image: Tensor, step: int)
utils/logger.py:83
Method
log_images
( self, tag: str, images: Tensor, step: int, *, dataformats: str = "NCHW" )
utils/logger.py:88
Function
non_wavelet_ref_loop
(dl: data.DataLoader)
dataset/for_loops.py:4
Function
non_wavelet_unref_loop
(dl: data.DataLoader)
dataset/for_loops.py:12
Function
norm
(x)
diffusion_engine.py:33
Method
norm_func
(x)
dataset/pan_dataset.py:127
Function
normalize_to_01
(x)
utils/metric.py:101
Method
on_fly_model_state_dict
(self)
utils/optim_utils.py:69
Method
predict_start_from_xprev
(self, x_t, t, xprev)
diffusion/diffusion_ddpm_pan.py:289
Method
print
(self, *args, **kwargs)
utils/logger.py:131
Method
print_str
(*args, **kwargs)
utils/metric.py:18
Function
psnr_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
Function
q2n
utils/_metric_legacy.py:15
Method
q_mean_variance
(self, x_start, t)
diffusion/diffusion_ddpm_pan.py:278
Function
show_distribution
(hr)
diffusion_engine.py:26
Function
ssim
(img1, img2, win_size=11, data_range=1, size_average=True)
utils/loss_utils.py:150
Function
ssim_batch_tensor_metric
(b_gt, b_test)
utils/metric.py:160
Method
step
(self, epoch=None)
utils/lr_scheduler.py:37
Method
step
(self, epoch=None)
utils/lr_scheduler.py:77
Method
step
(self, epoch=None)
utils/lr_scheduler.py:95
Function
unorm
(x)
diffusion_engine.py:38
Function
wavelet_ref_loop
(dl: data.DataLoader)
dataset/for_loops.py:8
Function
wavelet_unref_loop
(dl: data.DataLoader)
dataset/for_loops.py:16
Method
weighted_diffusion_guidance_loss
(self, l1, l2, iteration)
utils/optim_utils.py:13
← previous
201–295 of 295, ranked by callers