trainer

package
v0.0.0-...-bafdb3f Latest Latest
Warning

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

Go to latest
Published: May 12, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FaceTrainer

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

FaceTrainer is an abstraction around the necessary Machinebox resources in order to train a model of a face or facial-expression

func NewFaceTrainer

func NewFaceTrainer(settings Settings) (*FaceTrainer, error)

NewFaceTrainer is the FaceTrainer constructor

func (*FaceTrainer) Run

func (t *FaceTrainer) Run() error

Run trains a machinebox/facebox model with all .jpg files in its FacesSrcDir

type Settings

type Settings struct {
	// FaceboxAddress is the URL of the MachineBox to use - host:port,
	// (default is http://localhost:8080)
	FaceboxAddress string

	// FacesSrcDir is the directory where .jpg samples will be sources from
	// (default is the current directory ".")
	FacesSrcDir string

	// PersonName is the name of the person who'se face is being sampled
	// (default is "person")
	PersonName string
}

Settings contains necessary values to initialize a FaceTrainer

Jump to

Keyboard shortcuts

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