Commit 979c30c1 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

rename to btas2018_siliconemask

parent 8da42be1
Pipeline #21586 passed with stage
......@@ -9,7 +9,7 @@ test:
# https://www.idiap.ch does not work on CI machines but works elsewhere
- sed -i "s|https://www.idiap.ch|http://www.idiap.ch|g" environment.yml
- conda env create -vvv --file environment.yml
- source activate bob.paper.cvpr2018_facevuln
- source activate bob.paper.btas2018_siliconemask
- buildout
cache:
key: "$CI_BUILD_NAME"
......
This diff is collapsed.
......@@ -5,7 +5,7 @@
===========================================================
This package is part of the signal-processing and machine learning toolbox
Bob_. It contains the source code to reproduce the following paper::
Bob_. It contains the source code to reproduce the following paper_::
@article{,
......@@ -23,9 +23,9 @@ Once you have installed conda_, download the source code of this paper and
unpack it. Then, you can create a conda environment with the following
command::
$ cd bob.paper.cvpr2018_facevuln
$ cd bob.paper.btas2018_siliconemask
$ conda env create -f environment.yml
$ conda activate bob.paper.cvpr2018_facevuln # activate the environment
$ conda activate bob.paper.btas2018_siliconemask # activate the environment
$ buildout
This will install all the required software to reproduce this paper.
......@@ -75,6 +75,7 @@ Then, run::
$ ./run.sh
Contact
-------
......@@ -86,7 +87,7 @@ development `mailing list`_.
.. _bob: https://www.idiap.ch/software/bob
.. _mailing list: https://www.idiap.ch/software/bob/discuss
.. _conda: https://conda.io
.. _install conda: https://conda.io/docs/install/quick.html#linux-miniconda-install
.. _install conda: https://conda.io/docs/user-guide/install/linux.html
.. _bob.bio.base: https://pypi.python.org/pypi/bob.bio.base
.. _paper: http://publications.idiap.ch/index.php/publications/show/$$$$
.. _mobio: https://www.idiap.ch/dataset/mobio
......
from bob.paper.cvpr2018_facevuln.database import Database
from bob.paper.btas2018_siliconemask.database import Database
ORIGINAL_DIRECTORY = '[SILICONECVPR_3DMask_Data_DIRECTORY]'
database = Database(original_directory=ORIGINAL_DIRECTORY)
......@@ -57,7 +57,7 @@ def main():
completions = dict(
prog=os.path.basename(sys.argv[0]),
version=pkg_resources.require(
'bob.paper.cvpr2018_facevuln')[0].version
'bob.paper.btas2018_siliconemask')[0].version
)
args = docopt(
......
......@@ -20,7 +20,7 @@ Options:
from __future__ import division, print_function
import bob.core
logger = bob.core.log.setup("bob.paper.cvpr2018_facevuln")
logger = bob.core.log.setup(__name__)
def main():
......@@ -32,7 +32,7 @@ def main():
completions = dict(
prog=os.path.basename(sys.argv[0]),
version=pkg_resources.require(
'bob.paper.cvpr2018_facevuln')[0].version
'bob.paper.btas2018_siliconemask')[0].version
)
args = docopt(
......
......@@ -39,7 +39,7 @@ if not os.environ.get('BOB_NO_STYLE_CHANGES'):
# make the fig size smaller so that everything becomes bigger
matplotlib.rc('figure', figsize=(4, 3))
logger = setup("bob.paper.cvpr2018_facevuln")
logger = setup(__name__)
def histogram(dev_scores, eval_scores, output_path,
......@@ -100,7 +100,7 @@ def main():
completions = dict(
prog=os.path.basename(sys.argv[0]),
version=pkg_resources.require(
'bob.paper.cvpr2018_facevuln')[0].version
'bob.paper.btas2018_siliconemask')[0].version
)
args = docopt(
......
......@@ -36,7 +36,7 @@ from bob.measure.load import get_negatives_positives_from_file, \
import bob.core
from ..utils import confidence_for_indicator_variable
np = numpy
logger = bob.core.log.setup("bob.paper.cvpr2018_facevuln")
logger = bob.core.log.setup(__name__)
def report_iapmr_perattack(path, threshold):
......@@ -150,7 +150,7 @@ def main():
completions = dict(
prog=os.path.basename(sys.argv[0]),
version=pkg_resources.require(
'bob.paper.cvpr2018_facevuln')[0].version
'bob.paper.btas2018_siliconemask')[0].version
)
args = docopt(
......
......@@ -12,7 +12,7 @@ eggs = gridtk
bob.ip.facelandmarks
bob.ip.tensorflow_extractor
bob.ip.mtcnn
bob.paper.cvpr2018_facevuln
bob.paper.btas2018_siliconemask
extensions = bob.buildout
mr.developer
......
from bob.paper.cvpr2018_facevuln import FaceNet
from bob.paper.btas2018_siliconemask import FaceNet
from bob.bio.face.preprocessor import FaceCrop
from bob.bio.base.config.algorithm.distance_cosine import algorithm
sub_directory = 'facenet-cosine'
......
from bob.paper.cvpr2018_facevuln.database.config import database
from bob.paper.btas2018_siliconemask.database.config import database
groups = ['dev']
skip_extractor_training = True
skip_projector_training = True
......
import os
from os.path import expanduser
from bob.paper.cvpr2018_facevuln.database.config import database
from bob.paper.btas2018_siliconemask.database.config import database
from bob.ip.mtcnn import FaceDetector
from bob.bio.face.config.preprocessor.face_detect import preprocessor
from bob.ip.facedetect import detect_single_face
......
from bob.paper.cvpr2018_facevuln.database.config import database
from bob.paper.btas2018_siliconemask.database.config import database
database.original_directory = '[SILICONECVPR_3DMask_Data_DIRECTORY_PROCESSED]'
database.original_extension = '.hdf5'
database.annotation_directory = database.original_directory
......
# Configuration file automatically generated at 2017-11-10 for /home/amir/idiap/git/bobs/bob.paper.cvpr2018_facevuln/bin/verify.py.
# Configuration file automatically generated at 2017-11-10 for /home/amir/idiap/git/bobs/bob.paper.btas2018_siliconemask/bin/verify.py.
##################################################
############### REQUIRED ARGUMENTS ###############
......
name: bob.paper.cvpr2018_facevuln
name: bob.paper.btas2018_siliconemask
channels:
- https://www.idiap.ch/software/bob/conda
- defaults
......
......@@ -46,11 +46,11 @@ setup(
# This is the basic information about your project. Modify all this
# information before releasing code publicly.
name='bob.paper.cvpr2018_facevuln',
name='bob.paper.btas2018_siliconemask',
version=open("version.txt").read().rstrip(),
description='Paper software package',
url='https://gitlab.idiap.ch/bob/bob.paper.cvpr2018_facevuln',
url='https://gitlab.idiap.ch/bob/bob.paper.btas2018_siliconemask',
license='GPLv3',
author='Amir Mohammadi',
author_email='amir.mohammadi@idiap.ch',
......@@ -91,20 +91,20 @@ setup(
# scripts should be declared using this entry:
'console_scripts': [
'vulnerability.py = '
'bob.paper.cvpr2018_facevuln.script.vulnerability:main',
'bob.paper.btas2018_siliconemask.script.vulnerability:main',
'plot_on_demand_better.py = '
'bob.paper.cvpr2018_facevuln.script.plot_on_demand_better:main',
'bob.paper.btas2018_siliconemask.script.plot_on_demand_better:main',
'threshold_evolution.py = '
'bob.paper.cvpr2018_facevuln.script.threshold_evolution:main',
'bob.paper.btas2018_siliconemask.script.threshold_evolution:main',
'annotate = '
'bob.paper.cvpr2018_facevuln.script.annotate:main',
'bob.paper.btas2018_siliconemask.script.annotate:main',
'bonafide_to_zei = '
'bob.paper.cvpr2018_facevuln.script.bonafide_to_zei:main',
'bob.paper.btas2018_siliconemask.script.bonafide_to_zei:main',
],
'bob.bio.database': [
'siliconecvpr = '
'bob.paper.cvpr2018_facevuln.database.config:database',
'bob.paper.btas2018_siliconemask.database.config:database',
],
},
......
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