-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle_main.py
More file actions
26 lines (22 loc) · 649 Bytes
/
single_main.py
File metadata and controls
26 lines (22 loc) · 649 Bytes
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
import torch
from main import compute_avg
from main import Experiment
from logger import Logger, timing
mylogger = Logger()
def main():
accs = []
for _ in range(1):
print("Running experiment", "ect_cnn_best.yaml")
exp = Experiment(
"./experiment/lrgb/lrgb_linear_edges.yaml", logger=mylogger, dev=True
)
# exp = Experiment(
# "./experiment/manifold_classification/ect_cnn_faces.yaml",
# logger=mylogger,
# dev=True,
# )
loss, acc = exp.run()
accs.append(acc)
compute_avg(torch.tensor(accs))
if __name__ == "__main__":
main()