PerceptualSimilarity icon indicating copy to clipboard operation
PerceptualSimilarity copied to clipboard

Where is the Code that computes the L2 distance after Wl ?

Open rcx986635 opened this issue 3 years ago • 2 comments

I found it should computes the L2 distance after Wl from the paper, but I didnt find in the lpips.py or the other area.

rcx986635 avatar Mar 16 '21 01:03 rcx986635

@richzhang

rcx986635 avatar Mar 16 '21 01:03 rcx986635

for channel first , (N,C,H,W) after wl will be (N,1,H,W), then l2_norm( (N,1,H,W),dim=1,keepdims=True) ?

rcx986635 avatar Mar 16 '21 08:03 rcx986635