Skip to content

Commit d732cff

Browse files
author
arch
committed
formate code
1 parent 82aa4e1 commit d732cff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

funscript_editor/algorithms/funscriptgenerator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,8 @@ def calculate_score(self) -> None:
336336
if self.params.track_men:
337337
self.score['x'] = [w[0] - m[0] for w, m in zip(self.bboxes['Woman'], self.bboxes['Men'])]
338338
self.score['y'] = [m[1] - w[1] for w, m in zip(self.bboxes['Woman'], self.bboxes['Men'])]
339-
self.score['d'] = [np.sqrt(np.sum((np.array(m[:2]) - np.array(w[:2])) ** 2, axis=0)) for w, m in zip(self.bboxes['Woman'], self.bboxes['Men'])]
339+
self.score['d'] = [np.sqrt(np.sum((np.array(m[:2]) - np.array(w[:2])) ** 2, axis=0)) \
340+
for w, m in zip(self.bboxes['Woman'], self.bboxes['Men'])]
340341
else:
341342
self.score['x'] = [w[0] - min([x[0] for x in self.bboxes['Woman']]) for w in self.bboxes['Woman']]
342343
self.score['y'] = [max([x[1] for x in self.bboxes['Woman']]) - w[1] for w in self.bboxes['Woman']]

0 commit comments

Comments
 (0)