2024-04-29 11:15:53 发布
网友
我用输入占位符-[None,32,32,3]tf.placeholder(tf.float32, [None, 24, 24, 3])在tensorflow上创建了一个CNN模型。然后我想在Android应用程序中使用这个模型,因此我冻结了这个模型。当我包含这个库时,我注意到我只能使用二维数组或ByteBuffer进行输入。如何从相机中输入位图?我必须更改占位符的输入大小吗?大小应该是多少? 谢谢!你知道吗
tf.placeholder(tf.float32, [None, 24, 24, 3])
tensorInferenceInterface.feed("the_input", pixels, batch_size, width, height, dims); 希望这对你有用
tensorInferenceInterface.feed("the_input", pixels, batch_size, width, height, dims);
tensorInferenceInterface.feed("the_input", pixels, batch_size, width, height, dims);
希望这对你有用相关问题 更多 >
编程相关推荐