Skip to content

Commit 176b743

Browse files
aiarkinxpfinashx
aiarkinx
authored and
pfinashx
committed
openvino version
1 parent b95d117 commit 176b743

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

external/anomaly/init_venv.sh

+12-2
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,18 @@ else
109109
echo torchvision==${TORCHVISION_VERSION}+cu${CUDA_VERSION_CODE} >> ${CONSTRAINTS_FILE}
110110
fi
111111

112-
pip install -r requirements.txt
113-
pip install -e .
112+
# Install Anomalib
113+
pip install -e $ANOMALIB_REPO || exit 1
114+
115+
# Install requirements.
116+
pip install -r $ANOMALIB_REPO/requirements/requirements.txt -c ${CONSTRAINTS_FILE} || exit 1
117+
118+
pip install -e . -c ${CONSTRAINTS_FILE} || exit 1
119+
ANOMALIB_OTE_DIR=$(realpath .)
120+
echo "export ANOMALIB_OTE_DIR=${ANOMALIB_OTE_DIR}" >> ${venv_dir}/bin/activate
121+
122+
# Install OpenVINO requirements
123+
pip install -r $ANOMALIB_REPO/requirements/requirements_openvino_mo.txt -c ${CONSTRAINTS_FILE} || exit 1
114124

115125
pip install -e $OTE_SDK_PATH || exit 1
116126

0 commit comments

Comments
 (0)