1 Star 0 Fork 0

pauleta/light-weight-face-anti-spoofing

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
init_venv.sh 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
kirill 提交于 2021-03-24 15:28 . updated state from OpenVINO
#!/usr/bin/env bash
work_dir=$(realpath "$(dirname $0)")
venv_dir=$1
if [ -z "$venv_dir" ]; then
venv_dir=venv
fi
cd ${work_dir}
if [[ -e ${venv_dir} ]]; then
echo
echo "Virtualenv already exists. Use command to start working:"
echo "$ . ${venv_dir}/bin/activate"
exit
fi
# Create virtual environment
virtualenv ${venv_dir} -p python --prompt="(venv)"
path_openvino_vars="${INTEL_OPENVINO_DIR:-/opt/intel/openvino}/bin/setupvars.sh"
if [[ -e "${path_openvino_vars}" ]]; then
echo ". ${path_openvino_vars}" >>${venv_dir}/bin/activate
fi
. ${venv_dir}/bin/activate
cat requirements.txt | xargs -n 1 -L 1 pip3 install
mo_requirements_file="${INTEL_OPENVINO_DIR:-/opt/intel/openvino}/deployment_tools/model_optimizer/requirements_onnx.txt"
if [[ -e "${mo_requirements_file}" ]]; then
pip install -qr ${mo_requirements_file}
else
echo "[WARNING] Model optimizer requirements were not installed. Please install the OpenVino toolkit to use one."
fi
echo
echo "Activate a virtual environment to start working:"
echo "$ . ${venv_dir}/bin/activate"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/pauleta/light-weight-face-anti-spoofing.git
git@gitee.com:pauleta/light-weight-face-anti-spoofing.git
pauleta
light-weight-face-anti-spoofing
light-weight-face-anti-spoofing
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385