Documentation ¶
Index ¶
- func NewImageClassificationPredictor(model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
- func NewImageObjectDetectionPredictor(model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
- func NewSemanticSegmentationPredictor(model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
- type ImageClassificationPredictor
- func (self *ImageClassificationPredictor) Load(ctx context.Context, modelManifest dlframework.ModelManifest, ...) (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)
- type ImageObjectDetectionPredictor
- func (self *ImageObjectDetectionPredictor) Load(ctx context.Context, modelManifest dlframework.ModelManifest, ...) (common.Predictor, error)
- func (p ImageObjectDetectionPredictor) Modality() (dlframework.Modality, error)
- func (p *ImageObjectDetectionPredictor) Predict(ctx context.Context, data interface{}, opts ...options.Option) error
- func (p *ImageObjectDetectionPredictor) ReadPredictedFeatures(ctx context.Context) ([]dlframework.Features, error)
- type ImagePredictor
- type SemanticSegmentationPredictor
- func (self *SemanticSegmentationPredictor) Load(ctx context.Context, modelManifest dlframework.ModelManifest, ...) (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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImageClassificationPredictor ¶
func NewImageClassificationPredictor(model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
New ...
func NewImageObjectDetectionPredictor ¶
func NewImageObjectDetectionPredictor(model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
New ...
func NewSemanticSegmentationPredictor ¶
func NewSemanticSegmentationPredictor(model dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
New ...
Types ¶
type ImageClassificationPredictor ¶
type ImageClassificationPredictor struct { *ImagePredictor // contains filtered or unexported fields }
func (*ImageClassificationPredictor) Load ¶
func (self *ImageClassificationPredictor) Load(ctx context.Context, modelManifest dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
func (ImageClassificationPredictor) Modality ¶
func (p ImageClassificationPredictor) Modality() (dlframework.Modality, error)
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 ImageObjectDetectionPredictor ¶
type ImageObjectDetectionPredictor struct { *ImagePredictor // contains filtered or unexported fields }
func (*ImageObjectDetectionPredictor) Load ¶
func (self *ImageObjectDetectionPredictor) Load(ctx context.Context, modelManifest dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
func (ImageObjectDetectionPredictor) Modality ¶
func (p ImageObjectDetectionPredictor) Modality() (dlframework.Modality, error)
func (*ImageObjectDetectionPredictor) Predict ¶
func (p *ImageObjectDetectionPredictor) Predict(ctx context.Context, data interface{}, opts ...options.Option) error
Predict ...
func (*ImageObjectDetectionPredictor) ReadPredictedFeatures ¶
func (p *ImageObjectDetectionPredictor) ReadPredictedFeatures(ctx context.Context) ([]dlframework.Features, error)
ReadPredictedFeatures ...
type ImagePredictor ¶
type ImagePredictor struct { common.ImagePredictor // contains filtered or unexported fields }
ImagePredictor ...
func (*ImagePredictor) Download ¶
func (p *ImagePredictor) Download(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) error
Download ...
func (*ImagePredictor) Load ¶
func (p *ImagePredictor) Load(ctx context.Context, model dlframework.ModelManifest, opts ...options.Option) (*ImagePredictor, error)
Load ...
type SemanticSegmentationPredictor ¶
type SemanticSegmentationPredictor struct { *ImagePredictor // contains filtered or unexported fields }
func (*SemanticSegmentationPredictor) Load ¶
func (self *SemanticSegmentationPredictor) Load(ctx context.Context, modelManifest dlframework.ModelManifest, opts ...options.Option) (common.Predictor, error)
func (SemanticSegmentationPredictor) Modality ¶
func (p SemanticSegmentationPredictor) Modality() (dlframework.Modality, error)
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 ...
Click to show internal directories.
Click to hide internal directories.