image_classifier/image_classifier.sh

13 lines
479 B
Bash
Raw Normal View History

2025-04-04 15:18:48 +02:00
#!/bin/bash
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
if [ ! -d "${script_dir}/.venv" ]; then
python -m venv "$script_dir/.venv"
fi
# shellcheck disable=1091
source "$script_dir/.venv/bin/activate"
2025-04-04 16:02:51 +02:00
# pip install -r "$script_dir/requirements.txt" > /dev/null
2025-04-04 15:18:48 +02:00
pip install "$script_dir/" > /dev/null
2025-04-04 16:03:52 +02:00
pip install git+https://github.com/ageitgey/face_recognition_models > /dev/null
2025-04-04 16:12:03 +02:00
pip install --upgrade setuptools
2025-04-04 15:46:16 +02:00
image_classifier.py "${@}"