Skip to content

Commit 08de9aa

Browse files
committed
main.py: minor update, edit help comments in 'build_parser'
1 parent eaa11cd commit 08de9aa

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

main.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def str2bool(v):
2525
parser.add_argument('--train-flag', type=str2bool,
2626
help='Train flag', required=True)
2727

28-
parser.add_argument('--max_iter', type=int,
28+
parser.add_argument('--max-iter', type=int,
2929
help='Train iterations', default=40000)
3030

3131
parser.add_argument('--batch-size', type=int,
@@ -44,16 +44,16 @@ def str2bool(v):
4444
help='Size for crop image durning training', default=None)
4545

4646
parser.add_argument('--layers', type=int, nargs='+',
47-
help='layer indices to extract features', default=[1, 6, 11, 20])
47+
help='Layer indices to extract features', default=[1, 6, 11, 20])
4848

4949
parser.add_argument('--feature-weight', type=float,
50-
help='feautre loss weight', default=0.1)
50+
help='Feautre loss weight', default=0.1)
5151

5252
parser.add_argument('--reconstruction-weight', type=float,
53-
help='image reconstruction loss weight', default=1.0)
53+
help='Image reconstruction loss weight', default=1.0)
5454

5555
parser.add_argument('--tv-weight', type=float,
56-
help='tv loss weight', default=1.0)
56+
help='Total valiation loss weight', default=1.0)
5757

5858
parser.add_argument('--train-data-path', type=str,
5959
help='Content data path for training')
@@ -65,22 +65,22 @@ def str2bool(v):
6565
help="Trained model load path")
6666

6767
parser.add_argument('--test-content-image-path', type=str,
68-
help="test content image path")
68+
help="Test content image path")
6969

7070
parser.add_argument('--test-style-image-path', type=str,
71-
help="test style image path")
71+
help="Test style image path")
7272

7373
parser.add_argument('--output-image-path', type=str,
74-
help='output image path to save the stylized image', default='stylized.jpg')
74+
help='Path to save the stylized image', default='stylized.jpg')
7575

7676
parser.add_argument('--style-strength', type=float,
77-
help='content vs style interpolation value: 1(style), 0(content)', default=1.0)
77+
help='Content vs style interpolation value: 1(style), 0(content)', default=1.0)
7878

7979
parser.add_argument('--patch-size', type=int,
80-
help='size of patch for swap normalized content and style features', default=3)
80+
help='Size of patch for swap normalized content and style features', default=3)
8181

8282
parser.add_argument('--patch-stride', type=int,
83-
help='size of patch stride for swap normalized content and style features', default=1)
83+
help='Size of patch stride for swap normalized content and style features', default=1)
8484
return parser
8585

8686
if __name__ == '__main__':

0 commit comments

Comments
 (0)