-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
35 lines (26 loc) · 1 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# activate virtual environment (works only if setup.sh has been run only !)
source ./env/bin/activate
# preprocess data
echo -e "\n [INFO:] Create metadata ..." # user msg
python3 src/create_metadata.py
# run simple neural network
echo -e "\n [INFO:] Running classification pipeline with simple neural network ..." # user msg
python3 src/classify_NN.py -data FAKE
python3 src/classify_NN.py -data REAL
# run LeNet CNN
echo -e "\n [INFO:] Running classification pipeline with LeNet CNN ..." # user msg
python3 src/classify_LeNet.py -data FAKE
python3 src/classify_LeNet.py -data REAL
# run VGG16
echo -e "\n [INFO:] Running classification pipeline with VGG16 CNN ..." # user msg
python3 src/classify_VGG16.py -data FAKE
python3 src/classify_VGG16.py -data REAL
# run visualisation
python3 src/visualise.py
# eval best classifiers on REAL test data
python3 src/final_evaluate.py
# deactivate virtual environment
deactivate
# celebratory user msg !
echo -e "\n [INFO:] Classifications complete!"