Skip to content

Losses variable is not defined in the train function #5

Description

@sweetatyagiaz

Hi I was running this code on the same Cat dataset, everything is good but I am getting an error regarding losses variable return by the train function.
Can you please fix this error.
I am attaching the error report below

NameError Traceback (most recent call last)
in ()
4 with tf.Graph().as_default():
5 losses, samples = train(epochs, batch_size, z_dim, learning_rate_D, learning_rate_G, beta1,
----> 6 dataset.get_batches, dataset.shape, dataset.image_mode, alpha)

in train(epoch_count, batch_size, z_dim, learning_rate_D, learning_rate_G, beta1, get_batches, data_shape, data_image_mode, alpha)
81
82
---> 83 return losses, samples

NameError: name 'losses' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions