From 8bc6778456c86a8b9d88362efb195635d2a0dac3 Mon Sep 17 00:00:00 2001 From: junyanz Date: Sat, 26 Aug 2017 18:28:29 -0700 Subject: add epoch_count --- options/train_options.py | 1 + 1 file changed, 1 insertion(+) (limited to 'options') diff --git a/options/train_options.py b/options/train_options.py index 345f619..a595017 100644 --- a/options/train_options.py +++ b/options/train_options.py @@ -9,6 +9,7 @@ class TrainOptions(BaseOptions): self.parser.add_argument('--save_latest_freq', type=int, default=5000, help='frequency of saving the latest results') self.parser.add_argument('--save_epoch_freq', type=int, default=5, help='frequency of saving checkpoints at the end of epochs') self.parser.add_argument('--continue_train', action='store_true', help='continue training: load the latest model') + self.parser.add_argument('--epoch_count', type=int, default=1, help='the starting epoch count, we save the model by , +, ...') self.parser.add_argument('--phase', type=str, default='train', help='train, val, test, etc') self.parser.add_argument('--which_epoch', type=str, default='latest', help='which epoch to load? set to latest to use latest cached model') self.parser.add_argument('--niter', type=int, default=100, help='# of iter at starting learning rate') -- cgit v1.2.3-70-g09d2