I am currently playing around with VAE model using this repo. I've implemented two small changes that were helpful to me for using model that I trained:
Model args saving in order to easily load it later on.
Changed sample = sample.squeeze to sample = sample.reshape(-1) in model.py, since squeezing caused degeneration of tensor to zero dimensions when batch size was 1 during inference.
I am currently playing around with VAE model using this repo. I've implemented two small changes that were helpful to me for using model that I trained:
sample = sample.squeeze
tosample = sample.reshape(-1)
inmodel.py
, since squeezing caused degeneration of tensor to zero dimensions when batch size was 1 during inference.