Skip to content

Commit b94260e

Browse files
fixed uncompressed model weight routes in end to end tests
1 parent 482becb commit b94260e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

karma.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const dataFiles = [
22
'test/images/*.jpg',
33
'test/images/*.png',
44
'test/data/*.json',
5-
'weights/*.weights'
5+
'weights/**/*'
66
].map(pattern => ({
77
pattern,
88
watched: false,

test/e2e/faceLandmarkNet.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('faceLandmarkNet', () => {
99
let faceLandmarkNet: any, imgEl: HTMLImageElement, faceLandmarkPositions: Point[]
1010

1111
beforeAll(async () => {
12-
const res = await axios.get('base/weights/face_landmark_68_model.weights', { responseType: 'arraybuffer' })
12+
const res = await axios.get('base/weights/uncompressed/face_landmark_68_model.weights', { responseType: 'arraybuffer' })
1313
const weights = new Float32Array(res.data)
1414
faceLandmarkNet = faceapi.faceLandmarkNet(weights)
1515

test/e2e/faceRecognitionNet.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ describe('faceRecognitionNet', () => {
77
let faceRecognitionNet: any, imgEl: HTMLImageElement, faceDescriptor: number[]
88

99
beforeAll(async () => {
10-
const res = await axios.get('base/weights/face_recognition_model.weights', { responseType: 'arraybuffer' })
10+
const res = await axios.get('base/weights/uncompressed/face_recognition_model.weights', { responseType: 'arraybuffer' })
1111
const weights = new Float32Array(res.data)
1212
faceRecognitionNet = faceapi.faceRecognitionNet(weights)
1313

0 commit comments

Comments
 (0)