Skip to content

Commit 2632de9

Browse files
committed
Update train.py
1 parent 47e5c25 commit 2632de9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

train.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Created Date: Monday December 27th 2021
66
# Author: Chen Xuanhong
77
# Email: chenxuanhongzju@outlook.com
8-
# Last Modified: Friday, 22nd April 2022 12:34:40 am
8+
# Last Modified: Friday, 22nd April 2022 10:49:26 am
99
# Modified By: Chen Xuanhong
1010
# Copyright (c) 2021 Shanghai Jiao Tong University
1111
#############################################################
@@ -49,9 +49,9 @@ def initialize(self):
4949

5050
# for training
5151
self.parser.add_argument('--dataset', type=str, default="/path/to/VGGFace2", help='path to the face swapping dataset')
52-
self.parser.add_argument('--continue_train', type=str2bool, default='True', help='continue training: load the latest model')
53-
self.parser.add_argument('--load_pretrain', type=str, default='checkpoints', help='load the pretrained model from the specified location')
54-
self.parser.add_argument('--which_epoch', type=str, default='320', help='which epoch to load? set to latest to use latest cached model')
52+
self.parser.add_argument('--continue_train', type=str2bool, default='False', help='continue training: load the latest model')
53+
self.parser.add_argument('--load_pretrain', type=str, default='./checkpoints/simswap224_test', help='load the pretrained model from the specified location')
54+
self.parser.add_argument('--which_epoch', type=str, default='10000', help='which epoch to load? set to latest to use latest cached model')
5555
self.parser.add_argument('--phase', type=str, default='train', help='train, val, test, etc')
5656
self.parser.add_argument('--niter', type=int, default=10000, help='# of iter at starting learning rate')
5757
self.parser.add_argument('--niter_decay', type=int, default=10000, help='# of iter to linearly decay learning rate to zero')

0 commit comments

Comments
 (0)