MCPcopy Create free account

hub / github.com/MegaScenes/nvs / functions

Functions1,032 in github.com/MegaScenes/nvs

↓ 165 callersMethodto
Same as to in torch module Don't really underestand why this isn't a module in the first place
ldm/models/diffusion/ddim.py:20
↓ 81 callersMethodregister_buffer
(self, name, attr)
ldm/models/diffusion/ddim.py:29
↓ 60 callersMethodload
(cls, path: str, arr_name: str)
ldm/modules/evaluate/adm_evaluator.py:521
↓ 43 callersFunctionextract_into_tensor
(a, t, x_shape)
ldm/modules/diffusionmodules/util.py:96
↓ 38 callersFunctioninstantiate_from_config
(config)
ldm/util.py:150
↓ 37 callersMethodupdate
(self, val, n=1)
evaluation/utils.py:17
↓ 26 callersMethoddecode
(self, x_latent, cond, t_start, unconditional_guidance_scale=1.0, unconditional_conditioning=None,
ldm/models/diffusion/ddim.py:323
↓ 19 callersMethoddecode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
ldm/models/diffusion/backup_ddpm.py:772
↓ 16 callersFunctionexists
(val)
ldm/modules/x_transformer.py:54
↓ 15 callersMethod__init__
(self, *, ch, out_ch, ch_mult=(1,2,4,8), num_res_blocks, attn_resolutions, dropout=0.0, resam
ldm/modules/diffusionmodules/model.py:217
↓ 15 callersMethod__init__
(self, n_embed, n_layer, vocab_size=30522, max_seq_len=77, device="cuda",use_tokenizer=True,
ldm/modules/encoders/modules.py:156
↓ 15 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
ldm/modules/diffusionmodules/util.py:218
↓ 15 callersFunctionlog_txt_as_img
(wh, xc, size=10)
ldm/util.py:89
↓ 14 callersFunctiondefault
(val, d)
ldm/util.py:129
↓ 14 callersFunctionexists
(x)
ldm/util.py:125
↓ 13 callersMethodq_sample
(self, x_start, t, noise=None)
ldm/models/diffusion/ddpm.py:325
↓ 13 callersMethodregister_buffer
(self, name, attr)
ldm/models/diffusion/plms.py:19
↓ 13 callersMethodsample_log
(self, cond, batch_size, ddim, ddim_steps, **kwargs)
ldm/models/diffusion/backup_ddpm.py:1239
↓ 12 callersMethod__init__
(self, value, fn)
ldm/modules/x_transformer.py:118
↓ 12 callersMethodencode
(self, x0, c, t_enc, use_original_steps=False, return_intermediates=None, unconditional_guidanc
ldm/models/diffusion/ddim.py:261
↓ 12 callersFunctionget_block
(in_channel, depth, num_units, stride=2)
ldm/thirdp/psp/helpers.py:27
↓ 12 callersMethodget_input
(self, batch, k)
ldm/models/diffusion/backup_ddpm.py:380
↓ 11 callersMethoddecode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
ldm/models/diffusion/all_functions_ddpm.py:815
↓ 11 callersMethodq_sample
(self, x_start, t, noise=None)
ldm/models/diffusion/backup_ddpm.py:325
↓ 10 callersMethoddecode
(self, quant)
ldm/models/autoencoder.py:108
↓ 10 callersMethoddecode_first_stage
(self, z, predict_cids=False, force_not_quantize=False)
ldm/models/diffusion/ddpm.py:914
↓ 10 callersFunctionnonlinearity
(x)
ldm/modules/diffusionmodules/model.py:33
↓ 10 callersFunctionresize_with_padding
Resize an image to the target size, adding padding to the shorter side to maintain aspect ratio. :param img: img_path (str) or PIL image
dataloader/data_helpers.py:758
↓ 9 callersFunctionNormalize
(in_channels, num_groups=32)
ldm/modules/diffusionmodules/model.py:38
↓ 9 callersMethod__init__
(self, channels, use_conv, dims=2, out_channels=None, padding=1)
ldm/modules/diffusionmodules/openaimodel.py:102
↓ 9 callersMethodmeshgrid
(self, h, w)
ldm/models/diffusion/ddpm.py:685
↓ 9 callersMethodq_sample
(self, x_start, t, noise=None)
ldm/models/diffusion/all_functions_ddpm.py:325
↓ 8 callersMethodapply_model
(self, x_noisy, t, cond, return_ids=False, return_feature=False)
ldm/models/diffusion/ddpm.py:1049
↓ 8 callersMethodget_learned_conditioning
(self, c)
ldm/models/diffusion/ddpm.py:672
↓ 8 callersMethodget_learned_conditioning
(self, c)
ldm/models/diffusion/all_functions_ddpm.py:645
↓ 8 callersFunctionismap
(x)
ldm/util.py:113
↓ 8 callersFunctionnoise_like
(shape, device, repeat=False)
ldm/modules/diffusionmodules/util.py:264
↓ 8 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
ldm/modules/diffusionmodules/util.py:199
↓ 8 callersMethodsample
(self)
ldm/modules/distributions/distributions.py:17
↓ 8 callersFunctionunproject_depth
( out_ply, rgb, depth, K, C2W, scale_factor=1.0, add_faces=False, prune_edge_faces=True, prune_angle=70.0
dataloader/util_3dphoto.py:65
↓ 8 callersMethodyear
(self)
ldm/data/coco.py:95
↓ 7 callersMethod__init__
(self, unet_config, timesteps=1000, beta_schedule="linear",
ldm/models/diffusion/backup_ddpm.py:50
↓ 7 callersMethodencode
(self, text)
ldm/modules/encoders/modules.py:175
↓ 7 callersFunctionisimage
(x)
ldm/util.py:119
↓ 7 callersFunctionload_img
(img_name, size=None)
ldm/modules/evaluate/evaluate_perceptualsim.py:334
↓ 7 callersFunctionmake_attn
(in_channels, attn_type="vanilla")
ldm/modules/diffusionmodules/model.py:205
↓ 7 callersFunctionnp_to_torchfloat
(arr)
ldm/data/data_helpers.py:103
↓ 7 callersMethodquantize
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:439
↓ 7 callersFunctionrender_multiviews
(H, W, K, C2Ws, meshes, ref_C2W=None)
dataloader/util_3dphoto.py:154
↓ 6 callersMethod__init__
(self, dim_in, dim_out)
ldm/modules/attention.py:39
↓ 6 callersMethod__init__
(self, txt_file, data_root, size=None, int
ldm/data/lsun.py:10
↓ 6 callersFunctionadd_JPEG_noise
(img)
ldm/modules/image_degradation/bsrgan.py:418
↓ 6 callersFunctionadd_blur
(img, sf=4)
ldm/modules/image_degradation/bsrgan.py:325
↓ 6 callersFunctiondefault
(val, d)
ldm/modules/x_transformer.py:58
↓ 6 callersMethodget_input
(self, batch, k)
ldm/models/diffusion/ddpm.py:380
↓ 6 callersMethodget_learned_conditioning
(self, c)
ldm/models/diffusion/backup_ddpm.py:619
↓ 6 callersMethodmode
(self)
ldm/modules/distributions/distributions.py:20
↓ 6 callersFunctionnp_to_torchfloat
(arr)
dataloader/data_helpers.py:161
↓ 5 callersMethod_get_denoise_row_from_list
(self, samples, desc='', force_no_decoder_quantization=False)
ldm/models/diffusion/backup_ddpm.py:598
↓ 5 callersFunction_get_relative_transformations
(batch, scales)
ldm/data/common.py:106
↓ 5 callersFunctioncount_params
(model, verbose=False)
ldm/util.py:143
↓ 5 callersMethodencode_first_stage
(self, x)
ldm/models/diffusion/backup_ddpm.py:832
↓ 5 callersFunctiongen_large_mask
img_h: int, an image height img_w: int, an image width marg: int, a margin for a box starting coordinate p_irr: float, 0 <= p_irr <=
ldm/data/inpainting/synthetic_mask.py:85
↓ 5 callersMethodget_first_stage_encoding
(self, encoder_posterior)
ldm/models/diffusion/backup_ddpm.py:610
↓ 5 callersMethodget_input
(self, batch, k)
ldm/models/diffusion/all_functions_ddpm.py:380
↓ 5 callersMethodget_unconditional_conditioning
(self, batch_size, null_label=None, image_size=512)
ldm/models/diffusion/backup_ddpm.py:1253
↓ 5 callersFunctionlinear
Create a linear module.
ldm/modules/diffusionmodules/util.py:231
↓ 5 callersMethodlog_img
(self, model, batch, epoch, split="train", foldername=None, returngrid=False, warpeddepth=None, has_target=Fal
ldm/logger.py:120
↓ 5 callersMethodmodify_score
(self, model, e_t, x, t, c)
ldm/guidance.py:57
↓ 5 callersMethodsample
(self, batch_size=16, return_intermediates=False)
ldm/models/diffusion/ddpm.py:319
↓ 5 callersMethodsample_log
(self, cond, batch_size, ddim, ddim_steps, **kwargs)
ldm/models/diffusion/all_functions_ddpm.py:1316
↓ 5 callersMethodto_rgb
(self, x)
ldm/models/diffusion/backup_ddpm.py:1441
↓ 4 callersMethod__init__
(self, pnet_type="vgg", pnet_rand=False, use_gpu=True)
ldm/modules/evaluate/evaluate_perceptualsim.py:237
↓ 4 callersMethod__init__
Imagenet Superresolution Dataloader Performs following ops in order: 1. crops a crop of size s from image either as random o
ldm/data/imagenet.py:273
↓ 4 callersMethod__init__
(self, size=None, dataroot="", datajson="", onehot_segmentation=False, use_stuffthing=False,
ldm/data/coco.py:13
↓ 4 callersFunction_quantize
(t, return_type="float")
evaluation/recon_metrics.py:13
↓ 4 callersFunctionadd_Gaussian_noise
(img, noise_level1=2, noise_level2=25)
ldm/modules/image_degradation/bsrgan.py:369
↓ 4 callersFunctionadd_JPEG_noise
(img)
ldm/modules/image_degradation/bsrgan_light.py:422
↓ 4 callersFunctionadopt_weight
(weight, global_step, threshold=0, value=0.)
ldm/modules/losses/vqperceptual.py:20
↓ 4 callersFunctioncalculate_weights_indices
(in_length, out_length, scale, kernel, kernel_width, antialiasing)
ldm/modules/image_degradation/utils_image.py:708
↓ 4 callersFunctioncartesian_to_spherical
(xyz)
ldm/data/nerf_like.py:11
↓ 4 callersMethodcompute_top_k
(self, logits, labels, k, reduction="mean")
ldm/models/diffusion/classifier.py:150
↓ 4 callersMethodcopy_to
(self, model)
ldm/modules/ema.py:46
↓ 4 callersMethodencode
(self, x)
ldm/models/autoencoder.py:97
↓ 4 callersFunctionextrinsics_to_matrix
(ext)
dataloader/data_helpers.py:668
↓ 4 callersMethodforward
(self, img1, img2, mask=None)
ldm/modules/evaluate/ssim.py:87
↓ 4 callersMethodget_last_layer
(self)
ldm/models/autoencoder.py:231
↓ 4 callersMethodget_last_layer
(self)
ldm/models/autoencoder.py:399
↓ 4 callersFunctionget_stats
(stats)
ldm/modules/evaluate/torch_frechet_video_distance.py:142
↓ 4 callersMethodload_im
replace background pixel with random color in rendering
ldm/data/backup_simple.py:274
↓ 4 callersFunctionmake_beta_schedule
(schedule, n_timestep, linear_start=1e-4, linear_end=2e-2, cosine_s=8e-3)
ldm/modules/diffusionmodules/util.py:21
↓ 4 callersFunctionoverlay_mask
(rgb, mask, color=[0.1, 0.8, 0.1], mask_opacity=0.35)
dataloader/util_3dphoto.py:386
↓ 4 callersFunctionposenc_nerf
Concatenate x and its positional encodings, following NeRF.
ldm/data/data_helpers.py:152
↓ 4 callersMethodpredict_start_from_noise
(self, x_t, t, noise)
ldm/models/diffusion/ddpm.py:267
↓ 4 callersMethodprocess_im
(self, im)
ldm/data/backup_simple.py:325
↓ 4 callersMethodrestore
Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without affecting the
ldm/modules/ema.py:64
↓ 4 callersMethodsample_log
(self, cond, batch_size, ddim, ddim_steps, **kwargs)
ldm/models/diffusion/ddpm.py:1440
↓ 4 callersMethodshared_step
(self, batch, t=None)
ldm/models/diffusion/classifier.py:179
↓ 4 callersMethodstore
Save the current parameters for restoring later. Args: parameters: Iterable of `torch.nn.Parameter`; the parameters to be
ldm/modules/ema.py:55
↓ 4 callersFunctionzero_module
Zero out the parameters of a module and return it.
ldm/modules/diffusionmodules/util.py:174
next →1–100 of 1,032, ranked by callers