Skip to content

For win10 python 3.5 error #4

@tuteming

Description

@tuteming

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions