iGAN icon indicating copy to clipboard operation
iGAN copied to clipboard

from lib import activations

Open Quxyz opened this issue 6 years ago • 1 comments

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 ?

Quxyz avatar Apr 13 '18 02:04 Quxyz

You can try from .lib import activations. See more details on library import here.

Try something simple:

  • download the code
  • type python.
  • in the python environment, type from lib import activations. I just tried, and it worked for me.

junyanz avatar Apr 15 '18 05:04 junyanz