Fix dense depth loss and model, fix metric naming

This commit is contained in:
Piv
2021-09-13 20:35:59 +09:30
parent 28b11aaa44
commit a053238310
4 changed files with 20 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
import tensorflow as tf
def delta1_metric(y_true, y_pred):
def delta1(y_true, y_pred):
max_ratio = tf.maximum(y_pred / y_true, y_true / y_pred)
return tf.reduce_mean(tf.cast(max_ratio < tf.convert_to_tensor(1.25), tf.float32))