Commit 5c0b21df authored by Pavel KORSHUNOV's avatar Pavel KORSHUNOV

Merge branch 'condapackage' into 'master'

Migrate to conda based CI

See merge request !8
parents a63074a1 6bb93a66
Pipeline #17069 canceled with stages
in 23 minutes and 56 seconds
...@@ -21,4 +21,5 @@ build ...@@ -21,4 +21,5 @@ build
src/ src/
*.sql3 *.sql3
temp temp
results results
\ No newline at end of file record.txt
...@@ -6,11 +6,9 @@ ...@@ -6,11 +6,9 @@
from bob.pad.base.algorithm import Algorithm from bob.pad.base.algorithm import Algorithm
import numpy import numpy
# import tensorflow as tf
import os import os
import logging import logging
logger = logging.getLogger("bob.pad.voice") logger = logging.getLogger("bob.pad.voice")
...@@ -48,14 +46,8 @@ class TensorflowEval(Algorithm): ...@@ -48,14 +46,8 @@ class TensorflowEval(Algorithm):
self.data_std = numpy.array(npzfile['data_std']) self.data_std = numpy.array(npzfile['data_std'])
if not self.data_std.shape: # if std was saved as scalar if not self.data_std.shape: # if std was saved as scalar
self.data_std = numpy.ones(features_length) self.data_std = numpy.ones(features_length)
# if self.data_mean.shape[0] > input_shape[0]:
# self.data_mean = self.data_mean[:input_shape[0]]
# self.data_mean = numpy.reshape(self.data_mean, input_shape)
# if self.data_std.shape[0] > input_shape[0]:
# self.data_std = self.data_std[:input_shape[0]]
# self.data_std = numpy.reshape(self.data_std, input_shape)
else: else:
logger.warn("Normalization file '%s' does not exist!" % normalization_file) logger.info("Normalization file '%s' does not exist!" % normalization_file)
self.data_mean = 0 self.data_mean = 0
self.data_std = 1 self.data_std = 1
......
{% set name = 'bob.pad.voice' %}
{% set project_dir = environ.get('RECIPE_DIR') + '/..' %}
package:
name: {{ name }}
version: {{ environ.get('BOB_PACKAGE_VERSION', '0.0.1') }}
build:
number: {{ environ.get('BOB_BUILD_NUMBER', 0) }}
run_exports:
- {{ pin_subpackage(name) }}
script:
- cd {{ project_dir }}
{% if environ.get('BUILD_EGG') %}
- python setup.py sdist --formats=zip
{% endif %}
- python setup.py install --single-version-externally-managed --record record.txt
requirements:
host:
- python {{ python }}
- setuptools {{ setuptools }}
- bob.ip.base
- bob.bio.base
- bob.pad.base
- bob.bio.spear
- bob.bio.gmm
- bob.ap
- bob.io.base
- bob.learn.linear
- bob.learn.libsvm
run:
- python
- setuptools
- gridtk
test:
imports:
- {{ name }}
commands:
- nosetests --with-coverage --cover-package={{ name }} -sv {{ name }}
- sphinx-build -aEW {{ project_dir }}/doc {{ project_dir }}/sphinx
- sphinx-build -aEb doctest {{ project_dir }}/doc sphinx
- conda inspect linkages -p $PREFIX {{ name }} # [not win]
- conda inspect objects -p $PREFIX {{ name }} # [osx]
requires:
- bob-devel {{ bob_devel }}.*
- bob.learn.linear
- bob.pad.base
- nose
- coverage
- sphinx
- sphinx_rtd_theme
- scikit-learn
about:
home: https://www.idiap.ch/software/bob/
license: GNU General Public License v3 (GPLv3)
summary: Package extends bob.pad.base for attack detection in speech
license_family: GPL
...@@ -25,15 +25,9 @@ extensions = [ ...@@ -25,15 +25,9 @@ extensions = [
'sphinx.ext.intersphinx', 'sphinx.ext.intersphinx',
'sphinx.ext.napoleon', 'sphinx.ext.napoleon',
'sphinx.ext.viewcode', 'sphinx.ext.viewcode',
'sphinx.ext.mathjax',
] ]
import sphinx
if sphinx.__version__ >= "1.4.1":
extensions.append('sphinx.ext.imgmath')
imgmath_image_format = 'svg'
else:
extensions.append('sphinx.ext.pngmath')
# Be picky about warnings # Be picky about warnings
nitpicky = True nitpicky = True
......
...@@ -3,4 +3,7 @@ numpy ...@@ -3,4 +3,7 @@ numpy
bob.bio.spear bob.bio.spear
gridtk gridtk
bob.db.base bob.db.base
bob.db.avspoof bob.db.avspoof
\ No newline at end of file bob.bio.bas
bob.io.base
bob.pad.base
\ No newline at end of file
...@@ -10,12 +10,12 @@ Presentation Attack Detection in Voice Biometrics ...@@ -10,12 +10,12 @@ Presentation Attack Detection in Voice Biometrics
This package is an extension of the ``bob.pad.base`` presentation attack detection (PAD) framework package for voice biometrics. This package is an extension of the ``bob.pad.base`` presentation attack detection (PAD) framework package for voice biometrics.
==================================
Tools implemented in bob.pad.voice Tools implemented in bob.pad.voice
================================== ==================================
Extractors Extractors
---------- ----------
.. automodule:: bob.pad.voice.extractor .. automodule:: bob.pad.voice.extractor
Algorithms Algorithms
......
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