我使用 mobilenet_ssd.tflite 作为官方 tensorflow github 的模式。下面的代码:
int input = interpreter->inputs()[0];
interpreter->ResizeInputTensor(input, sizes);
这将在调用时导致错误:
interpreter->AllocateTensors()
如果我注释掉解释器->ResizeInputTensor(input, sizes); 然后一切都很好。
有什么建议么?
我问的另一个问题: 使用 tensorflow 更改 mobilenet_ssd 的输入图像大小