diff --git a/bob/pad/face/algorithm/VideoSvmPadAlgorithm.py b/bob/pad/face/algorithm/VideoSvmPadAlgorithm.py index c8d5577927c09406546c2ced8d70a5a57df79360..9cbaeb7d79365420c4cd7646afe5d50f0cd03237 100644 --- a/bob/pad/face/algorithm/VideoSvmPadAlgorithm.py +++ b/bob/pad/face/algorithm/VideoSvmPadAlgorithm.py @@ -210,9 +210,9 @@ class VideoSvmPadAlgorithm(Algorithm): else: - uniform_step = features.shape[0]/n_samples + uniform_step = np.int(features.shape[0]/n_samples) - features_subset = features[0 : uniform_step*n_samples : uniform_step, :] + features_subset = features[0 : np.int(uniform_step*n_samples) : uniform_step, :] return features_subset @@ -240,7 +240,7 @@ class VideoSvmPadAlgorithm(Algorithm): Selected subset of cross-validation features. """ - half_samples_num = features.shape[0]/2 + half_samples_num = np.int(features.shape[0]/2) features_train = features[ 0 : half_samples_num, : ] features_cv = features[ half_samples_num : 2 * half_samples_num + 1, : ] diff --git a/bob/pad/face/config/frame_diff_svm.py b/bob/pad/face/config/frame_diff_svm.py index d55a46237352fd68f936f9d4f43a8aec7281a0a3..35c6d4f8f997e06cc2ff4a02a036ae0e9c7eec29 100644 --- a/bob/pad/face/config/frame_diff_svm.py +++ b/bob/pad/face/config/frame_diff_svm.py @@ -2,8 +2,6 @@ # -*- coding: utf-8 -*- """ -@author: Olegs Nikisins - This file contains configurations to run Frame Differences and SVM based face PAD baseline. The settings are tuned for the Replay-attack database. The idea of the algorithms is inherited from the following paper: [AM11]_. diff --git a/bob/pad/face/config/lbp_svm.py b/bob/pad/face/config/lbp_svm.py index 3c95b9850cf7bb4745c6174fe5fdd2a92d25d371..ff16f3b47f99f67b0ac566f437f12d3146548779 100644 --- a/bob/pad/face/config/lbp_svm.py +++ b/bob/pad/face/config/lbp_svm.py @@ -2,8 +2,6 @@ # -*- coding: utf-8 -*- """ -@author: Olegs Nikisins - This file contains configurations to run LBP and SVM based face PAD baseline. The settings are tuned for the Replay-attack database. The idea of the algorithm is introduced in the following paper: [CAM12]_. diff --git a/bob/pad/face/config/qm_svm.py b/bob/pad/face/config/qm_svm.py index dcf1473c76f85b3ea806324e55d4f60152c6e95c..b6ee74c4fdda3d0e57fe42d5d90bce1050650dc2 100644 --- a/bob/pad/face/config/qm_svm.py +++ b/bob/pad/face/config/qm_svm.py @@ -2,8 +2,6 @@ # -*- coding: utf-8 -*- """ -@author: Olegs Nikisins - This file contains configurations to run Image Quality Measures (IQM) and SVM based face PAD baseline. The settings are tuned for the Replay-attack database. The IQM features used in this algorithm/resource are introduced in the following papers: [WHJ15]_ and [CBVM16]_. diff --git a/setup.py b/setup.py index db586b2bc847b47e41069bfba8c598b3403f7fb2..eb04789aa236b9abd403cc422ef6a532df15c8d8 100644 --- a/setup.py +++ b/setup.py @@ -1,37 +1,5 @@ #!/usr/bin/env python # vim: set fileencoding=utf-8 : -# Andre Anjos <andre.anjos@idiap.ch> -# Mon 16 Apr 08:18:08 2012 CEST -# -# Copyright (C) Idiap Research Institute, Martigny, Switzerland -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# This file contains the python (distutils/setuptools) instructions so your -# package can be installed on **any** host system. It defines some basic -# information like the package name for instance, or its homepage. -# -# It also defines which other packages this python package depends on and that -# are required for this package's operation. The python subsystem will make -# sure all dependent packages are installed or will install them for you upon -# the installation of this package. -# -# The 'buildout' system we use here will go further and wrap this package in -# such a way to create an isolated python working environment. Buildout will -# make sure that dependencies which are not yet installed do get installed, but -# **without** requiring administrative privileges on the host system. This -# allows you to test your package with new python dependencies w/o requiring -# administrative interventions. from setuptools import setup, dist dist.Distribution(dict(setup_requires = ['bob.extension'])) @@ -52,8 +20,8 @@ setup( url = 'https://gitlab.idiap.ch/bob/bob.pad.face', license = 'GPLv3', - author = 'Amir Mohammadi', - author_email = 'amir.mohammadi@idiap.ch', + author = 'Olegs Nikisins', + author_email = 'olegs.nikisins@idiap.ch', keywords = 'bob', # If you have a better, long description of your package, place it on the