Skip to content

Commit 54ac4ba

Browse files
author
arch
committed
put parameter into config file
1 parent 8fdcfc8 commit 54ac4ba

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

funscript_editor/algorithms/funscriptgenerator.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
@dataclass
2727
class FunscriptGeneratorParameter:
2828
""" Funscript Generator Parameter Dataclass with default values """
29-
video_path: str
30-
start_frame: int = 0
29+
video_path: str # no default value
30+
start_frame: int = 0 # default is video start
3131
skip_frames: int = HYPERPARAMETER['skip_frames']
32-
max_playback_fps: int = 0
33-
direction: str = 'y'
34-
use_zoom: bool = False
32+
max_playback_fps: int = HYPERPARAMETER['max_playback_fps']
33+
direction: str = HYPERPARAMETER['tracking_direction']
34+
use_zoom: bool = HYPERPARAMETER['use_zoom']
3535
track_men: bool = True
3636

3737

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
skip_frames: 1
22
avg_sec_for_local_min_max_extraction: 1.9
33
min_frames: 120
4+
use_zoom: False
5+
tracking_direction: 'y'
6+
max_playback_fps: 0

0 commit comments

Comments
 (0)