2016-07-26 10 views
0

Ich bin leise neu zu Machine Learning, und ich arbeite an iOS App für die Objekterkennung mit Tensorflow, ich habe das Beispieldatenmodell, das von Tensorflow-Beispiel in Form von .pb (graph.pb) -Datei zur Verfügung gestellt wird, verwendet funktioniert gut mit Objekterkennung.Wie kann man das ckpt-Datenmodell in das Tensorflow-iOS-Beispiel verwenden?

Aber mein Backend-Team hat mir model2_BN.ckpt für Datenmodell-Datei gegeben, ich habe versucht zu erforschen, wie man diese Datei verwendet und ich habe keine Ahnung. Ist es möglich, die ckpt-Datei auf der Clientseite als Datenmodell zu verwenden? Wenn ja Wie kann ich es im iOS Tensorflow-Beispiel als Datenmodell verwenden?

Bitte helfen. Dank

+0

es selbst zu beantworten. – coder123

Antwort

2

Dieses von meiner Backend-Entwickler:

The .ckpt is the model given by tensorflow which includes all the 
weights/parameters in the model. The .pb file stores the computational 
graph. To make tensorflow work we need both the graph and the 
parameters. There are two ways to get the graph: 
(1) use the python program that builds it in the first place (tensorflowNetworkFunctions.py). 
(2) Use a .pb file (which would have to be generated by tensorflowNetworkFunctions.py). 

.ckpt file is were all the intelligence is. 
Verwandte Themen