Documentation ¶
Index ¶
- type BoxPrediction
- type InputConfig
- type ModelSpec
- type PredictionClient
- func (c *PredictionClient) Close() error
- func (c *PredictionClient) FormatBoxes(resp map[string]*tfcore.TensorProto, minConfidence float32) []BoxPrediction
- func (c *PredictionClient) FormatInputImages(images []image.Image, inputConf *InputConfig, scaler draw.Scaler) (*tfcore.TensorProto, error)
- func (c *PredictionClient) GetInputConfig(modelName string) (*InputConfig, error)
- func (c *PredictionClient) GetModelSpec(modelName, signatureName string, inputConf *InputConfig) *tf.ModelSpec
- func (c *PredictionClient) GetOutput(modelName, signatureName string) (map[string]*tfcore.TensorProto, error)
- func (c *PredictionClient) PredictImages(modelName, signatureName string, images []image.Image, scaler draw.Scaler) (map[string]*tfcore.TensorProto, error)
- func (c *PredictionClient) PredictRaw(modelSpec *tf.ModelSpec, inputConf *InputConfig, ...) (map[string]*tfcore.TensorProto, error)
- func (c *PredictionClient) SetDebugging(debug bool)
- type TensorProto
- type TensorShapeProto
- type TensorShapeProto_Dim
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoxPrediction ¶
type InputConfig ¶
type PredictionClient ¶
type PredictionClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(addr string) (*PredictionClient, error)
func (*PredictionClient) Close ¶
func (c *PredictionClient) Close() error
func (*PredictionClient) FormatBoxes ¶
func (c *PredictionClient) FormatBoxes(resp map[string]*tfcore.TensorProto, minConfidence float32) []BoxPrediction
func (*PredictionClient) FormatInputImages ¶
func (c *PredictionClient) FormatInputImages(images []image.Image, inputConf *InputConfig, scaler draw.Scaler) (*tfcore.TensorProto, error)
func (*PredictionClient) GetInputConfig ¶
func (c *PredictionClient) GetInputConfig(modelName string) (*InputConfig, error)
func (*PredictionClient) GetModelSpec ¶
func (c *PredictionClient) GetModelSpec(modelName, signatureName string, inputConf *InputConfig) *tf.ModelSpec
func (*PredictionClient) GetOutput ¶
func (c *PredictionClient) GetOutput(modelName, signatureName string) (map[string]*tfcore.TensorProto, error)
func (*PredictionClient) PredictImages ¶
func (c *PredictionClient) PredictImages(modelName, signatureName string, images []image.Image, scaler draw.Scaler) (map[string]*tfcore.TensorProto, error)
func (*PredictionClient) PredictRaw ¶
func (c *PredictionClient) PredictRaw(modelSpec *tf.ModelSpec, inputConf *InputConfig, inputProto *tfcore.TensorProto) (map[string]*tfcore.TensorProto, error)
func (*PredictionClient) SetDebugging ¶
func (c *PredictionClient) SetDebugging(debug bool)
type TensorProto ¶
type TensorProto = tfcore.TensorProto
type TensorShapeProto ¶
type TensorShapeProto = tfcore.TensorShapeProto
type TensorShapeProto_Dim ¶
type TensorShapeProto_Dim = tfcore.TensorShapeProto_Dim
Click to show internal directories.
Click to hide internal directories.