FSRCNN_Tensorflow
FSRCNN_Tensorflow copied to clipboard
version of tensorflow and python
Hi, I wonder the version of tensorflow and python. I run the code and it gives me message that the version is not matched.
Thanks.
Hi, I wonder the version of tensorflow and python. I run the code and it gives me message that the version is not matched.
Thanks.
Hi Jialeen,
I am pretty sure it was python 2.7, although I am not sure about tensorflow, my guess would be 1.12.0. I can double check for you somewhere later this week. It should work with most combinations though. Could you perhaps show me the exact error you are getting?
Hi, I wonder the version of tensorflow and python. I run the code and it gives me message that the version is not matched. Thanks.
Hi Jialeen,
I am pretty sure it was python 2.7, although I am not sure about tensorflow, my guess would be 1.12.0. I can double check for you somewhere later this week. It should work with most combinations though. Could you perhaps show me the exact error you are getting?
The error is as follows: tensorflow.python.framework.errors_impl.InvalidArgumentError: NodeDef mentions attr 'dilations' not in Op<name=Conv2D; signature=input:T, filter:T -> output:T; attr=T:type,allowed=[DT_HALF, DT_FLOAT]; attr=strides:list(int); attr=use_cudnn_on_gpu:bool,default=true; attr=padding:string,allowed=["SAME", "VALID"]; attr=data_format:string,default="NHWC",allowed=["NHWC", "NCHW"]>; NodeDef: conv1 = Conv2D[T=DT_FLOAT, data_format="NHWC", dilations=[1, 1, 1, 1], padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/device:GPU:0"](_arg_IteratorGetNext_0_0/_1, f1). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: conv1 = Conv2D[T=DT_FLOAT, data_format="NHWC", dilations=[1, 1, 1, 1], padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/device:GPU:0"](_arg_IteratorGetNext_0_0/_1, f1)]]
Caused by op u'conv1', defined at:
File "main.py", line 102, in
InvalidArgumentError (see above for traceback): NodeDef mentions attr 'dilations' not in Op<name=Conv2D; signature=input:T, filter:T -> output:T; attr=T:type,allowed=[DT_HALF, DT_FLOAT]; attr=strides:list(int); attr=use_cudnn_on_gpu:bool,default=true; attr=padding:string,allowed=["SAME", "VALID"]; attr=data_format:string,default="NHWC",allowed=["NHWC", "NCHW"]>; NodeDef: conv1 = Conv2D[T=DT_FLOAT, data_format="NHWC", dilations=[1, 1, 1, 1], padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/device:GPU:0"](_arg_IteratorGetNext_0_0/_1, f1). (Check whether your GraphDef-interpreting binary is up to date with your GraphDef-generating binary.). [[Node: conv1 = Conv2D[T=DT_FLOAT, data_format="NHWC", dilations=[1, 1, 1, 1], padding="SAME", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/device:GPU:0"](_arg_IteratorGetNext_0_0/_1, f1)]]
Python=2.7, tensorflow=1.12 can work.