ClassificationForAndroid icon indicating copy to clipboard operation
ClassificationForAndroid copied to clipboard

在Android使用深度学习模型实现图像识别,本项目提供了多种使用方式,使用到的框架如下:Tensorflow Lite、Paddle Lite、MNN、TNN

Results 4 ClassificationForAndroid issues
Sort by recently updated
recently updated
newest added

推理结果为空,请问是什么原因呢

在使用TNN图像分类的项目时,我改用了自己的inception-v2-9.opt.tnnmodel,这个与项目中的原模型的输入shape是一样的,也是基于ImageNet得到的有1000类的模型,但是Log中输出了以上问题,不知该如何解决。上述问题出现在“选择照片”部分,无论在相册中选择什么图片,最终显示的推理结果都是“麦克风”,如下所示: ![image](https://user-images.githubusercontent.com/56264583/169233027-09ab37a4-100e-4d07-8248-06b1d75a467b.png) ![image](https://user-images.githubusercontent.com/56264583/169233065-e6b34611-a99c-43d8-b9ac-87ff63746201.png) ![image](https://user-images.githubusercontent.com/56264583/169233184-db10e995-f5a9-491c-abbb-83c3fef1bd25.png) 如果需要更详细的信息,

![1698716282405](https://github.com/yeyupiaoling/ClassificationForAndroid/assets/31683898/be8119d2-2567-4d29-a235-21db8af9433f) ![1698716307130](https://github.com/yeyupiaoling/ClassificationForAndroid/assets/31683898/57d59730-804b-4b05-857b-be424e1e2653) ![1698716511332](https://github.com/yeyupiaoling/ClassificationForAndroid/assets/31683898/f0ad14dd-0232-4de0-ad54-70ecbd3a1511)

我用我的模型在你代码里面试了下报这个错。 java.lang.IllegalArgumentException: Input error: 'input_1' is not a valid name for any input. Names of inputs and their indexes are {serving_default_rescaling_input:0=0} 模型训练的IMG_SHAPE=(224, 224, 3) batch_size=16