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
5df8e27a
Commit
5df8e27a
authored
Dec 14, 2019
by
vincent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move mtcnn and uncompressed model tests to tests-legacy
parent
19836c13
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
21 additions
and
37 deletions
+21
-37
jasmine-node.js
jasmine-node.js
+2
-5
karma.conf.js
karma.conf.js
+2
-9
package.json
package.json
+1
-7
faceLandmark68Net.uncompressed.test.ts
test/tests-legacy/faceLandmark68Net.uncompressed.test.ts
+3
-3
faceLandmark68TinyNet.uncompressed.test.ts
test/tests-legacy/faceLandmark68TinyNet.uncompressed.test.ts
+4
-4
faceRecognitionNet.uncompressed.test.ts
test/tests-legacy/faceRecognitionNet.uncompressed.test.ts
+3
-3
expectMtcnnResults.ts
test/tests-legacy/mtcnn/expectMtcnnResults.ts
+0
-0
mtcnn.forward.test.ts
test/tests-legacy/mtcnn/mtcnn.forward.test.ts
+0
-0
mtcnn.forward.uncompressed.test.ts
test/tests-legacy/mtcnn/mtcnn.forward.uncompressed.test.ts
+0
-0
mtcnn.test.ts
test/tests-legacy/mtcnn/mtcnn.test.ts
+0
-0
ssdMobilenetv1.locateFaces.uncompressed.test.ts
...ts-legacy/ssdMobilenetv1.locateFaces.uncompressed.test.ts
+5
-5
fetchNetWeights.browser.test.ts
test/tests/dom/fetchNetWeights.browser.test.ts
+1
-1
No files found.
jasmine-node.js
View file @
5df8e27a
let
spec_files
=
[
'**/*.test.ts'
].
concat
(
let
spec_files
=
[
'**/*.test.ts'
]
process
.
env
.
EXCLUDE_UNCOMPRESSED
?
[
'!**/*.uncompressed.test.ts'
]
:
[]
)
// exclude browser tests
// exclude browser tests
spec_files
=
spec_files
.
concat
([
'!**/*.browser.test.ts'
])
spec_files
=
spec_files
.
concat
([
'!**/*.browser.test.ts'
])
spec_files
=
spec_files
.
concat
([
'!test/tests.legacy/*'
])
module
.
exports
=
{
module
.
exports
=
{
spec_dir
:
'test'
,
spec_dir
:
'test'
,
...
...
karma.conf.js
View file @
5df8e27a
...
@@ -22,24 +22,17 @@ let exclude = (
...
@@ -22,24 +22,17 @@ let exclude = (
'faceLandmarkNet'
,
'faceLandmarkNet'
,
'faceRecognitionNet'
,
'faceRecognitionNet'
,
'ssdMobilenetv1'
,
'ssdMobilenetv1'
,
'tinyFaceDetector'
,
'tinyFaceDetector'
'mtcnn'
]
]
:
[]
:
[]
)
)
.
filter
(
ex
=>
ex
!==
process
.
env
.
UUT
)
.
filter
(
ex
=>
ex
!==
process
.
env
.
UUT
)
.
map
(
ex
=>
`test/tests/
${
ex
}
/*.ts`
)
.
map
(
ex
=>
`test/tests/
${
ex
}
/*.ts`
)
exclude
=
exclude
.
concat
(
process
.
env
.
EXCLUDE_UNCOMPRESSED
?
[
'**/*.uncompressed.test.ts'
]
:
[]
)
// exclude nodejs tests
// exclude nodejs tests
exclude
=
exclude
.
concat
([
'**/*.node.test.ts'
])
exclude
=
exclude
.
concat
([
'**/*.node.test.ts'
])
exclude
=
exclude
.
concat
([
'test/env.node.ts'
])
exclude
=
exclude
.
concat
([
'test/env.node.ts'
])
exclude
=
exclude
.
concat
([
'test/tests-legacy/**/*.ts'
])
module
.
exports
=
function
(
config
)
{
module
.
exports
=
function
(
config
)
{
...
...
package.json
View file @
5df8e27a
...
@@ -11,22 +11,16 @@
...
@@ -11,22 +11,16 @@
"tsc"
:
"tsc"
,
"tsc"
:
"tsc"
,
"tsc-es6"
:
"tsc --p tsconfig.es6.json"
,
"tsc-es6"
:
"tsc --p tsconfig.es6.json"
,
"build"
:
"rm -rf ./build && rm -rf ./dist && npm run rollup && npm run rollup-min && npm run tsc && npm run tsc-es6"
,
"build"
:
"rm -rf ./build && rm -rf ./dist && npm run rollup && npm run rollup-min && npm run tsc && npm run tsc-es6"
,
"test"
:
"
karma start
"
,
"test"
:
"
npm run test-browser && npm run test-node
"
,
"test-browser"
:
"karma start --single-run"
,
"test-browser"
:
"karma start --single-run"
,
"test-node"
:
"ts-node -r ./test/env.node.ts node_modules/jasmine/bin/jasmine --config=jasmine-node.js"
,
"test-node"
:
"ts-node -r ./test/env.node.ts node_modules/jasmine/bin/jasmine --config=jasmine-node.js"
,
"test-all"
:
"npm run test-browser-exclude-uncompressed && npm run test-node-exclude-uncompressed"
,
"test-all-include-uncompressed"
:
"npm run test-browser && npm run test-node"
,
"test-facelandmarknets"
:
"set UUT=faceLandmarkNet&& karma start"
,
"test-facelandmarknets"
:
"set UUT=faceLandmarkNet&& karma start"
,
"test-facerecognitionnet"
:
"set UUT=faceRecognitionNet&& karma start"
,
"test-facerecognitionnet"
:
"set UUT=faceRecognitionNet&& karma start"
,
"test-agegendernet"
:
"set UUT=ageGenderNet&& karma start"
,
"test-agegendernet"
:
"set UUT=ageGenderNet&& karma start"
,
"test-ssdmobilenetv1"
:
"set UUT=ssdMobilenetv1&& karma start"
,
"test-ssdmobilenetv1"
:
"set UUT=ssdMobilenetv1&& karma start"
,
"test-tinyfacedetector"
:
"set UUT=tinyFaceDetector&& karma start"
,
"test-tinyfacedetector"
:
"set UUT=tinyFaceDetector&& karma start"
,
"test-globalapi"
:
"set UUT=globalApi&& karma start"
,
"test-globalapi"
:
"set UUT=globalApi&& karma start"
,
"test-mtcnn"
:
"set UUT=mtcnn&& karma start"
,
"test-cpu"
:
"set BACKEND_CPU=true&& karma start"
,
"test-cpu"
:
"set BACKEND_CPU=true&& karma start"
,
"test-exclude-uncompressed"
:
"set EXCLUDE_UNCOMPRESSED=true&& karma start"
,
"test-browser-exclude-uncompressed"
:
"set EXCLUDE_UNCOMPRESSED=true&& karma start --single-run"
,
"test-node-exclude-uncompressed"
:
"set EXCLUDE_UNCOMPRESSED=true&& npm run test-node"
,
"docs"
:
"typedoc --options ./typedoc.config.js ./src"
"docs"
:
"typedoc --options ./typedoc.config.js ./src"
},
},
"keywords"
:
[
"keywords"
:
[
...
...
test/tests
/faceLandmarkNet
/faceLandmark68Net.uncompressed.test.ts
→
test/tests
-legacy
/faceLandmark68Net.uncompressed.test.ts
View file @
5df8e27a
import
{
FaceLandmarks68
,
Point
}
from
'../../
../
src'
;
import
{
FaceLandmarks68
,
Point
}
from
'../../src'
;
import
{
getTestEnv
}
from
'../
../
env'
;
import
{
getTestEnv
}
from
'../env'
;
import
{
describeWithBackend
,
describeWithNets
,
expectPointClose
}
from
'../
../
utils'
;
import
{
describeWithBackend
,
describeWithNets
,
expectPointClose
}
from
'../utils'
;
describeWithBackend
(
'faceLandmark68Net, uncompressed'
,
()
=>
{
describeWithBackend
(
'faceLandmark68Net, uncompressed'
,
()
=>
{
...
...
test/tests
/faceLandmarkNet
/faceLandmark68TinyNet.uncompressed.test.ts
→
test/tests
-legacy
/faceLandmark68TinyNet.uncompressed.test.ts
View file @
5df8e27a
import
{
Point
}
from
'../../
../
src'
;
import
{
Point
}
from
'../../src'
;
import
{
FaceLandmarks68
}
from
'../../
../
src/classes/FaceLandmarks68'
;
import
{
FaceLandmarks68
}
from
'../../src/classes/FaceLandmarks68'
;
import
{
getTestEnv
}
from
'../
../
env'
;
import
{
getTestEnv
}
from
'../env'
;
import
{
describeWithBackend
,
describeWithNets
,
expectPointClose
}
from
'../
../
utils'
;
import
{
describeWithBackend
,
describeWithNets
,
expectPointClose
}
from
'../utils'
;
describeWithBackend
(
'faceLandmark68TinyNet, uncompressed'
,
()
=>
{
describeWithBackend
(
'faceLandmark68TinyNet, uncompressed'
,
()
=>
{
...
...
test/tests
/faceRecognitionNet
/faceRecognitionNet.uncompressed.test.ts
→
test/tests
-legacy
/faceRecognitionNet.uncompressed.test.ts
View file @
5df8e27a
import
{
createCanvasFromMedia
,
euclideanDistance
}
from
'../../
../
src'
;
import
{
createCanvasFromMedia
,
euclideanDistance
}
from
'../../src'
;
import
{
getTestEnv
}
from
'../
../
env'
;
import
{
getTestEnv
}
from
'../env'
;
import
{
describeWithBackend
,
describeWithNets
}
from
'../
../
utils'
;
import
{
describeWithBackend
,
describeWithNets
}
from
'../utils'
;
describeWithBackend
(
'faceRecognitionNet, uncompressed'
,
()
=>
{
describeWithBackend
(
'faceRecognitionNet, uncompressed'
,
()
=>
{
...
...
test/tests/mtcnn/expectMtcnnResults.ts
→
test/tests
-legacy
/mtcnn/expectMtcnnResults.ts
View file @
5df8e27a
File moved
test/tests/mtcnn/mtcnn.forward.test.ts
→
test/tests
-legacy
/mtcnn/mtcnn.forward.test.ts
View file @
5df8e27a
File moved
test/tests/mtcnn/mtcnn.forward.uncompressed.test.ts
→
test/tests
-legacy
/mtcnn/mtcnn.forward.uncompressed.test.ts
View file @
5df8e27a
File moved
test/tests/mtcnn/mtcnn.test.ts
→
test/tests
-legacy
/mtcnn/mtcnn.test.ts
View file @
5df8e27a
File moved
test/tests
/ssdMobilenetv1
/ssdMobilenetv1.locateFaces.uncompressed.test.ts
→
test/tests
-legacy
/ssdMobilenetv1.locateFaces.uncompressed.test.ts
View file @
5df8e27a
import
*
as
faceapi
from
'../../
../
src'
;
import
*
as
faceapi
from
'../../src'
;
import
{
getTestEnv
}
from
'../
../
env'
;
import
{
getTestEnv
}
from
'../env'
;
import
{
expectFaceDetections
}
from
'../
../
expectFaceDetections'
;
import
{
expectFaceDetections
}
from
'../expectFaceDetections'
;
import
{
describeWithBackend
,
describeWithNets
}
from
'../
../
utils'
;
import
{
describeWithBackend
,
describeWithNets
}
from
'../utils'
;
import
{
expectedSsdBoxes
}
from
'./expectedBoxes'
;
import
{
expectedSsdBoxes
}
from
'.
./tests/ssdMobilenetv1
/expectedBoxes'
;
describeWithBackend
(
'ssdMobilenetv1.locateFaces, uncompressed'
,
()
=>
{
describeWithBackend
(
'ssdMobilenetv1.locateFaces, uncompressed'
,
()
=>
{
...
...
test/tests/dom/fetchNetWeights.browser.test.ts
View file @
5df8e27a
...
@@ -3,7 +3,7 @@ import { fetchNetWeights } from '../../../src';
...
@@ -3,7 +3,7 @@ import { fetchNetWeights } from '../../../src';
describe
(
'fetchNetWeights'
,
()
=>
{
describe
(
'fetchNetWeights'
,
()
=>
{
it
(
'fetches .weights file'
,
async
()
=>
{
it
(
'fetches .weights file'
,
async
()
=>
{
const
url
=
'test/data/dummy.weights'
const
url
=
'
base/
test/data/dummy.weights'
const
weights
=
await
fetchNetWeights
(
url
)
const
weights
=
await
fetchNetWeights
(
url
)
expect
(
weights
instanceof
Float32Array
).
toBe
(
true
)
expect
(
weights
instanceof
Float32Array
).
toBe
(
true
)
})
})
...
...
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