diff --git a/README.md b/README.md index b1c6101..e491fba 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,33 @@ gesture_rec/ git submodule update --init --remote --recursive +В будущем, чтобы подтянуть в сабмодулях изменения последнего коммита: + + git submodule update --remote --recursive + ### 3. Создание и активация виртуального окружения python3.11 -m venv venv source venv/bin/activate +Если у вас не скачен питон этой версии, сначала выполните: +``` +sudo apt install python3.11 python3.11-venv +``` + ### 4. Установка зависимостей +#### 4.1. Способ 1 + +Сделайте bash скрипт исполняемым и запустите последовательность установки: + + chmod +x install_deps.sh + ./install_deps.sh + +#### 4.2. Способ 2 + +Вручную: + pip install --upgrade pip pip install numpy==1.24.3 pip install pandas==2.0.3 diff --git a/install_deps.sh b/install_deps.sh new file mode 100644 index 0000000..17f6476 --- /dev/null +++ b/install_deps.sh @@ -0,0 +1,49 @@ +#!/bin/bash + +set -e + +pip install --upgrade pip + +pip install numpy==1.24.3 +pip install pandas==2.0.3 +pip install opencv-python==4.12.0.88 +pip install opencv-python-headless==4.12.0.88 +pip install matplotlib==3.7.5 +pip install protobuf==3.20.3 + +# PyTorch CPU - нужен только для tensorflow, достаточно под CPU в целом, но можно поставить GPU, но тогда возиться с CUDA +pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu + +# MediaPipe +pip install --no-deps mediapipe==0.10.11 +pip install attrs + +pip install scikit-learn==1.3.2 +pip install joblib==1.4.2 +pip install depthai==2.28.0 + +# TensorFlow +pip install --no-deps tensorflow==2.13.1 + +pip install \ + absl-py \ + astunparse \ + flatbuffers \ + gast \ + google-pasta \ + grpcio \ + h5py \ + keras==2.13.1 \ + libclang \ + opt-einsum \ + tensorboard==2.13.0 \ + tensorflow-estimator==2.13.0 \ + termcolor \ + wrapt \ + requests + +pip install numpy==1.24.3 +pip install scipy==1.11.0 +pip install pygame==2.6.1 + +echo "все установлено" diff --git a/submodules/gesture_detection b/submodules/gesture_detection index c72ff7d..0415ff9 160000 --- a/submodules/gesture_detection +++ b/submodules/gesture_detection @@ -1 +1 @@ -Subproject commit c72ff7ded0fdfeb292df2b7fc349370670978062 +Subproject commit 0415ff9f429d9f23bd14897447a0d555955eb17a