Search
Preparing search index...
The search index is not available
face-api.js
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
TinyYolov2
Class TinyYolov2
Hierarchy
TinyYolov2
NeuralNetwork
<
TinyYolov2NetParams
>
TinyYolov2
Index
Constructors
constructor
Properties
_name
_param
Mappings
_params
box
Encoding
Size
config
is
Loaded
param
Mappings
params
with
Class
Scores
DEFAULT_
FILTER_
SIZES
Accessors
anchors
with
Separable
Convs
Methods
detect
dispose
extract
Boxes
extract
Params
extract
Params
From
Weigth
Map
extract
Weights
forward
forward
Input
freeze
get
Default
Model
Name
get
Frozen
Params
get
Param
From
Path
get
Param
List
get
Trainable
Params
load
load
From
Disk
load
From
Uri
load
From
Weight
Map
locate
Faces
reassign
Param
From
Path
run
Mobilenet
run
Tiny
Yolov2
serialize
Params
variable
Constructors
constructor
new
Tiny
Yolov2
(
withSeparableConvs
?:
boolean
)
:
TinyYolov2
Parameters
Default value
withSeparableConvs:
boolean
= true
Returns
TinyYolov2
Properties
Protected
_name
_name
:
string
Protected
_param
Mappings
_param
Mappings
:
ParamMapping
[]
Protected
_params
_params
:
TinyYolov2NetParams
|
undefined
box
Encoding
Size
get
boxEncodingSize
(
)
:
number
Returns
number
config
get
config
(
)
:
TinyYolov2Config
Returns
TinyYolov2Config
is
Loaded
is
Loaded
:
boolean
param
Mappings
param
Mappings
:
ParamMapping
[]
params
params
:
TinyYolov2NetParams
|
undefined
with
Class
Scores
get
withClassScores
(
)
:
boolean
Returns
boolean
Static
DEFAULT_
FILTER_
SIZES
DEFAULT_
FILTER_
SIZES
:
number
[]
= [3, 16, 32, 64, 128, 256, 512, 1024, 1024]
Accessors
anchors
get
anchors
(
)
:
Point
[]
Returns
Point
[]
with
Separable
Convs
get
withSeparableConvs
(
)
:
boolean
Returns
boolean
Methods
detect
detect
(
input
:
TNetInput
, forwardParams
?:
ITinyYolov2Options
)
:
Promise
<
ObjectDetection
[]
>
Parameters
input:
TNetInput
Optional
forwardParams:
ITinyYolov2Options
Returns
Promise
<
ObjectDetection
[]
>
dispose
dispose
(
throwOnRedispose
?:
undefined
|
false
|
true
)
:
void
Parameters
Optional
throwOnRedispose:
undefined
|
false
|
true
Returns
void
Protected
extract
Boxes
extract
Boxes
(
outputTensor
:
tf.Tensor4D
, inputBlobDimensions
:
Dimensions
, scoreThreshold
?:
undefined
|
number
)
:
Promise
<
object
[]
>
Parameters
outputTensor:
tf.Tensor4D
inputBlobDimensions:
Dimensions
Optional
scoreThreshold:
undefined
|
number
Returns
Promise
<
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
, inputSize
:
number
)
:
Promise
<
tf.Tensor4D
>
Parameters
input:
TNetInput
inputSize:
number
Returns
Promise
<
tf.Tensor4D
>
forward
Input
forward
Input
(
input
:
NetInput
, inputSize
:
number
)
:
tf.Tensor4D
Parameters
input:
NetInput
inputSize:
number
Returns
tf.Tensor4D
freeze
freeze
(
)
:
void
Returns
void
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
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
locate
Faces
locate
Faces
(
input
:
TNetInput
, forwardParams
:
TfjsImageRecognitionBase.ITinyYolov2Options
)
:
Promise
<
FaceDetection
[]
>
Parameters
input:
TNetInput
forwardParams:
TfjsImageRecognitionBase.ITinyYolov2Options
Returns
Promise
<
FaceDetection
[]
>
reassign
Param
From
Path
reassign
Param
From
Path
(
paramPath
:
string
, tensor
:
tf.Tensor
)
:
void
Parameters
paramPath:
string
tensor:
tf.Tensor
Returns
void
run
Mobilenet
run
Mobilenet
(
x
:
tf.Tensor4D
, params
:
MobilenetParams
)
:
tf.Tensor4D
Parameters
x:
tf.Tensor4D
params:
MobilenetParams
Returns
tf.Tensor4D
run
Tiny
Yolov2
run
Tiny
Yolov2
(
x
:
tf.Tensor4D
, params
:
DefaultTinyYolov2NetParams
)
:
tf.Tensor4D
Parameters
x:
tf.Tensor4D
params:
DefaultTinyYolov2NetParams
Returns
tf.Tensor4D
serialize
Params
serialize
Params
(
)
:
Float32Array
Returns
Float32Array
variable
variable
(
)
:
void
Returns
void
Globals
Tiny
Yolov2
constructor
_name
_param
Mappings
_params
box
Encoding
Size
config
is
Loaded
param
Mappings
params
with
Class
Scores
DEFAULT_
FILTER_
SIZES
anchors
with
Separable
Convs
detect
dispose
extract
Boxes
extract
Params
extract
Params
From
Weigth
Map
extract
Weights
forward
forward
Input
freeze
get
Default
Model
Name
get
Frozen
Params
get
Param
From
Path
get
Param
List
get
Trainable
Params
load
load
From
Disk
load
From
Uri
load
From
Weight
Map
locate
Faces
reassign
Param
From
Path
run
Mobilenet
run
Tiny
Yolov2
serialize
Params
variable
Generated using
TypeDoc