pytorch-vqvae icon indicating copy to clipboard operation
pytorch-vqvae copied to clipboard

Set train/eval correctly on model

Open y0ast opened this issue 6 years ago • 0 comments

I think you forgot to set train/eval mode in your train/test function. Since VectorQuantizedVAE contains batchnorm that is required to obtain correct results.

You do seem to set it in the pixelcnn prior training. I didn't check all parts of the code for this setting.

y0ast avatar Jul 23 '19 11:07 y0ast