mirror of
https://github.com/Project-Babble/ProjectBabble.git
synced 2026-11-21 09:31:16 -08:00
Replaced clip function
This commit is contained in:
1 parent
9e791d9bd0
commit
3f4d23a78a
3 files changed
+17
-10
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
return np.clip(array,0,1) # Clamp outputs between 0-1
|
||||
+10
-4
@@ -1,8 +1,14 @@
|
||||
onnxruntime
|
||||
openvino
|
||||
onnxruntime-gpu
|
||||
onnxruntime-openvino
|
||||
opencv_python
|
||||
Pillow
|
||||
PySimpleGUI
|
||||
pysimplegui
|
||||
python_osc
|
||||
#torch
|
||||
torchvision
|
||||
torch
|
||||
torchvision
|
||||
pydantic
|
||||
pyserial
|
||||
colorama
|
||||
winotify
|
||||
poetry
|
||||
Reference in new issue
Block a user