Search
Preparing search index...
The search index is not available
face-api.js
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
FaceExpressionNet
Class FaceExpressionNet
Hierarchy
FaceProcessor
<
FaceFeatureExtractorParams
>
FaceExpressionNet
Index
Constructors
constructor
Properties
_face
Feature
Extractor
_name
_param
Mappings
_params
is
Loaded
param
Mappings
params
Accessors
face
Feature
Extractor
Methods
dispose
extract
Classifier
Params
extract
Params
extract
Params
From
Weigth
Map
extract
Weights
forward
forward
Input
freeze
get
Classifier
Channels
In
get
Classifier
Channels
Out
get
Default
Model
Name
get
Frozen
Params
get
Param
From
Path
get
Param
List
get
Trainable
Params
load
load
Classifier
Params
load
From
Disk
load
From
Uri
load
From
Weight
Map
predict
Expressions
reassign
Param
From
Path
run
Net
serialize
Params
variable
decode
Probabilites
get
Face
Expression
Label
Constructors
constructor
new
Face
Expression
Net
(
faceFeatureExtractor
?:
FaceFeatureExtractor
)
:
FaceExpressionNet
Parameters
Default value
faceFeatureExtractor:
FaceFeatureExtractor
= new FaceFeatureExtractor()
Returns
FaceExpressionNet
Properties
Protected
_face
Feature
Extractor
_face
Feature
Extractor
:
IFaceFeatureExtractor
<
FaceFeatureExtractorParams
>
Protected
_name
_name
:
string
Protected
_param
Mappings
_param
Mappings
:
ParamMapping
[]
Protected
_params
_params
:
NetParams
|
undefined
is
Loaded
is
Loaded
:
boolean
param
Mappings
param
Mappings
:
ParamMapping
[]
params
params
:
NetParams
|
undefined
Accessors
face
Feature
Extractor
get
faceFeatureExtractor
(
)
:
IFaceFeatureExtractor
<
FaceFeatureExtractorParams
>
Returns
IFaceFeatureExtractor
<
FaceFeatureExtractorParams
>
Methods
dispose
dispose
(
throwOnRedispose
?:
boolean
)
:
void
Parameters
Default value
throwOnRedispose:
boolean
= true
Returns
void
extract
Classifier
Params
extract
Classifier
Params
(
weights
:
Float32Array
)
:
object
Parameters
weights:
Float32Array
Returns
object
Protected
extract
Params
extract
Params
(
weights
:
Float32Array
)
:
object
Parameters
weights:
Float32Array
Returns
object
Protected
extract
Params
From
Weigth
Map
extract
Params
From
Weigth
Map
(
weightMap
:
tf.NamedTensorMap
)
:
object
Parameters
weightMap:
tf.NamedTensorMap
Returns
object
extract
Weights
extract
Weights
(
weights
:
Float32Array
)
:
void
Parameters
weights:
Float32Array
Returns
void
forward
forward
(
input
:
TNetInput
)
:
Promise
<
tf.Tensor2D
>
Parameters
input:
TNetInput
Returns
Promise
<
tf.Tensor2D
>
forward
Input
forward
Input
(
input
:
NetInput
|
tf.Tensor4D
)
:
tf.Tensor2D
Parameters
input:
NetInput
|
tf.Tensor4D
Returns
tf.Tensor2D
freeze
freeze
(
)
:
void
Returns
void
Protected
get
Classifier
Channels
In
get
Classifier
Channels
In
(
)
:
number
Returns
number
Protected
get
Classifier
Channels
Out
get
Classifier
Channels
Out
(
)
:
number
Returns
number
Protected
get
Default
Model
Name
get
Default
Model
Name
(
)
:
string
Returns
string
get
Frozen
Params
get
Frozen
Params
(
)
:
object
[]
Returns
object
[]
get
Param
From
Path
get
Param
From
Path
(
paramPath
:
string
)
:
tf.Tensor
Parameters
paramPath:
string
Returns
tf.Tensor
get
Param
List
get
Param
List
(
)
:
object
[]
Returns
object
[]
get
Trainable
Params
get
Trainable
Params
(
)
:
object
[]
Returns
object
[]
load
load
(
weightsOrUrl
:
Float32Array
|
string
|
undefined
)
:
Promise
<
void
>
Parameters
weightsOrUrl:
Float32Array
|
string
|
undefined
Returns
Promise
<
void
>
load
Classifier
Params
load
Classifier
Params
(
weights
:
Float32Array
)
:
void
Parameters
weights:
Float32Array
Returns
void
load
From
Disk
load
From
Disk
(
filePath
:
string
|
undefined
)
:
Promise
<
void
>
Parameters
filePath:
string
|
undefined
Returns
Promise
<
void
>
load
From
Uri
load
From
Uri
(
uri
:
string
|
undefined
)
:
Promise
<
void
>
Parameters
uri:
string
|
undefined
Returns
Promise
<
void
>
load
From
Weight
Map
load
From
Weight
Map
(
weightMap
:
tf.NamedTensorMap
)
:
void
Parameters
weightMap:
tf.NamedTensorMap
Returns
void
predict
Expressions
predict
Expressions
(
input
:
TNetInput
)
:
Promise
<
object
[]
|
object
[]
[]
>
Parameters
input:
TNetInput
Returns
Promise
<
object
[]
|
object
[]
[]
>
reassign
Param
From
Path
reassign
Param
From
Path
(
paramPath
:
string
, tensor
:
tf.Tensor
)
:
void
Parameters
paramPath:
string
tensor:
tf.Tensor
Returns
void
run
Net
run
Net
(
input
:
NetInput
|
tf.Tensor4D
)
:
tf.Tensor2D
Parameters
input:
NetInput
|
tf.Tensor4D
Returns
tf.Tensor2D
serialize
Params
serialize
Params
(
)
:
Float32Array
Returns
Float32Array
variable
variable
(
)
:
void
Returns
void
Static
decode
Probabilites
decode
Probabilites
(
probabilities
:
number
[]
|
Float32Array
)
:
FaceExpressionPrediction
[]
Parameters
probabilities:
number
[]
|
Float32Array
Returns
FaceExpressionPrediction
[]
Static
get
Face
Expression
Label
get
Face
Expression
Label
(
faceExpression
:
string
)
:
number
Parameters
faceExpression:
string
Returns
number
Globals
Face
Expression
Net
constructor
_face
Feature
Extractor
_name
_param
Mappings
_params
is
Loaded
param
Mappings
params
face
Feature
Extractor
dispose
extract
Classifier
Params
extract
Params
extract
Params
From
Weigth
Map
extract
Weights
forward
forward
Input
freeze
get
Classifier
Channels
In
get
Classifier
Channels
Out
get
Default
Model
Name
get
Frozen
Params
get
Param
From
Path
get
Param
List
get
Trainable
Params
load
load
Classifier
Params
load
From
Disk
load
From
Uri
load
From
Weight
Map
predict
Expressions
reassign
Param
From
Path
run
Net
serialize
Params
variable
decode
Probabilites
get
Face
Expression
Label
Generated using
TypeDoc