Commit 2dcdcb4f authored by Fábio Prestes's avatar Fábio Prestes

Alteracoes no script de instalacao, e consertado alguns erros relacionados a...

Alteracoes no script de instalacao, e consertado alguns erros relacionados a treinamento. Tambem foi tentado melhorar a instalacao para Windows, porém não foi obtido o sucesso desejado.
parent 6d655b03
...@@ -16,34 +16,75 @@ if [ "$EUID" -ne 0 ] ...@@ -16,34 +16,75 @@ if [ "$EUID" -ne 0 ]
exit exit
fi fi
echo "[PYNOVISAO INSTALLER] Updating apt-get..." read -p "Would you like to install the requirements for python3 usage? [y/n]" -n 1 -r
sudo apt-get -qq update
echo "[PYNOVISAO INSTALLER] Installing prerequisites..."
sudo apt-get -qq -y install libfreetype6-dev tk tk-dev python-pip openjdk-8-jre openjdk-8-jdk weka weka-doc python-tk python-matplotlib
sudo apt-get -qq -y install python3-pip python3-tk python3-matplotlib
source ~/.bashrc
echo "[PYNOVISAO INSTALLER] Upgrading pip..."
sudo pip install --upgrade pip --quiet
# Numpy must be installed before installing javabridge
echo "[PYNOVISAO INSTALLER] Installing numpy..."
sudo pip install numpy==1.14.5 --quiet
echo "[PYNOVISAO INSTALLER] Installing libraries..."
sudo pip install -r requeriments.txt --quiet
printf "${YELLOW} \n======== WARNING ========\n"
printf "The Keras is necessary so that it is possible to use CNN. It is recommended to install the version for GPU processing (if available) but it is also possible to use CPU processing.\n"
printf "To install the GPU version (tricky) follow the steps at: https://www.tensorflow.org/install/install_linux"
printf "${NC}\n"
read -p "Would you like to install keras CPU libraries? [y/n]" -n 1 -r
echo echo
if [[ $REPLY =~ ^[Yy]$ ]] if [[ $REPLY =~ ^[Yy]$ ]]
then then
echo "[PYNOVISAO INSTALLER] Installing keras libraries..." echo "[PYNOVISAO INSTALLER] Updating apt-get..."
sudo pip install tensorflow sudo apt-get -qq update
sudo pip install keras echo "[PYNOVISAO INSTALLER] Installing prerequisites..."
sudo apt-get -qq -y install libfreetype6-dev tk tk-dev python3-pip openjdk-8-jre openjdk-8-jdk weka weka-doc python3-tk
source ~/.bashrc
#echo "[PYNOVISAO INSTALLER] Upgrading pip3..."
#sudo pip3 install --upgrade pip --quiet
# Numpy must be installed before installing javabridge
echo "[PYNOVISAO INSTALLER] Installing numpy..."
sudo pip3 install numpy --quiet
echo "[PYNOVISAO INSTALLER] Installing libraries..."
sudo pip3 install -r requirements_pip3.txt --quiet
printf "${YELLOW} \n======== WARNING ========\n"
printf "The Keras is necessary so that it is possible to use CNN. It is recommended to install the version for GPU processing (if available) but it is also possible to use CPU processing.\n"
printf "To install the GPU version (tricky) follow the steps at: https://www.tensorflow.org/install/install_linux"
printf "${NC}\n"
read -p "Would you like to install keras CPU libraries? [y/n]" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "[PYNOVISAO INSTALLER] Installing keras libraries..."
sudo pip3 install tensorflow
sudo pip3 install keras
fi
echo
printf "${BLUE}[PYNOVISAO INSTALLER] Installation completed for Python 3!${NC}"
echo
fi fi
read -p "Would you like to install the requirements for python2 usage? [y/n]" -n 1 -r
echo echo
printf "${BLUE}[PYNOVISAO INSTALLER] Installation completed!${NC}" if [[ $REPLY =~ ^[Yy]$ ]]
echo then
echo "[PYNOVISAO INSTALLER] Updating apt-get..."
sudo apt-get -qq update
echo "[PYNOVISAO INSTALLER] Installing prerequisites..."
sudo apt-get -qq -y install libfreetype6-dev tk tk-dev python-pip openjdk-8-jre openjdk-8-jdk weka weka-doc python-tk
source ~/.bashrc
#echo "[PYNOVISAO INSTALLER] Upgrading pip3..."
#sudo pip install --upgrade pip --quiet
# Numpy must be installed before installing javabridge
echo "[PYNOVISAO INSTALLER] Installing numpy..."
sudo pip install numpy --quiet
echo "[PYNOVISAO INSTALLER] Installing libraries..."
sudo pip install -r requeriments.txt --quiet
printf "${YELLOW} \n======== WARNING ========\n"
printf "The Keras is necessary so that it is possible to use CNN. It is recommended to install the version for GPU processing (if available) but it is also possible to use CPU processing.\n"
printf "To install the GPU version (tricky) follow the steps at: https://www.tensorflow.org/install/install_linux"
printf "${NC}\n"
read -p "Would you like to install keras CPU libraries? [y/n]" -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "[PYNOVISAO INSTALLER] Installing keras libraries..."
sudo pip install tensorflow
sudo pip install keras
fi
echo
printf "${BLUE}[PYNOVISAO INSTALLER] Installation completed for Python 2!${NC}"
echo
fi
...@@ -7,7 +7,7 @@ sympy ...@@ -7,7 +7,7 @@ sympy
nose nose
networkx networkx
scikit-image scikit-image
javabridge==1.0.18 javabridge==1.0.12
python-weka-wrapper python-weka-wrapper
cycler==0.10 cycler==0.10
Cython Cython
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment