StarGAN-Tensorflow icon indicating copy to clipboard operation
StarGAN-Tensorflow copied to clipboard

error when custom label

Open phelogges opened this issue 7 years ago • 3 comments

When I test your pre-trained model, it always raises an error on custom label even the default label

input: python3 main.py --phase=test --selected_attrs=['Black_Hair','Blond_Hair','Brown_Hair','Male','Young'] --custom_label=[1,0,0,0,0]

error: main.py: error: argument --custom_label: invalid int value: '[1,0,0,0,0]'

phelogges avatar Aug 07 '18 01:08 phelogges

do python3 main.py --phase=test --selected_attrs=['Black_Hair','Blond_Hair','Brown_Hair','Male','Young'] --custom_label=1 0 0 0 0

taki0112 avatar Aug 07 '18 02:08 taki0112

It still did't work error: main.py: error: unrecognized arguments: 0 0 0 0

phelogges avatar Aug 09 '18 02:08 phelogges

quite strange, in main.py, line 30:31 shows parser.add_argument('--custom_label', type=int, nargs='+', help='custom label about selected attributes', default=[1, 0, 0, 0, 0]), which means [1, 0, 0, 0, 0]is readable as default, but when I custom labels this format fails.

phelogges avatar Aug 09 '18 02:08 phelogges