predictor

package
v0.3.1-0...-1c2b684 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2020 License: NCSA Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultInputLayerName = "data"
)

Functions

func NewImageClassificationPredictor

func NewImageClassificationPredictor(model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)

func NewObjectDetectionPredictor

func NewObjectDetectionPredictor(model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)

Types

type ImageClassificationPredictor

type ImageClassificationPredictor struct {
	*ImagePredictor
	// contains filtered or unexported fields
}

func (*ImageClassificationPredictor) Load

func (ImageClassificationPredictor) Modality

func (*ImageClassificationPredictor) Predict

func (p *ImageClassificationPredictor) Predict(ctx context.Context, data interface{}, opts ...options.Option) error

Predict ...

func (*ImageClassificationPredictor) ReadPredictedFeatures

func (p *ImageClassificationPredictor) ReadPredictedFeatures(ctx context.Context) ([]dlframework.Features, error)

ReadPredictedFeatures ...

type ImagePredictor

type ImagePredictor struct {
	common.ImagePredictor
	// contains filtered or unexported fields
}

func (*ImagePredictor) Close

func (p *ImagePredictor) Close() error

func (*ImagePredictor) Download

func (p *ImagePredictor) Download(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) error

Download ...

func (*ImagePredictor) Load

type ObjectDetectionPredictor

type ObjectDetectionPredictor struct {
	*ImagePredictor
	// contains filtered or unexported fields
}

func (*ObjectDetectionPredictor) Load

func (ObjectDetectionPredictor) Modality

func (*ObjectDetectionPredictor) Predict

func (p *ObjectDetectionPredictor) Predict(ctx context.Context, data interface{}, opts ...options.Option) error

Predict ...

func (*ObjectDetectionPredictor) ReadPredictedFeatures

func (p *ObjectDetectionPredictor) ReadPredictedFeatures(ctx context.Context) ([]dlframework.Features, error)

ReadPredictedFeatures ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL