predictor

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: NCSA Imports: 25 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGeneralPredictor added in v1.1.3

func NewGeneralPredictor(model dlframework.ModelManifest, os ...options.Option) (common.Predictor, error)

NewGeneralPredictor ...

func NewImageClassificationPredictor

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

NewImageClassificationPredictor ...

func NewImageEnhancementPredictor

func NewImageEnhancementPredictor(model dlframework.ModelManifest, os ...options.Option) (common.Predictor, error)

NewImageEnhancementPredictor ...

func NewObjectDetectionPredictor

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

NewObjectDetectionPredictor ...

func NewSemanticSegmentationPredictor

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

NewSemanticSegmentationPredictor ...

Types

type GeneralPredictor added in v1.1.3

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

GeneralPredictor ...

func (*GeneralPredictor) Close added in v1.1.3

func (p *GeneralPredictor) Close() error

Close ...

func (*GeneralPredictor) Download added in v1.1.3

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

Download ...

func (*GeneralPredictor) Load added in v1.1.3

Load ...

func (*GeneralPredictor) Modality added in v1.1.3

func (p *GeneralPredictor) Modality() (dlframework.Modality, error)

Modality ...

func (*GeneralPredictor) Predict added in v1.1.3

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

Predict ...

func (*GeneralPredictor) ReadPredictedFeatures added in v1.1.3

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

ReadPredictedFeatures ...

func (*GeneralPredictor) ReadPredictedFeaturesAsMap added in v1.1.3

func (p *GeneralPredictor) ReadPredictedFeaturesAsMap(ctx context.Context) (map[string]interface{}, error)

ReadPredictedFeaturesAsMap ...

func (*GeneralPredictor) Reset added in v1.1.3

func (p *GeneralPredictor) Reset(ctx context.Context) error

Reset ...

type ImageClassificationPredictor

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

ImageClassificationPredictor ...

func (*ImageClassificationPredictor) Close

Close ...

func (*ImageClassificationPredictor) Download

Download ...

func (*ImageClassificationPredictor) Load

Load ...

func (*ImageClassificationPredictor) Modality

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 ...

func (*ImageClassificationPredictor) ReadPredictedFeaturesAsMap added in v1.1.0

func (p *ImageClassificationPredictor) ReadPredictedFeaturesAsMap(ctx context.Context) (map[string]interface{}, error)

ReadPredictedFeaturesAsMap ...

func (*ImageClassificationPredictor) Reset

Reset ...

type ImageEnhancementPredictor

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

ImageEnhancementPredictor ...

func (*ImageEnhancementPredictor) Close

func (p *ImageEnhancementPredictor) Close() error

Close ...

func (*ImageEnhancementPredictor) Download

Download ...

func (ImageEnhancementPredictor) GetInputLayerName

func (p ImageEnhancementPredictor) GetInputLayerName(reader io.Reader, layer string) (string, error)

GetInputLayerName ...

func (ImageEnhancementPredictor) GetOutputLayerName

func (p ImageEnhancementPredictor) GetOutputLayerName(reader io.Reader, layer string) (string, error)

GetOutputLayerName ...

func (*ImageEnhancementPredictor) Load

Load ...

func (ImageEnhancementPredictor) Modality

Modality ...

func (*ImageEnhancementPredictor) Predict

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

Predict ...

func (*ImageEnhancementPredictor) ReadPredictedFeatures

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

ReadPredictedFeatures ...

func (*ImageEnhancementPredictor) ReadPredictedFeaturesAsMap added in v1.1.0

func (p *ImageEnhancementPredictor) ReadPredictedFeaturesAsMap(ctx context.Context) (map[string]interface{}, error)

ReadPredictedFeaturesAsMap ...

func (*ImageEnhancementPredictor) Reset

Reset ...

type ObjectDetectionPredictor

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

ObjectDetectionPredictor ...

func (*ObjectDetectionPredictor) Close

func (p *ObjectDetectionPredictor) Close() error

Close ...

func (*ObjectDetectionPredictor) Download

Download ...

func (*ObjectDetectionPredictor) GetInputLayerName

func (p *ObjectDetectionPredictor) GetInputLayerName(reader io.Reader, layer string) (string, error)

GetInputLayerName ...

func (*ObjectDetectionPredictor) GetOutputLayerName

func (p *ObjectDetectionPredictor) GetOutputLayerName(reader io.Reader, layer string) (string, error)

GetOutputLayerName ...

func (*ObjectDetectionPredictor) Load

Load ...

func (*ObjectDetectionPredictor) Modality

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 ...

func (*ObjectDetectionPredictor) ReadPredictedFeaturesAsMap added in v1.1.0

func (p *ObjectDetectionPredictor) ReadPredictedFeaturesAsMap(ctx context.Context) (map[string]interface{}, error)

ReadPredictedFeaturesAsMap ...

func (*ObjectDetectionPredictor) Reset

Reset ...

type SemanticSegmentationPredictor

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

SemanticSegmentationPredictor ...

func (*SemanticSegmentationPredictor) Close

Close ...

func (*SemanticSegmentationPredictor) Download

Download ...

func (*SemanticSegmentationPredictor) GetInputLayerName

func (p *SemanticSegmentationPredictor) GetInputLayerName(reader io.Reader, layer string) (string, error)

GetInputLayerName ...

func (*SemanticSegmentationPredictor) GetOutputLayerName

func (p *SemanticSegmentationPredictor) GetOutputLayerName(reader io.Reader, layer string) (string, error)

GetOutputLayerName ...

func (*SemanticSegmentationPredictor) Load

Load ...

func (SemanticSegmentationPredictor) Modality

Modality ...

func (*SemanticSegmentationPredictor) Predict

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

Predict ...

func (*SemanticSegmentationPredictor) ReadPredictedFeatures

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

ReadPredictedFeatures ...

func (*SemanticSegmentationPredictor) ReadPredictedFeaturesAsMap added in v1.1.0

func (p *SemanticSegmentationPredictor) ReadPredictedFeaturesAsMap(ctx context.Context) (map[string]interface{}, error)

ReadPredictedFeaturesAsMap ...

func (*SemanticSegmentationPredictor) Reset

Reset ...

Jump to

Keyboard shortcuts

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