tensorflow-resnet icon indicating copy to clipboard operation
tensorflow-resnet copied to clipboard

Bug in ResNet forward.py

Open hamidpalangi opened this issue 8 years ago • 2 comments

Thanks for the great work @ry .

I am trying to use your converted TF models. I just tried "forward.py" but got the following RunTime error:

RuntimeError: NodeDef mentions attr 'data_format' not in Op<name=Conv2D; signature=input:T, filter:T -> output:T; attr=T:type,allowed=[DT_FLOAT, DT_DOUBLE]; attr=strides:list(int); attr=use_cudnn_on_gpu:bool,default=true; attr=padding:string,allowed=["SAME", "VALID"]>; NodeDef: import/conv1/conv = Conv2D[T=DT_FLOAT, data_format="NHWC", padding="SAME", strides=[1, 2, 2, 1], use_cudnn_on_gpu=true, _device="/device:CPU:0"](import/preprocess/centered_bgr, import/conv1/kernel)
^CWe've got an error while stopping in post-mortem: <type 'exceptions.KeyboardInterrupt'>

I tried all 3 TF models but got the same error. I checked the downloaded files and they were downloaded fully and correctly. Can you please help?

Thanks much! Hamid

hamidpalangi avatar Mar 18 '16 20:03 hamidpalangi

Had the same problem. I assume it's due to tfmodel been generated on older version of TF IMO this is a relevant issue. https://github.com/tensorflow/tensorflow/issues/1528

I'll try to convert the Caffe models on the newest version of TF. Hopefully this will solve the problem

gaxler avatar Mar 20 '16 16:03 gaxler

Thanks much gaxler! Would it be possible to share your converted models to TF? For some reason I can not install Caffe on my machine ...

Thanks! Hamid

hamidpalangi avatar Mar 20 '16 18:03 hamidpalangi