Skip to content

Commit

Permalink
Added new unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
1adrianb committed Sep 18, 2017
1 parent a533c6f commit 9282741
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ Build using [FAN](https://www.adrianbulat.com)'s state-of-the-art deep learning

<p align="center"><img src="docs/images/face-alignment-adrian.gif" /></p>

Note: For the lua version check [here](https://github.com/1adrianb/2D-and-3D-face-alignment). For numerical evaluations it is recommended to use the lua version which uses indentical models with the ones evaluated in the paper.
**Note:** The lua version is available [here](https://github.com/1adrianb/2D-and-3D-face-alignment).

For numerical evaluations it is highly recommended to use the lua version which uses indentical models with the ones evaluated in the paper. More models will be added soon.

[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause) [![Build Status](https://travis-ci.com/1adrianb/face-alignment.svg)](https://travis-ci.com/1adrianb/face-alignment)

Expand Down
11 changes: 7 additions & 4 deletions test/facealignment_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import unittest
from face_alignment import *
import face_alignment


class Tester(unittest.TestCase):
@classmethod
def setUpClass(self):
self._fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._3D, enable_cuda=False)
def test_predict_points(self):
fa = face_alignment.FaceAlignment(face_alignment.LandmarksType._3D, enable_cuda=False)
fa.get_landmarks('test/assets/aflw-test.jpg')

if __name__ == '__main__':
unittest.main()

0 comments on commit 9282741

Please sign in to comment.