Skip to content

Commit 3f4d23a

Browse files
Replaced clip function
1 parent 9e791d9 commit 3f4d23a

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ BabbleApp/dist
1111
.vscode
1212
/testing
1313
/old_models
14+
/Lib
15+
/scripts
16+
/share
17+
18+
1419
scripts/example_build_app_and_installer.bat
1520
scripts/example_build_app_and_installer.bat
1621
scripts/installer.iss
1722
Glia_cap.py
1823
lazyass_minecraft_script.py
24+
scripts/example_build_app_and_installer.bat

BabbleApp/osc_calibrate_filter.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,4 @@ def cal_osc(self, array):
7676
calibrated_array[i] = calibrated_value
7777
array = calibrated_array
7878

79-
for i, value in enumerate(array): # Clamp output between 0-1
80-
min_value = self.min_max_array[0, i]
81-
calibrated_value = (value - 0) / (1.0 - 0)
82-
array[i] = calibrated_value
83-
84-
return array
79+
return np.clip(array,0,1) # Clamp outputs between 0-1

requirements.txt

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
onnxruntime
2-
openvino
2+
onnxruntime-gpu
3+
onnxruntime-openvino
34
opencv_python
45
Pillow
5-
PySimpleGUI
6+
pysimplegui
67
python_osc
7-
#torch
8-
torchvision
8+
torch
9+
torchvision
10+
pydantic
11+
pyserial
12+
colorama
13+
winotify
14+
poetry

0 commit comments

Comments
 (0)