bastianwandt / RepNet

This is the original RepNet implementation
86 stars 17 forks source link

Question about camera_loss #5

Open luzzou opened 4 years ago

luzzou commented 4 years ago

hi, I have a question about the camera loss.

It seem that the result of tf.trace(m_sq) is not consistent with trace(K\timesK^T) since tf.trace is not a batch operation.

loss_mat = tf.reshape((2 / tf.trace(m_sq)), [-1, 1, 1])*m_sq - tf.eye(2)

Looking forward to your reply.