]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - jacinto-ai/pytorch-jacinto-ai-devkit.git/blob - setup.sh
quantization docs update
[jacinto-ai/pytorch-jacinto-ai-devkit.git] / setup.sh
1 #!/bin/bash
3 ######################################################################
4 version_match=`python -c 'import sys;r=0 if sys.version_info >= (3,7) and sys.version_info < (3,8) else 1;print(r)'`
5 if [ $version_match -ne 0 ]; then
6 echo 'python version must be 3.7'
7 exit 1
8 fi
10 ######################################################################
11 # Installing dependencies
12 echo 'Installing python packages...'
13 while read req; do echo ---------- $req ----------; conda install --yes $req || pip install $req; done < requirements.txt
15 ######################################################################
16 #NOTE: THIS STEP INSTALLS THE EDITABLE LOCAL MODULE pytorch-jacinto-ai
17 #NOTE: THIS IS THE MOST IMPORTANT STEP WITHOUT WHICH NONE OF THE SCRIPTS WILL WORK
18 echo 'Installing pytorch-jacinto-ai as a local module using setup.py'
19 pip install -e ./
21 ######################################################################
22 # Installing dependencies for mmdetection - call this seperately
23 # Not calling this here, as everyone doesn't need to use object detection
24 #./setup_mmdetection.sh