MCPcopy
hub / github.com/richzhang/PerceptualSimilarity / forward

Method forward

models/networks_basic.py:128–129  ·  view source on GitHub ↗
(self,d0,d1,eps=0.1)

Source from the content-addressed store, hash-verified

126 self.model = nn.Sequential(*layers)
127
128 def forward(self,d0,d1,eps=0.1):
129 return self.model.forward(torch.cat((d0,d1,d0-d1,d0/(d1+eps),d1/(d0+eps)),dim=1))
130
131class BCERankingLoss(nn.Module):
132 def __init__(self, chn_mid=32):

Callers

nothing calls this directly

Calls 1

forwardMethod · 0.45

Tested by

no test coverage detected