PCA-Net icon indicating copy to clipboard operation
PCA-Net copied to clipboard

Are centers updating the expected way?

Open Yewen1486 opened this issue 2 years ago • 0 comments

Target_centers are normlized before calculating center offset.
target_centers = torch.nn.functional.normalize(target_centers, dim=-1) center_offset = (1-alpha)*(features.detach() - target_centers) However, if features' norm is bigger than 1, these centers will move towards inf. While features' norm is smaller 1, these centers will head towards 0. So, you may let alone the normalization before calculating center offset.

Yewen1486 avatar Sep 21 '23 07:09 Yewen1486