-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathlaunch.sh
More file actions
executable file
·28 lines (22 loc) · 875 Bytes
/
launch.sh
File metadata and controls
executable file
·28 lines (22 loc) · 875 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
#!/bin/bash
cd "$(dirname "$0")"
export PATH="/opt/homebrew/bin:$PATH"
# Prevent pip/python from using user-site packages
export PYTHONNOUSERSITE=1
# Disable Ultralytics telemetry for privacy
export YOLO_TELEMETRY=False
# Prevent OMP duplicate libomp crash (conda + torch both ship libomp)
export KMP_DUPLICATE_LIB_OK=TRUE
# Isolate Ultralytics config to project directory (prevents cross-project corruption)
export YOLO_CONFIG_DIR="$(dirname "$0")/config/ultralytics"
# Prevent Ultralytics from phoning home during normal usage
export YOLO_OFFLINE=True
# Activate environment (skip if already active to avoid double-activation)
if [ "$CONDA_DEFAULT_ENV" != "FunGen" ]; then
echo "Activating FunGen environment..."
source "$HOME/miniconda3/bin/activate" FunGen
else
echo "FunGen environment already active."
fi
echo "Starting FunGen..."
python main.py "$@"