Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ImageHeight int32 = 128
View Source
var ImageWidth int32 = 128
Functions ¶
This section is empty.
Types ¶
type Predictor ¶
type Predictor struct {
Model *tf.SavedModel
}
func (Predictor) PredictWithDeviation ¶
func (p Predictor) PredictWithDeviation(imagefile string, model *tf.SavedModel) (classpred int, deviation float32, err error)
Predict - return class prediction and standard deviation
func (Predictor) PredictionsArr ¶
PredictionsArr Return array of probabilities
Click to show internal directories.
Click to hide internal directories.