MCPcopy Create free account
hub / github.com/MotrixLab/MotionDiffuse / __init__

Method __init__

text2motion/datasets/evaluator_models.py:16–18  ·  view source on GitHub ↗
(self, margin=3.0)

Source from the content-addressed store, hash-verified

14 Based on: http://yann.lecun.com/exdb/publis/pdf/hadsell-chopra-lecun-06.pdf
15 """
16 def __init__(self, margin=3.0):
17 super(ContrastiveLoss, self).__init__()
18 self.margin = margin
19
20 def forward(self, output1, output2, label):
21 euclidean_distance = F.pairwise_distance(output1, output2, keepdim=True)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected