MCPcopy Create free account

hub / github.com/MegaScenes/nvs / functions

Functions1,032 in github.com/MegaScenes/nvs

Methodforward
(self, x)
ldm/modules/diffusionmodules/openaimodel.py:160
Methodforward
Apply the block to a Tensor, conditioned on a timestep embedding. :param x: an [N x C x ...] Tensor of features. :param emb:
ldm/modules/diffusionmodules/openaimodel.py:245
Methodforward
(self, x)
ldm/modules/diffusionmodules/openaimodel.py:316
Methodforward
Apply QKV attention. :param qkv: an [N x (H * 3 * C) x T] tensor of Qs, Ks, and Vs. :return: an [N x (H * C) x T] tensor afte
ldm/modules/diffusionmodules/openaimodel.py:358
Methodforward
Apply QKV attention. :param qkv: an [N x (3 * H * C) x T] tensor of Qs, Ks, and Vs. :return: an [N x (H * C) x T] tensor afte
ldm/modules/diffusionmodules/openaimodel.py:390
Methodforward
Apply the model to an input batch. :param x: an [N x C x ...] Tensor of inputs. :param timesteps: a 1-D batch of timesteps.
ldm/modules/diffusionmodules/openaimodel.py:746
Methodforward
Apply the model to an input batch. :param x: an [N x C x ...] Tensor of inputs. :param timesteps: a 1-D batch of timesteps.
ldm/modules/diffusionmodules/openaimodel.py:983
Methodforward
(ctx, run_function, length, *args)
ldm/modules/diffusionmodules/util.py:121
Methodforward
(self, x)
ldm/modules/diffusionmodules/util.py:215
Methodforward
(self, c_concat, c_crossattn)
ldm/modules/diffusionmodules/util.py:258
Methodforward
(self, x)
ldm/modules/diffusionmodules/model.py:53
Methodforward
(self, x)
ldm/modules/diffusionmodules/model.py:72
Methodforward
(self, x, temb)
ldm/modules/diffusionmodules/model.py:121
Methodforward
(self, x)
ldm/modules/diffusionmodules/model.py:178
Methodforward
(self, x, t=None, context=None)
ldm/modules/diffusionmodules/model.py:316
Methodforward
(self, x)
ldm/modules/diffusionmodules/model.py:434
Methodforward
(self, z)
ldm/modules/diffusionmodules/model.py:535
Methodforward
(self, x)
ldm/modules/diffusionmodules/model.py:594
Methodforward
(self, x)
ldm/modules/diffusionmodules/model.py:641
Methodforward
(self, x)
ldm/modules/diffusionmodules/model.py:680
Methodforward
(self, x)
ldm/modules/diffusionmodules/model.py:705
Methodforward
(self, x)
ldm/modules/diffusionmodules/model.py:722
Methodforward
(self, x)
ldm/modules/diffusionmodules/model.py:741
Methodforward
(self, x, scale_factor=1.0)
ldm/modules/diffusionmodules/model.py:763
Methodforward
(self,x)
ldm/modules/diffusionmodules/model.py:822
Methodforward
(self, img)
ldm/modules/encoders/modules.py:35
Methodforward
(self, img)
ldm/modules/encoders/modules.py:73
Methodforward
(self, batch, key=None)
ldm/modules/encoders/modules.py:101
Methodforward
(self, tokens)
ldm/modules/encoders/modules.py:118
Methodforward
(self, text)
ldm/modules/encoders/modules.py:137
Methodforward
(self, text)
ldm/modules/encoders/modules.py:167
Methodforward
(self, text)
ldm/modules/encoders/modules.py:204
Methodforward
(self, img)
ldm/modules/encoders/modules.py:241
Methodforward
(self, text)
ldm/modules/encoders/modules.py:291
Methodforward
(self, x)
ldm/modules/encoders/modules.py:338
Methodforward
(self, text)
ldm/modules/encoders/modules.py:357
Methodforward
(self, x)
ldm/modules/encoders/modules.py:394
Methodforward
(self, x)
ldm/modules/encoders/modules.py:444
Methodforward
(self,x)
ldm/modules/encoders/modules.py:483
Methodforward
(self, x)
ldm/modules/encoders/modules.py:543
Methodforward
(self, codebook_loss, inputs, reconstructions, optimizer_idx, global_step, last_layer=None, co
ldm/modules/losses/vqperceptual.py:98
Methodforward
(self, inputs, reconstructions, posteriors, optimizer_idx, global_step, last_layer=None, cond=
ldm/modules/losses/contperceptual.py:45
Methodforward
(self, input, return_pred_indices=False)
ldm/models/autoencoder.py:118
Methodforward
(self, input, sample_posterior=True)
ldm/models/autoencoder.py:337
Methodforward
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:444
Methodforward
(self, x_noisy, t, *args, **kwargs)
ldm/models/diffusion/classifier.py:120
Methodforward
(self, x, *args, **kwargs)
ldm/models/diffusion/ddpm.py:374
Methodforward
(self, batch)
ldm/models/diffusion/ddpm.py:1014
Methodforward
(self, x, t, c_concat: list = None, c_crossattn: list = None, c_adm=None)
ldm/models/diffusion/ddpm.py:1729
Methodforward
(self, x, *args, **kwargs)
ldm/models/diffusion/backup_ddpm.py:374
Methodforward
(self, x, c, *args, **kwargs)
ldm/models/diffusion/backup_ddpm.py:877
Methodforward
(self, x, t, c_concat: list = None, c_crossattn: list = None, c_adm=None)
ldm/models/diffusion/backup_ddpm.py:1457
Methodforward
(self, x, *args, **kwargs)
ldm/models/diffusion/all_functions_ddpm.py:374
Methodforward
(self, batch)
ldm/models/diffusion/all_functions_ddpm.py:915
Methodforward
(self, x, t, c_concat: list = None, c_crossattn: list = None, c_adm=None)
ldm/models/diffusion/all_functions_ddpm.py:1580
Methodforward
(self, x)
ldm/thirdp/psp/model_irse.py:46
Methodforward
(self, input)
ldm/thirdp/psp/helpers.py:13
Methodforward
(self, x)
ldm/thirdp/psp/helpers.py:67
Methodforward
(self, x)
ldm/thirdp/psp/helpers.py:93
Methodforward
(self, x)
ldm/thirdp/psp/helpers.py:118
Methodforward
(self, x, crop=False)
ldm/thirdp/psp/id_loss.py:16
Functionfxfy_from_intrinsics
(intrinsics)
dataloader/data_helpers.py:676
Functionfxfycxcy_from_intrinsics
(intrinsics)
dataloader/data_helpers.py:692
Functiongen_kernel
# modified version of https://github.com/assafshocher/BlindSR_dataset_generator # Kai Zhang # min_var = 0.175 * sf # variance of the gau
ldm/modules/image_degradation/bsrgan_light.py:145
Functiongen_kernel
# modified version of https://github.com/assafshocher/BlindSR_dataset_generator # Kai Zhang # min_var = 0.175 * sf # variance of the gau
ldm/modules/image_degradation/bsrgan.py:145
Functionget_T
(target_RT, cond_RT, to_torch=True)
ldm/data/common.py:47
Functionget_T
(T_target, T_cond)
ldm/data/nerf_like.py:21
Methodget_base
(self)
ldm/data/imagenet.py:390
Methodget_last_layer
(self)
ldm/modules/diffusionmodules/model.py:364
Methodget_model_output
(x, t)
ldm/models/diffusion/plms.py:186
Functionget_spherical
(T_target, T_cond)
ldm/data/nerf_like.py:32
Methodget_split
(self)
ldm/data/coco.py:193
Methodget_split
(self)
ldm/data/coco.py:212
Methodget_split
(self)
ldm/data/coco.py:231
Functionget_x_poses
(num_steps=6, radius=1, endpoint=2, w2c=True)
dataloader/evalhelpers.py:14
Methodget_x_prev_and_pred_x0
(e_t, index)
ldm/models/diffusion/plms.py:220
Functiongroup_by_key_prefix
(prefix, d)
ldm/modules/x_transformer.py:106
Functionguess_K
(H, W)
dataloader/util_3dphoto.py:261
Functionguess_image_K
(image)
dataloader/util_3dphoto.py:253
Functionhf_dataset
Make huggingface dataset with appropriate list of transforms applied
ldm/data/backup_simple.py:448
Functionhinge_d_loss_with_exemplar_weights
(logits_real, logits_fake, weights)
ldm/modules/losses/vqperceptual.py:11
Functionimresize
(img, scale, antialiasing=True)
ldm/modules/image_degradation/utils_image.py:766
Functionimresize_np
(img, scale, antialiasing=True)
ldm/modules/image_degradation/utils_image.py:839
Functionimsave
(img, img_path)
ldm/modules/image_degradation/utils_image.py:203
Functionimshow
(x, title=None, cbar=False, figsize=None)
ldm/modules/image_degradation/utils_image.py:37
Functionimwrite
(img, img_path)
ldm/modules/image_degradation/utils_image.py:209
Functioninit_
(tensor)
ldm/modules/attention.py:30
Functioninner
(*args, **kwargs)
ldm/modules/x_transformer.py:65
Functioninvert_depth
(depth_map)
dataloader/depth_helpers.py:47
Functionl1
(x, y)
ldm/modules/losses/vqperceptual.py:35
Functionl2
(x, y)
ldm/modules/losses/vqperceptual.py:39
Functionload_and_preprocess
:param input_im (PIL Image). :return image (H, W, 3) array in [0, 1].
ldm/util.py:63
Functionload_depth
https://github.com/vt-vl-lab/3d-photo-inpainting/blob/de0446740a3726f3de76c32e78b43bd985d987f9/main.py#L73 https://github.com/vt-vl-lab/3d-ph
dataloader/util_3dphoto.py:209
Functionload_depth_model
()
dataloader/evalhelpers.py:118
Functionload_depth_model
()
dataloader/depth_helpers.py:25
Functionload_image_and_K
https://github.com/vt-vl-lab/3d-photo-inpainting/blob/60ce4fcc5f8dc37a2b65bb72ef6287addc024bbf/utils.py#L874
dataloader/util_3dphoto.py:268
Functionload_img
(img_path)
dataloader/data_helpers.py:71
Functionload_img
(img_path)
ldm/data/data_helpers.py:16
Functionload_img_and_intrinsics
1. load and resize img then center crop to target_res x target_res (e.g. 512x512) 2. scale focal length and principal point by how much img i
dataloader/data_helpers.py:119
Functionload_img_and_transform
load and resize img then center crop to target_res x target_res (e.g. 512x512)
dataloader/data_helpers.py:76
← previousnext →801–900 of 1,032, ranked by callers