Skip to content

Commit 31b451a

Browse files
author
arch
committed
add mp freeze suport
1 parent 1ae5f62 commit 31b451a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

funscript-editor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
import time
44
import traceback
5+
import multiprocessing
56
from funscript_editor.__main__ import main
67

78
if __name__ == '__main__':
9+
multiprocessing.freeze_support()
810
main()

funscript_editor/algorithms/signalprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def get_local_max_and_min_idx(score :list, fps: int, shift_min :int = 0, shift_m
209209
changepoints['max'].append(cp_idx)
210210

211211

212-
# apply manual shift
212+
logger.info("apply manual shift")
213213
if shift_min != 0:
214214
for k, idx in enumerate(changepoints['min']):
215215
changepoints['min'][k] = max((0, min((len(score)-1, idx+shift_min)) ))

main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/bin/env python3
2-
2+
import multiprocessing
33
from funscript_editor.__main__ import main
44

55
if __name__ == '__main__':
6+
multiprocessing.freeze_support()
67
main()

0 commit comments

Comments
 (0)