incompatibilities with python2
d-acharya opened this issue · 0 comments
d-acharya commented
In addition to print statement, there are following inconsistencies with python 2
- copy in base_model.py will not work.
shape.copy()
is not available in python2. Use
target_shape=shape[:]
or something similar. - imports need
__init__.py
in python earlier than 3.2. soimport models.<>
or importutils.<>
will not work Alternative is to add sys.path.append('utils') and sys.path.append('models') as already done and then
from data import CelebA, RandomNoiseGenerator
from model import Generator, Discriminator