From 3f4d23a78a2d77dfedabae17709d4571c79e92c8 Mon Sep 17 00:00:00 2001 From: Rames The Generic <53163624+RamesTheGeneric@users.noreply.github.com> Date: Thu, 14 Sep 2023 19:51:16 -0400 Subject: [PATCH] Replaced clip function --- .gitignore | 6 ++++++ BabbleApp/osc_calibrate_filter.py | 7 +------ requirements.txt | 14 ++++++++++---- 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 459d6f3..e02ae76 100644 --- a/.gitignore +++ b/.gitignore @@ -11,8 +11,14 @@ BabbleApp/dist .vscode /testing /old_models +/Lib +/scripts +/share + + scripts/example_build_app_and_installer.bat scripts/example_build_app_and_installer.bat scripts/installer.iss Glia_cap.py lazyass_minecraft_script.py +scripts/example_build_app_and_installer.bat diff --git a/BabbleApp/osc_calibrate_filter.py b/BabbleApp/osc_calibrate_filter.py index 8e1d36a..f7c3b93 100644 --- a/BabbleApp/osc_calibrate_filter.py +++ b/BabbleApp/osc_calibrate_filter.py @@ -76,9 +76,4 @@ class cal(): calibrated_array[i] = calibrated_value array = calibrated_array - for i, value in enumerate(array): # Clamp output between 0-1 - min_value = self.min_max_array[0, i] - calibrated_value = (value - 0) / (1.0 - 0) - array[i] = calibrated_value - - return array \ No newline at end of file + return np.clip(array,0,1) # Clamp outputs between 0-1 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index b2272d0..216de48 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,14 @@ onnxruntime -openvino +onnxruntime-gpu +onnxruntime-openvino opencv_python Pillow -PySimpleGUI +pysimplegui python_osc -#torch -torchvision \ No newline at end of file +torch +torchvision +pydantic +pyserial +colorama +winotify +poetry