jiangtaoxie / fast-MPN-COV

@CVPR2018: Efficient unrolling iterative matrix square-root normalized ConvNets, implemented by PyTorch (and code of B-CNN,Compact bilinear pooling etc.) for training from scratch & finetuning.
http://peihuali.org/iSQRT-COV/index.html
MIT License
270 stars 56 forks source link

About the post-compensation implementation using trace #24

Closed dongZheX closed 4 years ago

dongZheX commented 4 years ago

Hi, I try to use trace to implement the Pre-normalization and Post-compensation, but I find that the trace of covariance matrix might be negative which make sqrt operation wrong.

so, Could I ask if we can guarantee that the trace of covariance matrix is positive, or use some operation to make sure it is positive.