|
4 | 4 | import models.darts.genotypes as gt |
5 | 5 | from functools import partial |
6 | 6 | import torch |
| 7 | +import time |
7 | 8 |
|
8 | 9 |
|
9 | 10 | def get_parser(name): |
@@ -61,20 +62,23 @@ def build_parser(self): |
61 | 62 | parser.add_argument('--layers', type=int, default=20, help='# of layers') |
62 | 63 | parser.add_argument('--seed', type=int, default=2, help='random seed') |
63 | 64 | parser.add_argument('--workers', type=int, default=4, help='# of workers') |
64 | | - parser.add_argument('--aux_weight', type=float, default=0.4, help='auxiliary loss weight') |
| 65 | + parser.add_argument('--aux_weight', type=float, default=0, help='auxiliary loss weight') |
65 | 66 | parser.add_argument('--cutout_length', type=int, default=16, help='cutout length') |
66 | | - parser.add_argument('--drop_path_prob', type=float, default=0.2, help='drop path prob') |
| 67 | + # parser.add_argument('--drop_path_prob', type=float, default=0.2, help='drop path prob') |
| 68 | + parser.add_argument('--drop_path_prob', type=float, default=0, help='drop path prob') |
67 | 69 |
|
68 | 70 | parser.add_argument('--genotype', default='', help='Cell genotype') |
| 71 | + parser.add_argument('--deterministic', type=bool, default=True, help='momentum') |
69 | 72 |
|
70 | 73 | return parser |
71 | 74 |
|
72 | 75 | def __init__(self): |
73 | 76 | parser = self.build_parser() |
74 | 77 | args = parser.parse_args() |
75 | 78 | super().__init__(**vars(args)) |
76 | | - |
77 | | - self.path = os.path.join('expreiments', self.model_method + '_' + self.model_name) |
| 79 | + time_str = time.asctime(time.localtime()).replace(' ', '_') |
| 80 | + self.path = os.path.join('/userhome/project/pytorch_image_classification/expreiments', self.model_method + '_' |
| 81 | + + self.model_name + '_' + time_str) |
78 | 82 | if len(self.genotype) > 1: |
79 | 83 | self.genotype = gt.from_str(self.genotype) |
80 | 84 | else: |
|
0 commit comments