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

snapshot...

parent 0b818227
No related branches found
No related tags found
No related merge requests found
......@@ -164,6 +164,12 @@ def pixel_loss(y_true, y_pred):
return tf.reduce_mean(tf.reduce_mean(tf.abs(y_true - y_pred), axis=0))
def pixel_loss_mse(y_true, y_pred):
y_true = tf.cast(y_true, tf.float32)
y_pred = tf.cast(y_pred, tf.float32)
return tf.reduce_mean(tf.reduce_mean(tf.square(y_true - y_pred), axis=0))
def RelativisticAverageLoss(non_transformed_disc, type_="G"):
""" Relativistic Average Loss based on RaGAN
Args:
......
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