def record(self, pred, landmark):
    c = pred[0].shape[0]
    diff = np.zeros([c, 2], dtype=float)
    for i in range(c):
        diff[i][0] = (abs((pred[0][i] - landmark[i][1])) * self.scale_rate_y)
        diff[i][1] = (abs((pred[1][i] - landmark[i][0])) * self.scale_rate_x)
    Radial_Error = np.sqrt((np.power(diff[:, 0], 2) + np.power(diff[:, 1], 2)))
    Radial_Error *= self.pixel_spaceing
    self.RE_list.append(Radial_Error)
    return None
def record(self, pred, landmark):
    c = pred[0].shape[0]
    diff = np.zeros([c, 2], dtype=float)
    for i in range(c):
        diff[i][0] = (abs((pred[0][i] - landmark[i][1])) * self.scale_rate_y)
        diff[i][1] = (abs((pred[1][i] - landmark[i][0])) * self.scale_rate_x)
    Radial_Error = np.sqrt((np.power(diff[:, 0], 2) + np.power(diff[:, 1], 2)))
    Radial_Error *= self.pixel_spaceing
    self.RE_list.append(Radial_Error)
    return None