From 652733fd7ce0c50e4a22aa3ae0d11c97ae52667f Mon Sep 17 00:00:00 2001
From: Tizian Wenzel <wenzeltn@nbanm02.mathematik.uni-stuttgart.de>
Date: Thu, 8 Jun 2023 12:23:04 +0200
Subject: [PATCH] Added setup.sh file.

---
 setup.sh | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100755 setup.sh

diff --git a/setup.sh b/setup.sh
new file mode 100755
index 0000000..a454aeb
--- /dev/null
+++ b/setup.sh
@@ -0,0 +1,28 @@
+set -e
+export BASEDIR="$(cd "$(dirname ${BASH_SOURCE[0]})" ;  pwd -P)"
+cd "${BASEDIR}"
+
+# Create and source virtualenv
+if [ -e "${BASEDIR}/venv/bin/activate" ]; then
+	echo "using existing virtualenv"
+else	
+	echo "creating virtualenv ..."
+	virtualenv --python=python3 venv
+fi
+
+source venv/bin/activate
+
+# Upgrade pip and install libraries (dependencies are also installed)
+pip install --upgrade pip
+pip3 install --ignore-installed torch==1.9.1+cpu torchvision==0.10.1+cpu torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html
+
+scipy==1.7.3
+sklearn==0.0.post5
+
+
+# Install further stuff
+pip install matplotlib
+
+
+# pip freeze > requirements.txt	
+
-- 
GitLab