develop分支中demo/gan中生成模型运行报错
Created by: jacquesqiao
python gan_trainer.py -d mnist --use_gpu 0
[CRITICAL 2016-12-14 09:45:39,845 layers.py:1912] Input layer gen_layer_h1_bn: Incorrect input image size 1 * 1 for input image pixels 9
Traceback (most recent call last):
File "gan_trainer.py", line 350, in <module>
main()
File "gan_trainer.py", line 237, in main
gen_conf = parse_config(conf, "mode=generator_training,data=" + data_source)
File "/usr/local/lib/python2.7/site-packages/paddle/trainer/config_parser.py", line 3429, in parse_config
execfile(config_file, make_config_environment(config_file, config_args))
File "gan_conf_image.py", line 283, in <module>
sample = generator(noise)
File "gan_conf_image.py", line 185, in generator
trans=True)
File "gan_conf_image.py", line 112, in conv_bn
trans=trans)
File "/usr/local/lib/python2.7/site-packages/paddle/trainer_config_helpers/default_decorators.py", line 53, in __wrapper__
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/paddle/trainer_config_helpers/default_decorators.py", line 53, in __wrapper__
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/paddle/trainer_config_helpers/default_decorators.py", line 53, in __wrapper__
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/paddle/trainer_config_helpers/default_decorators.py", line 53, in __wrapper__
return func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/paddle/trainer_config_helpers/layers.py", line 305, in wrapper
return method(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/paddle/trainer_config_helpers/layers.py", line 1912, in img_conv_layer
**ExtraLayerAttribute.to_kwargs(layer_attr))
File "/usr/local/lib/python2.7/site-packages/paddle/trainer/config_parser.py", line 3028, in Layer
return layer_func(name, **xargs)
File "/usr/local/lib/python2.7/site-packages/paddle/trainer/config_parser.py", line 1749, in __init__
trans=True)
File "/usr/local/lib/python2.7/site-packages/paddle/trainer/config_parser.py", line 1191, in parse_conv
get_img_size(input_layer_name, conv.channels)
File "/usr/local/lib/python2.7/site-packages/paddle/trainer/config_parser.py", line 1088, in get_img_size
% (input_layer_name, img_size, img_size_y, img_pixels))
File "/usr/local/lib/python2.7/site-packages/paddle/trainer/config_parser.py", line 163, in config_assert
logger.fatal(msg)
File "/usr/local/lib/python2.7/site-packages/paddle/trainer/config_parser.py", line 3365, in my_fatal
raise Exception()
Exception