我试着重新训练开始!!当使用最后的列车脚本和库版本时,我的代码会出现错误:
Exception in thread "main" java.lang.IllegalArgumentException: Invalid
GraphDef at org.tensorflow.Graph.importGraphDef(Native Method) at
org.tensorflow.Graph.importGraphDef(Graph.java:130)
对于列车模型,我使用了一个带有以下标志的通用脚本:
python D://retrain.py --image_dir D:\train
问题字符串:
Tensor result = s.runner().feed("DecodeJpeg/contents",image).fetch("softmax").run().get(0)) ;
例外:
Exception in thread "main" java.lang.IllegalArgumentException: Invalid GraphDef at org.tensorflow.Graph.importGraphDef(Native Method) at
org.tensorflow.Graph.importGraphDef(Graph.java:130)
所有代码都是这里
发布于 2019-01-24 14:10:45
如何为该代码培训inceptionV3
至
Tensor result = s.runner().feed("DecodeJpeg/contents", image).fetch("final_result").run().get(0))
https://stackoverflow.com/questions/54302593
复制相似问题