Created
October 10, 2021 08:46
-
-
Save musan6363/3b901b18f081709eb95ede04c42eeaa2 to your computer and use it in GitHub Desktop.
openfaceを実行するpythonプログラムを実行するスクリプト.シェルスクリプトの中でconda環境を呼び出す.Ubuntuに対応.PATHに本プログラムのディレクトリを追加する必要がある.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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