您好,我有一个产生这样的 logits / 输出的网络:
logits = tf.placeholder(tf.float32, [None, 128, 64, 64]) // outputs
y = tf.placeholder(tf.float32, [None, 128, 64, 64]) // ground_truth, targets
--> y ground truth值被缩小,[0, 255] to [0, 1]
以增加性能,因为我读过最好使用范围[0, 1]
现在我想像这样计算 RMSE / EuclideanLoss:
loss = tf.reduce_mean(tf.square(logits - y))
或者
loss = tf.sqrt(tf.reduce_mean(tf.square(tf.subtract(y, logits))))
不确定哪个更好。
这样做时,我的损失值从粗略开始1.
,然后迅速下降到2.5e-4
. 当我EuclideanLoss
在同一个网络中使用 Caffe 时,我的损失值从粗略开始1000
下降到200
. 我在 Tensorflow 中做错了什么或者为什么损失值那么小?我无法真正跟踪损失值,tensorboard
因为它们太小了。谁能帮我?