microsoft / RepPoints

Represent Visual Objects by Point Sets
MIT License
588 stars 75 forks source link

[code question] About pts_out_init.detach() #11

Open JanLin0817 opened 5 years ago

JanLin0817 commented 5 years ago

Hello, what is the detach usage in class RepPointsHead https://github.com/microsoft/RepPoints/blob/cac17da18b54c800db1565cf39a2723f6755b96c/src/reppoints_head/reppoints_head.py#L276

Is this try to prevent pts_out_init backward propagation multiple times?

muditchaudhary commented 4 years ago

As far as I can understand, it is to balance the loss terms for localization and classification.

Check https://github.com/microsoft/RepPoints/issues/6 for the information.