Commit bc960375 authored by Sintal's avatar Sintal
Browse files

added execute_vehicle_classification.sh

parent 96e941ef
#!/bin/bash
echo "creating folder"
#create folder and change directory
mkdir -p ~/hpc_vehicle_classification
cd ~/hpc_vehicle_classification
pwd
echo "handling ssh-key"
#handle SSH-key (the argument "$1" is the SSH-key to gitlab)
eval $(ssh-agent -s)
echo "$1" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
#pull gitlab repository
echo "pulling gitlab repository"
git init
git pull git@transfer.hft-stuttgart.de:fork_hpc_vehicle_classification/hpc_vehicle_classification.git
#loading conda environment
echo "load and activate virtual environment"
eval "$(conda shell.bash hook)"
conda env create -f environment.yml
conda activate env_vehicle_classification
echo "running python code"
python main.py
Supports Markdown
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