Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.face
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.face
Commits
288c6a8f
Commit
288c6a8f
authored
3 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Allowing to set prob_thresh
parent
0412ad80
No related branches found
No related tags found
1 merge request
!112
Feature extractors
Pipeline
#51440
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/face/annotator/bobiptinyface.py
+8
-2
8 additions, 2 deletions
bob/bio/face/annotator/bobiptinyface.py
with
8 additions
and
2 deletions
bob/bio/face/annotator/bobiptinyface.py
+
8
−
2
View file @
288c6a8f
...
@@ -5,9 +5,15 @@ from . import Base
...
@@ -5,9 +5,15 @@ from . import Base
class
BobIpTinyface
(
Base
):
class
BobIpTinyface
(
Base
):
"""
Annotator using tinyface in bob.ip.facedetect
"""
"""
Annotator using tinyface in bob.ip.facedetect
"""
def
__init__
(
self
,
**
kwargs
):
def
__init__
(
self
,
prob_thresh
=
0.5
,
**
kwargs
):
super
(
BobIpTinyface
,
self
).
__init__
(
**
kwargs
)
super
(
BobIpTinyface
,
self
).
__init__
(
**
kwargs
)
self
.
detector
=
bob
.
ip
.
facedetect
.
tinyface
.
TinyFacesDetector
(
prob_thresh
=
0.5
)
self
.
detector
=
bob
.
ip
.
facedetect
.
tinyface
.
TinyFacesDetector
(
prob_thresh
=
prob_thresh
)
@property
def
prob_thresh
(
self
):
return
self
.
detector
.
prob_thresh
def
annotate
(
self
,
image
,
**
kwargs
):
def
annotate
(
self
,
image
,
**
kwargs
):
"""
Annotates an image using tinyface
"""
Annotates an image using tinyface
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment