stevewongv / InstanceShadowDetection

Instance Shadow Detection (CVPR 2020)
Apache License 2.0
161 stars 24 forks source link

Visualize/compute light prediction #9

Closed mcleanalec closed 3 years ago

mcleanalec commented 3 years ago

It's not clear within the code how to compute/visualize the light direction. How do you do that?

From the output I can see pred_boxes and pred_light. The units of pred_light are not clear - I can see from the paper/code you use the atan2 function but I am not sure how to use those units. Can you elaborate, please?

stevewongv commented 3 years ago

As mention in the paper, we roughly compute the 2D light direction based on the center of object and shadow. This is more accurate than the Pred_light, which only helps network to find the associations.