使用MobileNetV2转移学习

时间:2020-10-15 09:00:03

标签: transfer-learning mobilenet

我正在使用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跟踪(最近一次通话最后一次)

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

0 个答案:

没有答案