Documentation ¶
Index ¶
- func NewGeneralPredictor(model dlframework.ModelManifest, os ...options.Option) (common.Predictor, error)
- func NewImageClassificationPredictor(model dlframework.ModelManifest, os ...options.Option) (common.Predictor, error)
- func NewImageEnhancementPredictor(model dlframework.ModelManifest, os ...options.Option) (common.Predictor, error)
- func NewObjectDetectionPredictor(model dlframework.ModelManifest, os ...options.Option) (common.Predictor, error)
- func NewSemanticSegmentationPredictor(model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
- type GeneralPredictor
- func (p *GeneralPredictor) Close() error
- func (p *GeneralPredictor) Download(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) error
- func (p *GeneralPredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
- func (p *GeneralPredictor) Modality() (dlframework.Modality, error)
- func (p *GeneralPredictor) Predict(ctx context.Context, data interface{}, opts ...options.Option) error
- func (p *GeneralPredictor) ReadPredictedFeatures(ctx context.Context) ([]dlframework.Features, error)
- func (p *GeneralPredictor) ReadPredictedFeaturesAsMap(ctx context.Context) (map[string]interface{}, error)
- func (p *GeneralPredictor) Reset(ctx context.Context) error
- type ImageClassificationPredictor
- func (p *ImageClassificationPredictor) Close() error
- func (p *ImageClassificationPredictor) Download(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) error
- func (p *ImageClassificationPredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
- func (p *ImageClassificationPredictor) Modality() (dlframework.Modality, error)
- func (p *ImageClassificationPredictor) Predict(ctx context.Context, data interface{}, opts ...options.Option) error
- func (p *ImageClassificationPredictor) ReadPredictedFeatures(ctx context.Context) ([]dlframework.Features, error)
- func (p *ImageClassificationPredictor) ReadPredictedFeaturesAsMap(ctx context.Context) (map[string]interface{}, error)
- func (p *ImageClassificationPredictor) Reset(ctx context.Context) error
- type ImageEnhancementPredictor
- func (p *ImageEnhancementPredictor) Close() error
- func (p *ImageEnhancementPredictor) Download(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) error
- func (p ImageEnhancementPredictor) GetInputLayerName(reader io.Reader, layer string) (string, error)
- func (p ImageEnhancementPredictor) GetOutputLayerName(reader io.Reader, layer string) (string, error)
- func (p *ImageEnhancementPredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
- func (p ImageEnhancementPredictor) Modality() (dlframework.Modality, error)
- func (p *ImageEnhancementPredictor) Predict(ctx context.Context, data interface{}, opts ...options.Option) error
- func (p *ImageEnhancementPredictor) ReadPredictedFeatures(ctx context.Context) ([]dlframework.Features, error)
- func (p *ImageEnhancementPredictor) ReadPredictedFeaturesAsMap(ctx context.Context) (map[string]interface{}, error)
- func (p *ImageEnhancementPredictor) Reset(ctx context.Context) error
- type ObjectDetectionPredictor
- func (p *ObjectDetectionPredictor) Close() error
- func (p *ObjectDetectionPredictor) Download(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) error
- func (p *ObjectDetectionPredictor) GetInputLayerName(reader io.Reader, layer string) (string, error)
- func (p *ObjectDetectionPredictor) GetOutputLayerName(reader io.Reader, layer string) (string, error)
- func (p *ObjectDetectionPredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
- func (p *ObjectDetectionPredictor) Modality() (dlframework.Modality, error)
- func (p *ObjectDetectionPredictor) Predict(ctx context.Context, data interface{}, opts ...options.Option) error
- func (p *ObjectDetectionPredictor) ReadPredictedFeatures(ctx context.Context) ([]dlframework.Features, error)
- func (p *ObjectDetectionPredictor) ReadPredictedFeaturesAsMap(ctx context.Context) (map[string]interface{}, error)
- func (p *ObjectDetectionPredictor) Reset(ctx context.Context) error
- type SemanticSegmentationPredictor
- func (p *SemanticSegmentationPredictor) Close() error
- func (p *SemanticSegmentationPredictor) Download(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) error
- func (p *SemanticSegmentationPredictor) GetInputLayerName(reader io.Reader, layer string) (string, error)
- func (p *SemanticSegmentationPredictor) GetOutputLayerName(reader io.Reader, layer string) (string, error)
- func (p *SemanticSegmentationPredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
- func (p SemanticSegmentationPredictor) Modality() (dlframework.Modality, error)
- func (p *SemanticSegmentationPredictor) Predict(ctx context.Context, data interface{}, opts ...options.Option) error
- func (p *SemanticSegmentationPredictor) ReadPredictedFeatures(ctx context.Context) ([]dlframework.Features, error)
- func (p *SemanticSegmentationPredictor) ReadPredictedFeaturesAsMap(ctx context.Context) (map[string]interface{}, error)
- func (p *SemanticSegmentationPredictor) Reset(ctx context.Context) error
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
GeneralPredictor ...
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
func (p *GeneralPredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
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 ...
type ImageClassificationPredictor ¶
type ImageClassificationPredictor struct { common.ImagePredictor // contains filtered or unexported fields }
ImageClassificationPredictor ...
func (*ImageClassificationPredictor) Close ¶
func (p *ImageClassificationPredictor) Close() error
Close ...
func (*ImageClassificationPredictor) Download ¶
func (p *ImageClassificationPredictor) Download(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) error
Download ...
func (*ImageClassificationPredictor) Load ¶
func (p *ImageClassificationPredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
Load ...
func (*ImageClassificationPredictor) Modality ¶
func (p *ImageClassificationPredictor) Modality() (dlframework.Modality, error)
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 ...
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 ¶
func (p *ImageEnhancementPredictor) Download(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) error
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 ¶
func (p *ImageEnhancementPredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
Load ...
func (ImageEnhancementPredictor) Modality ¶
func (p ImageEnhancementPredictor) Modality() (dlframework.Modality, error)
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 ...
type ObjectDetectionPredictor ¶
type ObjectDetectionPredictor struct { common.ImagePredictor // contains filtered or unexported fields }
ObjectDetectionPredictor ...
func (*ObjectDetectionPredictor) Download ¶
func (p *ObjectDetectionPredictor) Download(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) error
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 ¶
func (p *ObjectDetectionPredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
Load ...
func (*ObjectDetectionPredictor) Modality ¶
func (p *ObjectDetectionPredictor) Modality() (dlframework.Modality, error)
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 ...
type SemanticSegmentationPredictor ¶
type SemanticSegmentationPredictor struct { common.ImagePredictor // contains filtered or unexported fields }
SemanticSegmentationPredictor ...
func (*SemanticSegmentationPredictor) Close ¶
func (p *SemanticSegmentationPredictor) Close() error
Close ...
func (*SemanticSegmentationPredictor) Download ¶
func (p *SemanticSegmentationPredictor) Download(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) error
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 ¶
func (p *SemanticSegmentationPredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
Load ...
func (SemanticSegmentationPredictor) Modality ¶
func (p SemanticSegmentationPredictor) Modality() (dlframework.Modality, error)
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 ...