MCPcopy Create free account

hub / github.com/AntixK/PyTorch-VAE / functions

Functions334 in github.com/AntixK/PyTorch-VAE

↓ 1 callersMethodreparameterize
:param mu: (Tensor) Mean of the latent Gaussian :param logvar: (Tensor) Standard deviation of the latent Gaussian :return:
models/miwae.py:114
↓ 1 callersMethodreparameterize
Reparameterization trick to sample from N(mu, var) from N(0,1). :param mu: (Tensor) Mean of the latent Gaussian [B x D]
models/dfcvae.py:120
↓ 1 callersMethodreparameterize
Reparameterization trick to sample from N(mu, var) from N(0,1). :param mu: (Tensor) Mean of the latent Gaussian [B x D]
models/logcosh_vae.py:108
↓ 1 callersMethodreparameterize
Gumbel-softmax trick to sample from Categorical Distribution :param z: (Tensor) Latent Codes [B x D x Q] :return: (Tensor) [B
models/cat_vae.py:118
↓ 1 callersMethodreparameterize
Reparameterization trick to sample from N(mu, var) from N(0,1). :param mu: (Tensor) Mean of the latent Gaussian [B x D]
models/info_vae.py:111
↓ 1 callersMethodreparameterize
Reparameterization trick to sample from N(mu, var) from N(0,1). :param mu: (Tensor) Mean of the latent Gaussian [B x D]
models/vanilla_vae.py:107
↓ 1 callersMethodreparameterize
Reparameterization trick to sample from N(mu, var) from N(0,1). :param mu: (Tensor) Mean of the latent Gaussian [B x D]
models/dip_vae.py:108
↓ 1 callersMethodreparameterize
Will a single z be enough ti compute the expectation for the loss?? :param mu: (Tensor) Mean of the latent Gaussian :
models/beta_vae.py:112
↓ 1 callersMethodreparameterize
Will a single z be enough ti compute the expectation for the loss?? :param mu: (Tensor) Mean of the latent Gaussian :
models/cvae.py:107
↓ 1 callersMethodreparameterize
Gumbel-softmax trick to sample from Categorical Distribution :param mu: (Tensor) mean of the latent Gaussian [B x D] :param
models/joint_vae.py:142
↓ 1 callersMethodreparameterize
Reparameterization trick to sample from N(mu, var) from N(0,1). :param mu: (Tensor) Mean of the latent Gaussian [B x D]
models/betatc_vae.py:115
↓ 1 callersMethodreparameterize
Reparameterization trick to sample from N(mu, var) from N(0,1). :param mu: (Tensor) Mean of the latent Gaussian [B x D]
models/twostage_vae.py:130
↓ 1 callersMethodreparameterize
Reparameterization trick to sample from N(mu, var) from N(0,1). :param mu: (Tensor) Mean of the latent Gaussian [B x D]
models/mssim_vae.py:114
↓ 1 callersMethodreparameterize
Will a single z be enough ti compute the expectation for the loss?? :param mu: (Tensor) Mean of the latent Gaussian :
models/vampvae.py:106
↓ 1 callersMethodreparameterize
Reparameterization trick to sample from N(mu, var) from N(0,1). :param mu: (Tensor) Mean of the latent Gaussian [B x D]
models/fvae.py:122
↓ 1 callersMethodreparameterize
:param mu: (Tensor) Mean of the latent Gaussian :param logvar: (Tensor) Standard deviation of the latent Gaussian :return:
models/iwae.py:111
↓ 1 callersMethodreparameterize
Reparameterize the Gamma distribution by the shape augmentation trick. Reference: [1] https://arxiv.org/pdf/1610.05683.pdf
models/gamma_vae.py:116
↓ 1 callersMethodsample
Samples from the latent space and return the corresponding image space map. :param num_samples: (Int) Number of samples
models/swae.py:181
↓ 1 callersMethodsample
Samples from the latent space and return the corresponding image space map. :param num_samples: (Int) Number of samples
models/gamma_vae.py:214
↓ 1 callersMethodsample_images
(self)
experiment.py:64
↓ 1 callersMethodsetup
(self, stage: Optional[str] = None)
dataset.py:100
↓ 1 callersMethodssim
(self, img1: Tensor, img2: Tensor, window_size: int, in_ch
models/mssim_vae.py:214
↓ 1 callersMethodtest_dataloader
(self)
dataset.py:173
↓ 1 callersMethodvae_gamma_kl_loss
https://stats.stackexchange.com/questions/11646/kullback-leibler-divergence-between-two-gamma-distributions b and d are Gamma shape p
models/gamma_vae.py:171
↓ 1 callersMethodweight_init
(self)
models/gamma_vae.py:85
Method__getitem__
(self, idx)
dataset.py:23
Method__getitem__
(self, idx)
dataset.py:58
Method__init__
(self, data_path: str, split: str, transform: Callable,
dataset.py:44
Method__init__
( self, data_path: str, train_batch_size: int = 8, val_batch_size: int = 8,
dataset.py:81
Method__init__
(self, vae_model: BaseVAE, params: dict)
experiment.py:17
Method__init__
(self, in_channels: int, latent1_dim: int, latent2_dim: int
models/hvae.py:10
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/miwae.py:11
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/dfcvae.py:11
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/swae.py:11
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/logcosh_vae.py:10
Method__init__
(self, in_channels: int, latent_dim: int, categorical_dim:
models/cat_vae.py:11
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/info_vae.py:10
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/vanilla_vae.py:11
Method__init__
(self)
models/base.py:7
Method__init__
(self, in_channels: int, out_channels: int, latent_dim: int
models/lvae.py:13
Method__init__
(self, in_channels: int, latent_dim: int)
models/lvae.py:44
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/dip_vae.py:10
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/wae_mmd.py:10
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/beta_vae.py:12
Method__init__
(self, in_channels: int, num_classes: int, latent_dim: int,
models/cvae.py:10
Method__init__
(self, in_channels: int, latent_dim: int, categorical_dim:
models/joint_vae.py:12
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/betatc_vae.py:12
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/twostage_vae.py:10
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/mssim_vae.py:11
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/vampvae.py:10
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/fvae.py:10
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/iwae.py:10
Method__init__
(self, in_channels: int, latent_dim: int, hidden_dims: List
models/gamma_vae.py:12
Method__init__
(self, num_embeddings: int, embedding_dim: int, beta: float
models/vq_vae.py:12
Method__init__
(self, in_channels: int, out_channels: int)
models/vq_vae.py:59
Method__len__
(self)
dataset.py:20
Method__len__
(self)
dataset.py:55
Method_check_integrity
(self)
dataset.py:35
Methodconfigure_optimizers
(self)
experiment.py:92
Functiondata_loader
Decorator to handle the deprecation of data_loader from 0.7 :param fn: User defined data loader function :return: A wrapper for the data_
utils.py:8
Methoddecode
(self, input: Tensor)
models/base.py:13
Methodencode
(self, input: Tensor)
models/base.py:10
Methodforward
(self, *inputs: Tensor)
models/base.py:23
Methodforward
(self, input: Tensor)
models/lvae.py:32
Methodforward
(self, z: Tensor)
models/lvae.py:55
Methodforward
(self, img1: Tensor, img2: Tensor)
models/mssim_vae.py:250
Methodforward
(self, latents: Tensor)
models/vq_vae.py:24
Methodforward
(self, input: Tensor)
models/vq_vae.py:69
Functionfunc_wrapper
(self)
utils.py:15
Methodgenerate
Given an input image x, returns the reconstructed image. Returns only the first reconstructed sample :param x: (Tensor) [B x
models/miwae.py:184
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/dfcvae.py:210
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/swae.py:199
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/logcosh_vae.py:175
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/cat_vae.py:202
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/info_vae.py:249
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/vanilla_vae.py:166
Methodgenerate
(self, x: Tensor, **kwargs)
models/base.py:19
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/lvae.py:264
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/dip_vae.py:184
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/wae_mmd.py:224
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/beta_vae.py:172
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/cvae.py:170
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/joint_vae.py:261
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/betatc_vae.py:231
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/twostage_vae.py:190
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/mssim_vae.py:173
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/vampvae.py:188
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/fvae.py:221
Methodgenerate
Given an input image x, returns the reconstructed image. Returns only the first reconstructed sample :param x: (Tensor) [B x
models/iwae.py:180
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/gamma_vae.py:230
Methodgenerate
Given an input image x, returns the reconstructed image :param x: (Tensor) [B x C x H x W] :return: (Tensor) [B x C x H x W]
models/vq_vae.py:218
Methodloss_function
KL(N(\mu, \sigma), N(0, 1)) = \log \frac{1}{\sigma} + \frac{\sigma^2 + \mu^2}{2} - \frac{1}{2} :param args: :param kwargs:
models/miwae.py:132
Methodloss_function
Computes the VAE loss function. KL(N(\mu, \sigma), N(0, 1)) = \log \frac{1}{\sigma} + \frac{\sigma^2 + \mu^2}{2} - \frac{1}{2}
models/dfcvae.py:163
Methodloss_function
(self, *args, **kwargs)
models/swae.py:110
Methodloss_function
Computes the VAE loss function. KL(N(\mu, \sigma), N(0, 1)) = \log \frac{1}{\sigma} + \frac{\sigma^2 + \mu^2}{2} - \frac{1}{2}
models/logcosh_vae.py:125
Methodloss_function
Computes the VAE loss function. KL(N(\mu, \sigma), N(0, 1)) = \log \frac{1}{\sigma} + \frac{\sigma^2 + \mu^2}{2} - \frac{1}{2}
models/cat_vae.py:139
Methodloss_function
(self, *args, **kwargs)
models/info_vae.py:128
Methodloss_function
Computes the VAE loss function. KL(N(\mu, \sigma), N(0, 1)) = \log \frac{1}{\sigma} + \frac{\sigma^2 + \mu^2}{2} - \frac{1}{2}
models/vanilla_vae.py:124
Methodloss_function
(self, *inputs: Any, **kwargs)
models/base.py:27
Methodloss_function
Computes the VAE loss function. KL(N(\mu, \sigma), N(0, 1)) = \log \frac{1}{\sigma} + \frac{\sigma^2 + \mu^2}{2} - \frac{1}{2}
models/lvae.py:218
← previousnext →101–200 of 334, ranked by callers