使用MobileNetV2转移学习

问题描述

我正在使用here

给出的代码

如果我更新

trainable=Falsetrainable=True

进行转移学习并使用我们的图像运行,然后在

处发生错误

converted_tflite_model = converter.convert()

在上面的代码下出现红线。还有以下内容

InvalidArgumentError错误回溯(最近一次通话) _import_graph_def_internal中的/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/framework/importer.py(graph_def、input_map、return_elements、validate_colocation_constraints,名称,op_dict,producer_op_list) 500个结果= c_api.TF_GraphImportGraphDefWithResults( -> 501 graph._c_graph,序列化,选项)#pylint:disable = protected-access 502个结果= c_api_util.ScopedTFImportGraphDefResults(结果)

InvalidArgumentError:节点Func / StatefulPartitionedCall / StatefulPartitionedCall / StatefulPartitionedCall / keras_layer_2 / StatefulPartitionedCall / StatefulPartitionedCall_1 / input / _1600的输入0传递自Func / StatefulPartitionedCall / StatefulPartitionedCall / StatefulPartitionedCall / keras_layer801的float资源。

在处理上述异常期间,发生了另一个异常:

ValueError跟踪(最近一次通话最后一次)

请您帮助我们解决这个问题(我确实搜索过类似的主题,很遗憾无法解决此问题)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...