    # print(Pc.size(), gt_c.size())
    cd1 = CD(P1, gt_1)* 1e3
    # print(P1.size(), gt_1.size())
    cd2 = CD(P2, gt_2)* 1e3
    # print(P2.size(), gt_2.size())
    cd3 = CD(P3, gt)* 1e3
    # print(P3.size(), gt.size())

    loss_all = (cdc + cd1 + cd2 + cd3) * 1e3
    losses = (cdc, cd1, cd2, cd3)