diff --git a/bob/bio/face/config/annotator/tinyface.py b/bob/bio/face/config/annotator/tinyface.py index bf223ea9802174d27ca2b7c0a41c6da61fb56f2e..2274bfeff38e836c34e34cb1846915b58a6d769e 100644 --- a/bob/bio/face/config/annotator/tinyface.py +++ b/bob/bio/face/config/annotator/tinyface.py @@ -1,3 +1,3 @@ from bob.bio.face.annotator import BobIpTinyface -annotator = BobIpTinyface() \ No newline at end of file +annotator = BobIpTinyface() diff --git a/bob/bio/face/config/baseline/opencv_pipe.py b/bob/bio/face/config/baseline/opencv_pipe.py index cff19b26f12f519e003343efb3387cb104fbf333..aac2d3f1c45559e35545fb66a5c02ca97aa76790 100644 --- a/bob/bio/face/config/baseline/opencv_pipe.py +++ b/bob/bio/face/config/baseline/opencv_pipe.py @@ -68,4 +68,4 @@ transformer = make_pipeline( # Assemble the Vanilla Biometric pipeline and execute pipeline = VanillaBiometricsPipeline(transformer, algorithm) -transformer = pipeline.transformer \ No newline at end of file +transformer = pipeline.transformer diff --git a/bob/bio/face/extractor/__init__.py b/bob/bio/face/extractor/__init__.py index 21b237ad7b0acc5d13b492efb2aa9977a0ddd116..32b97163775852dbca316f538672be6bccf2095d 100644 --- a/bob/bio/face/extractor/__init__.py +++ b/bob/bio/face/extractor/__init__.py @@ -7,7 +7,6 @@ from .pytorch_model import pytorch_library_model from .tf_model import tf_model from .opencv_caffe import opencv_model - # gets sphinx autodoc done right - don't remove it def __appropriate__(*args): """Says object was actually declared here, and not in the import module. diff --git a/bob/bio/face/extractor/mxnet_resnet.py b/bob/bio/face/extractor/mxnet_resnet.py index fd102ef0edf151c3673d672542788c4e0f31bb99..213c6971e388137112ec7734060f8db7b4c437e3 100644 --- a/bob/bio/face/extractor/mxnet_resnet.py +++ b/bob/bio/face/extractor/mxnet_resnet.py @@ -94,4 +94,4 @@ class mxnet_model(TransformerMixin, BaseEstimator): return d def _more_tags(self): - return {"stateless": True, "requires_fit": False} \ No newline at end of file + return {"stateless": True, "requires_fit": False} diff --git a/bob/bio/face/extractor/opencv_caffe.py b/bob/bio/face/extractor/opencv_caffe.py index d824caf05eaedc67c9787ad9ee5928278f04fd0f..f3951f8b94ab8421af31210146bb0cb439dc8266 100644 --- a/bob/bio/face/extractor/opencv_caffe.py +++ b/bob/bio/face/extractor/opencv_caffe.py @@ -85,6 +85,7 @@ class opencv_model(TransformerMixin, BaseEstimator): """ if self.model is None: + self._load_model() img = np.array(X) @@ -102,4 +103,5 @@ class opencv_model(TransformerMixin, BaseEstimator): return d def _more_tags(self): - return {"stateless": True, "requires_fit": False} \ No newline at end of file + + return {"stateless": True, "requires_fit": False} diff --git a/bob/bio/face/extractor/pytorch_model.py b/bob/bio/face/extractor/pytorch_model.py index 9bdda0aee760c7f08f182cdb6b19b6db5ac41b63..fb5d5161963f522e717662e1082c76af651936cc 100644 --- a/bob/bio/face/extractor/pytorch_model.py +++ b/bob/bio/face/extractor/pytorch_model.py @@ -94,15 +94,9 @@ class pytorch_loaded_model(TransformerMixin, BaseEstimator): return d def _more_tags(self): + return {"stateless": True, "requires_fit": False} - - - - - - - - + class pytorch_library_model(TransformerMixin, BaseEstimator): """Extracts features using deep face recognition with registered model frames in the PyTorch Library. diff --git a/bob/bio/face/extractor/tf_model.py b/bob/bio/face/extractor/tf_model.py index fb6fed55b64b78a7c91a631bd4ccfe5e8f672192..a2de8d5f9b424dce8e25d4601a5e0a270bb39fef 100644 --- a/bob/bio/face/extractor/tf_model.py +++ b/bob/bio/face/extractor/tf_model.py @@ -92,4 +92,4 @@ class tf_model(TransformerMixin, BaseEstimator): return d def _more_tags(self): - return {"stateless": True, "requires_fit": False} \ No newline at end of file + return {"stateless": True, "requires_fit": False} diff --git a/doc/references.rst b/doc/references.rst index 28b98d5f0cbb37e59bfb9f9623b31b966493ed85..bbb5417a0b6d3bf20a07c65c115921c57437ff0f 100644 --- a/doc/references.rst +++ b/doc/references.rst @@ -17,4 +17,4 @@ References .. [ZSQ09] *W. Zhang, S. Shan, L. Qing, X. Chen and W. Gao*. **Are Gabor phases really useless for face recognition?** Pattern Analysis & Applications, 12:301-307, 2009. .. [TFP18] de Freitas Pereira, Tiago, André Anjos, and Sébastien Marcel. "Heterogeneous face recognition using domain specific units." IEEE Transactions on Information Forensics and Security 14.7 (2018): 1803-1816. .. [HRM06] *G. Heusch, Y. Rodriguez, and S. Marcel*. **Local Binary Patterns as an Image Preprocessing for Face Authentication**. In IEEE International Conference on Automatic Face and Gesture Recognition (AFGR), 2006. -.. [LGB18] *C. Li, M. Gunther and T. E. Boult*. **ECLIPSE: Ensembles of Centroids Leveraging Iteratively Processed Spatial Eclipse Clustering**. 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), Lake Tahoe, NV, USA, 2018, pp. 131-140, doi: 10.1109/WACV.2018.00021. +.. [LGB18] *C. Li, M. Gunther and T. E. Boult*. **ECLIPSE: Ensembles of Centroids Leveraging Iteratively Processed Spatial Eclipse Clustering**. 2018 IEEE Winter Conference on Applications of Computer Vision (WACV), Lake Tahoe, NV, USA, 2018, pp. 131-140, doi: 10.1109/WACV.2018.00021. \ No newline at end of file