You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #21 from SFI-Visual-Intelligence/christian/dataloader
- Implemented USPS dataloader for integers 0-6.
- Fixed a few bugs related to relative imports (changing `from metrics import ...`to `from .metrics import ...`)
- Changed from using `os.path` to the superior `pathlib`.
- Added `--dry_run` option to cli interface.
- Added `mps` backend to `--device`.
parser.add_argument('--datafolder', type=str, default='Data/', help='Path to where data will be saved during training.')
30
-
parser.add_argument('--resultfolder', type=str, default='Results/', help='Path to where results will be saved during evaluation.')
31
-
parser.add_argument('--modelfolder', type=str, default='Experiments/', help='Path to where model weights will be saved at the end of training.')
32
-
parser.add_argument('--savemodel', type=bool, default=False, help='Whether model should be saved or not.')
33
-
34
-
parser.add_argument('--download-data', type=bool, default=False, help='Whether the data should be downloaded or not. Might cause code to start a bit slowly.')
choices=['svhn'], help='Which dataset to train the model on.')
41
-
42
-
parser.add_argument("--metric", type=str, default="entropy", choices=['entropy', 'f1', 'recall', 'precision', 'accuracy'], nargs="+", help='Which metric to use for evaluation')
43
-
44
-
#Training specific values
45
-
parser.add_argument('--epoch', type=int, default=20, help='Amount of training epochs the model will do.')
46
-
parser.add_argument('--learning_rate', type=float, default=0.001, help='Learning rate parameter for model training.')
47
-
parser.add_argument('--batchsize', type=int, default=64, help='Amount of training images loaded in one go')
48
-
27
+
prog="",
28
+
description="",
29
+
epilog="",
30
+
)
31
+
# Structuture related values
32
+
parser.add_argument(
33
+
"--datafolder",
34
+
type=Path,
35
+
default="Data",
36
+
help="Path to where data will be saved during training.",
37
+
)
38
+
parser.add_argument(
39
+
"--resultfolder",
40
+
type=Path,
41
+
default="Results",
42
+
help="Path to where results will be saved during evaluation.",
43
+
)
44
+
parser.add_argument(
45
+
"--modelfolder",
46
+
type=Path,
47
+
default="Experiments",
48
+
help="Path to where model weights will be saved at the end of training.",
49
+
)
50
+
parser.add_argument(
51
+
"--savemodel",
52
+
type=bool,
53
+
default=False,
54
+
help="Whether model should be saved or not.",
55
+
)
56
+
57
+
parser.add_argument(
58
+
"--download-data",
59
+
type=bool,
60
+
default=False,
61
+
help="Whether the data should be downloaded or not. Might cause code to start a bit slowly.",
0 commit comments