Skip to content
Snippets Groups Projects
Commit 9fc14b0f authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 5d941f52
Branches sphinx
No related tags found
No related merge requests found
......@@ -216,14 +216,14 @@ def RelativisticAverageLoss(non_transformed_disc, type_="G"):
# Standard GAN loss functions ---------------------------------------
def gen_loss(non_transformed_disc, fake_image):
def std_loss_G(non_transformed_disc, fake_image):
fake_logits = non_transformed_disc(fake_image)
fake_loss = tf.nn.sigmoid_cross_entropy_with_logits(
labels=tf.ones_like(fake_logits), logits=fake_logits)
return fake_loss
def disc_loss(non_transformed_disc, real_image, fake_image):
def std_loss_D(non_transformed_disc, real_image, fake_image):
real_logits = non_transformed_disc(real_image)
fake_logits = non_transformed_disc(fake_image)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment