Skip to content

Commit

Permalink
increase testing tolerance for impg2pose models on m1s
Browse files Browse the repository at this point in the history
  • Loading branch information
ejolly committed Mar 29, 2024
1 parent 541b2be commit dc0d1a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feat/tests/test_pretrained_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def test_img2pose_facepose(
):
default_detector.change_model(facepose_model="img2pose")
poses = default_detector.detect_facepose(single_face_img_data)
assert np.allclose(poses["poses"], [0.86, -3.80, 6.60], atol=0.1)
assert np.allclose(poses["poses"], [0.86, -3.80, 6.60], atol=0.5)

# Test DOF kwarg
facepose_model_kwargs = {"RETURN_DIM": 6}
Expand All @@ -209,7 +209,7 @@ def test_img2pose_facepose(
def test_img2pose_c_facepose(self, default_detector, single_face_img_data):
default_detector.change_model(facepose_model="img2pose-c")
poses = default_detector.detect_facepose(single_face_img_data)
assert np.allclose(poses["poses"], [0.86, -3.80, 6.60], atol=0.1)
assert np.allclose(poses["poses"], [0.86, -3.80, 6.60], atol=0.5)


@pytest.mark.usefixtures("default_detector", "multi_face_img")
Expand Down

0 comments on commit dc0d1a6

Please sign in to comment.