-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.txt
53 lines (43 loc) · 1.02 KB
/
README.txt
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
*************
TO RUN T-NID
*************
DEPENDENCIES:
- numpy
- pytorch
- scipy
- sklearn
COMMANDS:
$ cd T-NID
$ python3 run.py --num_trials 1
OUTPUT:
Results directory with AUC scores for full power sweep of aggregations and representative samples
Results/14/output.txt includes LaTeX code to generate tables for all aggregations and representative samples
****************
TO RUN TAYLORCAM
****************
DEPENDENCIES:
- numpy
- cv2
- pickle
- pil
- torchvision
- pytorch 1.5
COMMANDS:
$ cd TaylorCAM
To generate Sort-Of-CLEVR dataset:
$ cd Data
$ python3 sort_of_clevr.py
$ cd ..
To train RN:
$ python3 RelationalReasoning.py
--OR--
To train IRN:
$ python3 RelationalReasoning.py --pre-relational
To visualize RN interactions:
$ python3 explain_relation_network.py
--OR--
To visualize IRN interactions:
$ python3 explain_relation_network.py --pre-relational
OUTPUT:
Results directory with interaction visuals and a stats file with
each epoch's (epoch, relational accuracy, non-relational accuracy) and AMIS for one random test batch