Commit b94260e4 by vincent

fixed uncompressed model weight routes in end to end tests

parent 482becb0
......@@ -2,7 +2,7 @@ const dataFiles = [
'test/images/*.jpg',
'test/images/*.png',
'test/data/*.json',
'weights/*.weights'
'weights/**/*'
].map(pattern => ({
pattern,
watched: false,
......
......@@ -9,7 +9,7 @@ describe('faceLandmarkNet', () => {
let faceLandmarkNet: any, imgEl: HTMLImageElement, faceLandmarkPositions: Point[]
beforeAll(async () => {
const res = await axios.get('base/weights/face_landmark_68_model.weights', { responseType: 'arraybuffer' })
const res = await axios.get('base/weights/uncompressed/face_landmark_68_model.weights', { responseType: 'arraybuffer' })
const weights = new Float32Array(res.data)
faceLandmarkNet = faceapi.faceLandmarkNet(weights)
......
......@@ -7,7 +7,7 @@ describe('faceRecognitionNet', () => {
let faceRecognitionNet: any, imgEl: HTMLImageElement, faceDescriptor: number[]
beforeAll(async () => {
const res = await axios.get('base/weights/face_recognition_model.weights', { responseType: 'arraybuffer' })
const res = await axios.get('base/weights/uncompressed/face_recognition_model.weights', { responseType: 'arraybuffer' })
const weights = new Float32Array(res.data)
faceRecognitionNet = faceapi.faceRecognitionNet(weights)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment