aboutsummaryrefslogtreecommitdiff
path: root/imagocli.py
blob: 5f1438047ed7e26268b08145c2c4d995ee3bfe6a (plain)
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
#!/usr/bin/python

"""Run the Imago engine."""

import sys

from imago.data.enums import DecisionAlgorithms
from imago.engine.imagoIO import ImagoIO

if __name__ == "__main__":

    decisionAlgorithm = None
    if len(sys.argv) >= 3:
        if sys.argv[1] == "-e":
            if sys.argv[2] == "montecarlo":
                decisionAlgorithm = DecisionAlgorithms.MONTECARLO
            if sys.argv[2] == "keras":
                decisionAlgorithm = DecisionAlgorithms.KERAS
            if sys.argv[2] == "dense":
                decisionAlgorithm = DecisionAlgorithms.DENSE
            if sys.argv[2] == "conv":
                decisionAlgorithm = DecisionAlgorithms.CONV

    if decisionAlgorithm is None:
        io = ImagoIO()
    else:
        io = ImagoIO(decisionAlgorithm)

    io.start()