Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
face
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Кубота
face
Commits
28a77453
Commit
28a77453
authored
Jul 30, 2018
by
vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed nms issue
parent
84e287c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
TinyYolov2.ts
src/tinyYolov2/TinyYolov2.ts
+12
-2
config.ts
src/tinyYolov2/config.ts
+1
-0
No files found.
src/tinyYolov2/TinyYolov2.ts
View file @
28a77453
...
@@ -8,7 +8,7 @@ import { FaceDetection } from '../FaceDetection';
...
@@ -8,7 +8,7 @@ import { FaceDetection } from '../FaceDetection';
import
{
NetInput
}
from
'../NetInput'
;
import
{
NetInput
}
from
'../NetInput'
;
import
{
toNetInput
}
from
'../toNetInput'
;
import
{
toNetInput
}
from
'../toNetInput'
;
import
{
TNetInput
}
from
'../types'
;
import
{
TNetInput
}
from
'../types'
;
import
{
BOX_ANCHORS
,
INPUT_SIZES
,
NUM_BOXES
,
NUM_CELLS
}
from
'./config'
;
import
{
BOX_ANCHORS
,
INPUT_SIZES
,
IOU_THRESHOLD
,
NUM_BOXES
,
NUM_CELLS
}
from
'./config'
;
import
{
convWithBatchNorm
}
from
'./convWithBatchNorm'
;
import
{
convWithBatchNorm
}
from
'./convWithBatchNorm'
;
import
{
extractParams
}
from
'./extractParams'
;
import
{
extractParams
}
from
'./extractParams'
;
import
{
getDefaultParams
}
from
'./getDefaultParams'
;
import
{
getDefaultParams
}
from
'./getDefaultParams'
;
...
@@ -111,7 +111,17 @@ export class TinyYolov2 extends NeuralNetwork<NetParams> {
...
@@ -111,7 +111,17 @@ export class TinyYolov2 extends NeuralNetwork<NetParams> {
boxesTensor
.
dispose
()
boxesTensor
.
dispose
()
scoresTensor
.
dispose
()
scoresTensor
.
dispose
()
const
indices
=
nonMaxSuppression
(
boxes
,
scores
,
0.4
,
true
)
const
indices
=
nonMaxSuppression
(
boxes
.
map
(
box
=>
new
BoundingBox
(
box
.
left
*
inputSize
,
box
.
top
*
inputSize
,
box
.
right
*
inputSize
,
box
.
bottom
*
inputSize
)),
scores
,
IOU_THRESHOLD
,
true
)
const
detections
=
indices
.
map
(
idx
=>
const
detections
=
indices
.
map
(
idx
=>
new
FaceDetection
(
new
FaceDetection
(
...
...
src/tinyYolov2/config.ts
View file @
28a77453
...
@@ -3,6 +3,7 @@ import { Point } from '../Point';
...
@@ -3,6 +3,7 @@ import { Point } from '../Point';
export
const
INPUT_SIZES
=
{
xs
:
224
,
sm
:
320
,
md
:
416
,
lg
:
608
}
export
const
INPUT_SIZES
=
{
xs
:
224
,
sm
:
320
,
md
:
416
,
lg
:
608
}
export
const
NUM_CELLS
=
{
xs
:
7
,
sm
:
10
,
md
:
13
,
lg
:
19
}
export
const
NUM_CELLS
=
{
xs
:
7
,
sm
:
10
,
md
:
13
,
lg
:
19
}
export
const
NUM_BOXES
=
5
export
const
NUM_BOXES
=
5
export
const
IOU_THRESHOLD
=
0.4
export
const
BOX_ANCHORS
=
[
export
const
BOX_ANCHORS
=
[
new
Point
(
0.738768
,
0.874946
),
new
Point
(
0.738768
,
0.874946
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment