环境:
- requirements:
- Keras==2.2.4
- numpy==1.16.4
- opencv-python==3.4.2.16
- tensorboard==1.13.1
- tensorflow==1.14.0rc0
- tensorflow-estimator==1.14.0rc0
- scikit-image==0.15.0
问题:ValueError: Shape must be rank 1 but is rank 0 for ‘bn_conv1/Reshape_4’ (op: ‘Reshape’) with input shapes: [1,1,1,64], [].
修改文件:tensorflow_backend.py
File:tensorflow_backend.py
方法:把这些行中的(-1)改成中括号[-1].
Method: replace (-1) in these lines with brackets [-1].
I hope I can help you,If you have any questions, please comment on this blog or send me a private message. I will reply in my free time.