tensorflow.python.framework.errors_impl.UnimplementedError: Fused conv implementation does not support grouped convolutions for now. [[{{node conv2d_11/BiasAdd}}]]

代码如下:

from imageai.Prediction import ImagePrediction
import os

execution_path = os.getcwd()

prediction = ImagePrediction()
prediction.setModelTypeAsResNet()
prediction.setModelPath(os.path.join(execution_path,"h5model/resnet50_weights_tf_dim_ordering_tf_kernels.h5"))
prediction.loadModel()

predictions, probabilities = prediction.predictImage(os.path.join(execution_path,"1.jpg"))
for eachPrediction, eachProbability in zip(predictions,probabilities):
    print(eachPrediction, ":", eachProbability)

报错内容如下


环境:
tensorflow-gpu 2.0.0
scipy 1.3.1
keras 2.1.5

在stackoverflow找到了类似错误,作者说是没有进行图片黑白化,但是我黑白化之后还是会报这样的错误,求教各位大神。

1个回答

weixin_41619526
EoSyix 这个我看过,不是的啊...
3 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问