jmtomczak / vae_vampprior

Code for the paper "VAE with a VampPrior", J.M. Tomczak & M. Welling
https://jmtomczak.github.io/deebmed.html
MIT License
223 stars 50 forks source link

ImportError: No module named 'Model' #1

Open thiscantbetaken opened 6 years ago

thiscantbetaken commented 6 years ago

Trying to get this working today, but I'm getting the following error:

python experiment.py --dataset_name=cifar10

load data Files already downloaded and verified create model Traceback (most recent call last): File "experiment.py", line 160, in run(args, kwargs) File "experiment.py", line 124, in run from models.VAE import VAE File "/workspace/vae_vampprior/models/VAE.py", line 20, in from Model import Model ImportError: No module named 'Model'

Any ideas?

jmtomczak commented 6 years ago

Please check whether you have the latest version of the code. I have added at some point a general class of a model (Model.py).

jramapuram commented 6 years ago

I think what needs to be done here is call it as such: from models.Model import Model . Fixed in https://github.com/jmtomczak/vae_vampprior/pull/2

adithyak2k03 commented 10 months ago

what is the most recent fix for this error?