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. so import models.<> or import utils.<> 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
In addition to print statement, there are following inconsistencies with python 2
shape.copy()
is not available in python2. Usetarget_shape=shape[:]
or something similar.__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