Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.base
Commits
7bbcc348
Commit
7bbcc348
authored
Jul 21, 2017
by
Amir MOHAMMADI
Browse files
Use an environment variable to avoid style changes not required by the user
parent
782b3448
Pipeline
#11411
passed with stages
in 11 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/base/script/evaluate.py
View file @
7bbcc348
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# Manuel Guenther <manuel.guenther@idiap.ch>
# Tue Jul 2 14:52:49 CEST 2013
from
__future__
import
print_function
"""This script evaluates the given score files and computes EER, HTER.
It also is able to plot CMC and ROC curves."""
It also is able to plot CMC and ROC curves.
You can set the environment variable BOB_NO_STYLE_CHANGES to any value to avoid
this script from changing the matplotlib style values. """
from
__future__
import
print_function
import
bob.measure
import
argparse
import
numpy
,
math
import
numpy
import
math
import
os
# matplotlib stuff
import
matplotlib
;
matplotlib
.
use
(
'pdf'
)
#avoids TkInter threaded start
import
matplotlib
matplotlib
.
use
(
'pdf'
)
# avoids TkInter threaded start
from
matplotlib
import
pyplot
from
matplotlib.backends.backend_pdf
import
PdfPages
if
not
os
.
environ
.
get
(
'BOB_NO_STYLE_CHANGES'
):
# increase the default line width and font size
matplotlib
.
rc
(
'lines'
,
linewidth
=
4
)
matplotlib
.
rc
(
'font'
,
size
=
18
)
import
bob.core
logger
=
bob
.
core
.
log
.
setup
(
"bob.bio.base"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment