hmi88 / Fast_Multi_Style_Transfer-tensorflow

Multi style transfer. You can make Gogh + Manet + Picasso style image
210 stars 38 forks source link

For win10 python 3.5 error #4

Open tuteming opened 7 years ago

tuteming commented 7 years ago

my test.bat is python main.py -f 0 -gn 0 -p MST -tsd images/test/ -scw 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 but have the following error

Traceback (most recent call last): File "main.py", line 62, in main() File "main.py", line 52, in main model = mst.mst(args, sess) File "f:\test_tensorflow\Multi_style_transfer\src\multi_style_transfer.py", line 13, in init op.init(self, args, sess) File "f:\test_tensorflow\Multi_style_transfer\src\op.py", line 46, in init self.build_model() File "f:\test_tensorflow\Multi_style_transfer\src\multi_style_transfer.py", line 49, in build_model MST_output = self.mst_net(self.content_input, style_control=self.style_control) File "f:\test_tensorflow\Multi_style_transfer\src\multi_style_transfer.py", line 19, in mst_net x = conv_layer(x, 32, 9, 1, style_control=style_control, name='conv1') File "f:\test_tensorflow\Multi_style_transfer\src\layers.py", line 13, in conv_layer net = tf.pad(net, [[0, 0], [p, p], [p, p], [0, 0]], "REFLECT") File "C:\Users\duo\Anaconda3\lib\site-packages\tensorflow\python\ops\array_ops.py", line 1659, in pad name=name) File "C:\Users\duo\Anaconda3\lib\site-packages\tensorflow\python\ops\gen_array_ops.py", line 1641, in _mirror_pad mode=mode, name=name) File "C:\Users\duo\Anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 589, in apply_op param_name=input_name) File "C:\Users\duo\Anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 60, in _SatisfiesTypeConstraint ", ".join(dtypes.as_dtype(x).name for x in allowed_list))) TypeError: Value passed to parameter 'paddings' has DataType float32 not in list of allowed values: int32, int64

please tell me how to correct this error? thanks

wunengguang commented 6 years ago

hello sir ! beaucse our goverment bind net about cocodataset and dropbox . So i hope you can put all file on github. thank you sir

suzdi commented 6 years ago

I'm in same trouble... Did you solve it?