Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.34 KB

README.md

File metadata and controls

38 lines (22 loc) · 1.34 KB

Implementation of cVAE in pytorch

Implementation of convolutional VAE in pytorch

Dataset

MNIST dataset which consists of images of shape 1x28x28

Implementation Details

Encoder-Decoder network consisting of conv and convtranspose layers respectively, activation function used is LeakyReLU instead of sigmoid as suggested in original paper to tackle vanishing gradient problem.

Learning Rate = 2*e-05

Batch Size = 16

Epochs = 50

Optimizer = Adam with betas-(0.5,0.999)

Results

Reconstructed Images from original images:

img-1 img-2

Images constructed from sampled noise:

img-3 img-4 img-5

Loss Curve:-

img-6 img-7