-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
31 lines (26 loc) · 967 Bytes
/
Copy pathsetup.sh
File metadata and controls
31 lines (26 loc) · 967 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -e
CONDA="/home/ubuntu/miniconda3/bin/conda"
PIP="/home/ubuntu/miniconda3/envs/xeye/bin/pip"
ROOT="$(cd "$(dirname "$0")" && pwd)"
echo "==> [1/3] Creating conda environment: xeye (Python 3.11)"
if $CONDA env list | grep -q "^xeye "; then
echo " Already exists, skipping."
else
$CONDA create -n xeye python=3.11 -y
fi
echo "==> [2/3] Installing Python dependencies"
$PIP install --upgrade pip wheel setuptools
$PIP install -r "$ROOT/requirements.txt"
# vieneu declares gradio as a hard dependency; the board only needs its ONNX runtime
# path, so install it without deps (requirements.txt lists what it actually imports).
$PIP install --no-deps vieneu==3.2.3
echo "==> [3/3] Creating directories"
mkdir -p "$ROOT/models/vintern"
mkdir -p "$ROOT/models/stt"
mkdir -p "$ROOT/models/vad"
mkdir -p "$ROOT/data/audio"
mkdir -p "$ROOT/data/images"
echo ""
echo "Setup complete."
echo "Next: conda activate xeye && python download_models.py"