mikesj-public / dcgan-autoencoder

MIT License
164 stars 49 forks source link

from lib import activations #2

Open Quxyz opened 6 years ago

Quxyz commented 6 years ago

when I run your code, there is an error: ImportError Traceback (most recent call last)

in () 5 6 from theano.sandbox.cuda.dnn import dnn_conv ----> 7 from lib import activations 8 from lib import inits 9 from lib.ops import batchnorm, deconv ImportError: cannot import name activations what can I do to solve this? sorry to bother you with such a simple question but I am a new one, coud you please help me ?
ghost commented 6 years ago

As is noted in 'dcgan_autoencoder_notebook.ipynb', lib is a folder from the original dcgan project. So all you should need to do is take the folder named 'lib' from https://github.com/Newmu/dcgan_code, and place it in the same directory as the piece of code you're running. Hopefully that solves your problem

Quxyz commented 6 years ago

Thanks!It helps a lot!