caffe

package
v0.0.0-...-3b55539 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2016 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CAFFE = "caffe"
View Source
var COMPUTER_IMAGE_MEAN = "compute_image_mean"
View Source
var CONVERT_IMAGESET = "convert_imageset"
View Source
var Locker = new(sync.Mutex)

Functions

func ApplyModel

func ApplyModel(modelName string) error

func ComputeImageMean

func ComputeImageMean(sourceFile, binaryFile string) error

func ConvertImageset

func ConvertImageset(args ...string) error

func GetCurrentModel

func GetCurrentModel() (modelName string, err error)

func IsOnSolving

func IsOnSolving() bool

func IsPredictAlive

func IsPredictAlive() bool

func Kill

func Kill() (err error)

func ListModels

func ListModels() (modelNames []string, err error)

func Plot

func Plot(suffix string) (data []byte, err error)

func RemoveModel

func RemoveModel(modelName string) error

func Run

func Run(args ...string) error

func Solve

func Solve()

func Solver

func Solver()

func StartPredict

func StartPredict() error

func StopPredict

func StopPredict() error

func StopSolve

func StopSolve()

Types

type PredictResult

type PredictResult struct {
	BetResult []PredictTag `json:"bet_result,omitempty"`
	Time      float64      `json:"time,omitempty"`
	Error     string       `json:"err,omitempty"`
}

func Predict

func Predict(file io.Reader) (result PredictResult, err error)

func PredictUrl

func PredictUrl(imgUrl string) (result PredictResult, err error)

type PredictTag

type PredictTag struct {
	Id    int         `json:"id,omitempty"`
	Score float64     `json:"score,omitempty"`
	Tag   backend.Tag `json:"tag,omitempty"`
}

type Status

type Status struct {
	State         string `json:"status"`
	Loss          string `json:"loss"`
	Acc           string `json:"acc"`
	Model         string `json:"model"`
	PredictStatus string `json:"predictStatus"`
}

func LastStatus

func LastStatus() (status Status)

Jump to

Keyboard shortcuts

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