MCPcopy Create free account

hub / github.com/annegnx/PnP-Flow / functions

Functions418 in github.com/annegnx/PnP-Flow

↓ 1 callersMethodconfigure_optimizers
(self)
pnpflow/train_denoiser.py:78
↓ 1 callersFunctioncontract_inner
tensordot(x, y, 1).
pnpflow/image_generation/models/layers.py:537
↓ 1 callersFunctionconv_downsample_2d
Fused `tf.nn.conv2d()` followed by `downsample_2d()`. Padding is performed only once at the beginning, not between the operations. The fu
pnpflow/image_generation/models/up_or_down_sampling.py:146
↓ 1 callersFunctioncreate_downsampling_matrix
(H, W, sf, device)
pnpflow/utils.py:1124
↓ 1 callersFunctiondefine_model
(args)
pnpflow/utils.py:170
↓ 1 callersFunctiondenoiser
(x, t)
pnpflow/toy_example.py:120
↓ 1 callersMethoddenoiser
(self, x, t)
pnpflow/methods/pnp_flow.py:50
↓ 1 callersFunctionfid_inception_v3
Build pretrained Inception model for FID computation The Inception model for FID computation uses a different set of weights and has a slight
pnpflow/models.py:672
↓ 1 callersFunctionfn
(x)
pnpflow/utils.py:246
↓ 1 callersFunctionfused_leaky_relu
(input, bias, negative_slope=0.2, scale=2 ** 0.5)
pnpflow/image_generation/op/fused_act.py:86
↓ 1 callersMethodgenerate_samples
Return a tensor of size (TODO).
pnpflow/train_flow_matching.py:170
↓ 1 callersFunctionget_activations
Calculates the activations of the pool_3 layer for all images. Params: -- images : Images -- model : Instance of inception mod
pnpflow/fid_score.py:21
↓ 1 callersFunctionget_model
(name)
pnpflow/image_generation/models/utils.py:47
↓ 1 callersFunctionget_model_fn
Create a function to give the output of the score-based model. Args: model: The score model. train: `True` for training and `False` f
pnpflow/image_generation/models/utils.py:106
↓ 1 callersFunctionget_prior_logp
(z)
pnpflow/image_generation/likelihood.py:144
↓ 1 callersFunctionget_rectified_flow_loss_fn
Create a loss function for training with rectified flow. Args: sde: An `sde_lib.SDE` object that represents the forward SDE. train: `
pnpflow/image_generation/losses.py:55
↓ 1 callersFunctionget_rectified_flow_sampler
Get rectified flow sampler Returns: A sampling function that returns samples and the number of function evaluations during sampling.
pnpflow/image_generation/sampling.py:62
↓ 1 callersFunctionget_sinusoidal_positional_embedding
Copied and modified from https://github.com/hojonathanho/diffusion/blob/1e0dceb3b3495bbe19116a5e1b3596cd0706c543/diffusion_tf/nn.py#L90
pnpflow/models.py:253
↓ 1 callersFunctiongrad_datafit
(x, y)
pnpflow/toy_example.py:127
↓ 1 callersMethodgrad_datafit
(self, x, y, H, H_adj)
pnpflow/methods/pnp_gs.py:24
↓ 1 callersMethodgrad_datafit
(self, x, y, H, H_adj)
pnpflow/methods/pnp_flow.py:39
↓ 1 callersMethodinitialization
(self, noisy_img, t0)
pnpflow/methods/ot_ode.py:27
↓ 1 callersMethodinterpolation_step
(self, x, t)
pnpflow/methods/pnp_flow.py:47
↓ 1 callersMethodinverse_flow_matching
(self, z)
pnpflow/methods/d_flow.py:51
↓ 1 callersMethodjacobian_spectral_norm
Get spectral norm of Dg^2 the hessian of g :param y: :param x_hat: :param sigma: :param interpolation:
pnpflow/train_denoiser.py:129
↓ 1 callersFunctionkaiming_uniform_
r"""Fills the input `Tensor` with values according to the method desrcibed in `Delving deep into rectifiers: Surpassing human-level performanc
pnpflow/models.py:180
↓ 1 callersMethodlearning_rate_strat
(self, lr, t)
pnpflow/methods/pnp_flow.py:29
↓ 1 callersFunctionmain
()
main.py:59
↓ 1 callersMethodmodel_forward
(self, x, t)
pnpflow/methods/d_flow.py:199
↓ 1 callersMethodmodel_forward
(self, x, t)
pnpflow/methods/pnp_flow.py:19
↓ 1 callersMethodnoise_model
(x)
pnpflow/methods/pnp_diff.py:192
↓ 1 callersMethodode
(self, init_input, model, reverse=False)
pnpflow/image_generation/sde_lib.py:38
↓ 1 callersFunctionoptimize_fn
Optimizes with warmup and gradient clipping (disabled if negative).
pnpflow/image_generation/losses.py:41
↓ 1 callersFunctionparse_args
()
main.py:29
↓ 1 callersMethodpower_iteration
Power iteration algorithm for spectral norm calculation
pnpflow/train_denoiser.py:92
↓ 1 callersMethodprox_l1
r""" Soft thresholding of the wavelet coefficients. :param torch.Tensor x: wavelet coefficients. :param float, torch.Tensor t
pnpflow/methods/pnp_diff.py:318
↓ 1 callersFunctionrun_inception_jit
Running the inception network. Assuming input is within [0, 255].
pnpflow/image_generation/evaluation.py:89
↓ 1 callersMethodrun_method
(self, data_loaders, degradation, sigma_noise, H_funcs=None)
pnpflow/methods/pnp_diff.py:79
↓ 1 callersMethodsample_plot
(self, x, ep=None)
pnpflow/train_flow_matching.py:152
↓ 1 callersFunctionset_seed
(seed: int)
pnpflow/toy_example.py:14
↓ 1 callersMethodshould_save_image
(self, iteration, steps)
pnpflow/methods/ot_ode.py:200
↓ 1 callersMethodshould_save_image
(self, iteration, steps)
pnpflow/methods/pnp_flow.py:174
↓ 1 callersMethodsolve_ip
(self, test_loader, degradation, sigma_noise)
pnpflow/methods/d_flow.py:68
↓ 1 callersMethodsolve_ip
(self, test_loader, degradation, sigma_noise)
pnpflow/methods/pnp_gs.py:86
↓ 1 callersMethodsolve_ip
(self, test_loader, degradation, sigma_noise)
pnpflow/methods/flow_priors.py:27
↓ 1 callersMethodsolve_ip
(self, test_loader, degradation, sigma_noise, H_funcs=None)
pnpflow/methods/ot_ode.py:31
↓ 1 callersMethodsolve_ip
(self, test_loader, degradation, sigma_noise, H_funcs=None)
pnpflow/methods/pnp_flow.py:54
↓ 1 callersMethodsolve_ip
(self, test_loader, degradation, sigma_noise, H_funcs=None)
pnpflow/methods/pnp_diff.py:25
↓ 1 callersFunctionto_nn_parameter
(x)
pnpflow/methods/pnp_diff.py:296
↓ 1 callersMethodtrain_FM_model
(self, train_loader, opt, num_epoch)
pnpflow/train_flow_matching.py:51
↓ 1 callersMethodtrain_denoiser
(self, train_loader, opt, num_epoch)
pnpflow/train_denoiser.py:162
↓ 1 callersFunctionupfirdn2d_native
( input, kernel, up_x, up_y, down_x, down_y, pad_x0, pad_x1, pad_y0, pad_y1 )
pnpflow/image_generation/op/upfirdn2d.py:159
↓ 1 callersFunctionupsample_conv_2d
Fused `upsample_2d()` followed by `tf.nn.conv2d()`. Padding is performed only once at the beginning, not between the operations.
pnpflow/image_generation/models/up_or_down_sampling.py:72
↓ 1 callersFunctionvariance_scaling
Ported from JAX.
pnpflow/image_generation/models/layers.py:54
MethodC_ope
(z)
pnpflow/methods/ot_ode.py:121
FunctionGMRES
Return: sol: solution (j, err_history): j is the number of iterations used to achieve the target accuracy;
pnpflow/utils.py:972
MethodH
(self, x)
pnpflow/degradations.py:8
MethodH
(self, x)
pnpflow/degradations.py:40
MethodH
(self, x)
pnpflow/degradations.py:48
MethodH
(self, x)
pnpflow/degradations.py:71
MethodH
(self, x)
pnpflow/degradations.py:113
MethodH_adj
(self, x)
pnpflow/degradations.py:11
MethodH_adj
(self, x)
pnpflow/degradations.py:31
MethodH_adj
(self, x)
pnpflow/degradations.py:43
MethodH_adj
(self, x)
pnpflow/degradations.py:51
MethodH_adj
(self, x)
pnpflow/degradations.py:81
FunctionMvp
(A, vec)
pnpflow/utils.py:1057
FunctionPYBIND11_MODULE
pnpflow/image_generation/op/fused_bias_act.cpp:19
FunctionPYBIND11_MODULE
pnpflow/image_generation/op/upfirdn2d.cpp:21
MethodT
(self)
pnpflow/image_generation/sde_lib.py:34
Method__getattr__
(self, name)
pnpflow/utils.py:53
Method__getitem__
(self, idx)
pnpflow/dataloaders.py:137
Method__getitem__
(self, idx)
pnpflow/dataloaders.py:166
Method__getitem__
(self, idx)
pnpflow/dataloaders.py:197
Method__getitem__
(self, idx)
pnpflow/image_generation/pytorch_datasets.py:23
Method__getitem__
(self, idx)
pnpflow/image_generation/pytorch_datasets.py:52
Method__init__
(self, p)
pnpflow/degradations.py:36
Method__init__
(self, sigma_blur, kernel_size, mode="fft", num_channels=3, dim_image=128, device="cuda")
pnpflow/degradations.py:56
Method__init__
(self, sf, dim_image, mode=None, device="cuda")
pnpflow/degradations.py:93
Method__init__
(self, init_dict=None, key_list=None, new_allowed=False)
pnpflow/utils.py:43
Method__init__
(self, height, width, channels=3, rand_seed=None, filepath=None)
pnpflow/utils.py:906
Method__init__
(self, dataset_name, batch_size_train, batch_size_test)
pnpflow/dataloaders.py:18
Method__init__
(self, img_dir, partition_csv, partition, transform=None)
pnpflow/dataloaders.py:122
Method__init__
(self, data_dir, batchsize, transform=None)
pnpflow/dataloaders.py:156
Method__init__
(self, img_dir, batchsize, category='cat', transform=None)
pnpflow/dataloaders.py:187
Method__init__
(self)
pnpflow/models.py:25
Method__init__
( self, in_ch, temb_ch, out_ch=None, conv_shortcut
pnpflow/models.py:59
Method__init__
(self, in_channels, normalize=group_norm)
pnpflow/models.py:122
Method__init__
(self, embedding_dim, hidden_dim, output_dim, act=Swish())
pnpflow/models.py:283
Method__init__
Build pretrained InceptionV3 Parameters ---------- output_blocks : list of int Indices of blocks to return featur
pnpflow/models.py:519
Method__init__
(self, in_channels, pool_features)
pnpflow/models.py:702
Method__init__
(self, in_channels, channels_7x7)
pnpflow/models.py:728
Method__init__
(self, in_channels)
pnpflow/models.py:757
Method__init__
(self, in_channels)
pnpflow/models.py:791
Method__init__
(self, model, device, args)
pnpflow/train_denoiser.py:18
Method__init__
(self, full_data, generative_method, device, args)
pnpflow/compute_metric.py:8
Method__init__
(self, model, device, args)
pnpflow/train_flow_matching.py:42
Method__init__
(self, model)
pnpflow/train_flow_matching.py:254
Method__init__
(self, dim, out_dim=None, w=64, time_varying=False)
pnpflow/toy_example.py:36
Method__init__
(self, init_type='gaussian', noise_scale=1.0, reflow_flag=False, reflow_t_schedule='uniform', reflow_loss='l2'
pnpflow/image_generation/sde_lib.py:8
← previousnext →101–200 of 418, ranked by callers