fidler-lab / curve-gcn

Official PyTorch code for Curve-GCN (CVPR 2019)
GNU General Public License v3.0
841 stars 134 forks source link

Can someone please explain differentiable accuracy loss? #6

Closed shivamsaboo17 closed 5 years ago

shivamsaboo17 commented 5 years ago

We have predictions from model as new position of the vertices (x_new, y_new) for each node. In the accuracy loss do we create a segmentation mask (of 1s and 0s) from these predicted points and take L1 norm with ground truth mask? If so can you please explain in short how it is done and why this is not differentiable? Thanks.

wenzhengchen commented 5 years ago

you may treat it as that we have a rendering function R, where the input is the vertices P and the output is the predicted mask M, which is M = R(P). This function is differentiable, which means you can back propagate gradients from M to P, such that you could use accuracy loss to supervise P. For more details please refer to OpenDR.