Commit 49114d20 authored by vincent's avatar vincent

fix browser cpu tests

parent 84ec1267
......@@ -38,7 +38,7 @@ function expectAgesAndGender(results: WithAge<WithGender<WithFaceDetection<{}>>>
const { age, gender, genderProbability } = result
const expectedAge = aligned ? ages[i] : agesUnaligned[i]
expect(Math.abs(age - expectedAge)).toBeLessThanOrEqual(5)
expect(Math.abs(age - expectedAge)).toBeLessThanOrEqual(6)
expect(gender).toEqual(genders[i])
expect(genderProbability).toBeGreaterThanOrEqual(i === 0 ? 0.65 : 0.9)
})
......
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