jeffheaton / t81_558_deep_learning

T81-558: Keras - Applications of Deep Neural Networks @Washington University in St. Louis
https://sites.wustl.edu/jeffheaton/t81-558/
Other
5.71k stars 3.04k forks source link

NameError: name 'image_shape' is not defined #38

Closed lars1990 closed 4 years ago

lars1990 commented 4 years ago

Hey,

when building the Generator and the Discriminator with the Adam optimizer I receive the following error:

NameError Traceback (most recent call last)

in () 163 optimizer = Adam(1.5e-4,0.5) # learning rate and momentum adjusted from paper 164 **--> 165 discriminator = build_discriminator(image_shape)** 166 discriminator.compile(loss="binary_crossentropy",optimizer=optimizer,metrics=["accuracy"]) 167 generator = build_generator(SEED_SIZE,IMAGE_CHANNELS) NameError: name 'image_shape' is not defined How could I solve this problem?
jeffheaton commented 4 years ago

I will take a look at this soon. Getting ready to clean up any issues/fixes ahead of the next semester.

jeffheaton commented 4 years ago

This should have been resolved with my previous checkin.