File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
funscript_editor/algorithms Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -230,14 +230,14 @@ def calculate_score(self, bboxes) -> None:
230230 if metric in self .funscripts .keys () and self .funscripts [metric ].is_inverted ():
231231 if metric == 'roll' :
232232 self .logger .info ("%s: Get absolute inverted Score" , metric )
233- self .score [metric ] = [abs (item ) for item in score [metric ]]
233+ self .score [metric ] = [abs (- 1.0 * item + 100 ) for item in score [metric ]]
234234 else :
235235 self .logger .info ("%s: Scale Inverted Score to 0 - 100" , metric )
236236 self .score [metric ] = Signal .scale ([- 1.0 * x for x in score [metric ]], 0 , 100 )
237237 else :
238238 if metric == 'roll' :
239239 self .logger .info ("%s: Get absolute Score" , metric )
240- self .score [metric ] = [abs (- 1.0 * item ) for item in score [metric ]]
240+ self .score [metric ] = [abs (item ) for item in score [metric ]]
241241 else :
242242 self .logger .info ("%s: Scale Score to 0 - 100" , metric )
243243 self .score [metric ] = Signal .scale (score [metric ], 0 , 100 )
You can’t perform that action at this time.
0 commit comments