Skip to content

Instantly share code, notes, and snippets.

@musan6363
Created October 10, 2021 08:46
Show Gist options
  • Save musan6363/3b901b18f081709eb95ede04c42eeaa2 to your computer and use it in GitHub Desktop.
Save musan6363/3b901b18f081709eb95ede04c42eeaa2 to your computer and use it in GitHub Desktop.
openfaceを実行するpythonプログラムを実行するスクリプト.シェルスクリプトの中でconda環境を呼び出す.Ubuntuに対応.PATHに本プログラムのディレクトリを追加する必要がある.
#!/bin/sh
. $HOME/.bashrc;
. $HOME/miniconda3/etc/profile.d/conda.sh
conda activate base
if [ $# -eq 1 ]; then
python $HOME/ssd1/run_openface/main.py $1
elif [ $# -eq 2 ]; then
python $HOME/ssd1/run_openface/main.py $1 $2
else
echo "Usage"
echo "run_openface <inpu_dir/vid> <output_dir(option)>"
exit 0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment