imagenet

package
v0.0.0-...-61db93c Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Labels = []string{}/* 1000 elements not displayed */

Labels are the predefined imagenet labels

Functions

This section is empty.

Types

type Classifier

type Classifier struct {
	// contains filtered or unexported fields
}

Classifier is an imagenet classifier

func NewClassifier

func NewClassifier(builder func(m *godl.Model) godl.Module, width, height int) *Classifier

func (*Classifier) Model

func (c *Classifier) Model() *godl.Model

func (*Classifier) Predict

func (c *Classifier) Predict(img image.Image) (string, float32, error)

Jump to

Keyboard shortcuts

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