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
bcf473ed
Commit
bcf473ed
authored
3 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Plain Diff
Merge branch 'fix_iresnet' into 'master'
Fixes normalization See merge request
!131
parents
61287ced
b9b7d1fc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!131
Fixes normalization
Pipeline
#52282
canceled
3 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/face/embeddings/pytorch.py
+4
-4
4 additions, 4 deletions
bob/bio/face/embeddings/pytorch.py
with
4 additions
and
4 deletions
bob/bio/face/embeddings/pytorch.py
+
4
−
4
View file @
bcf473ed
...
...
@@ -160,7 +160,7 @@ class IResnet34(PyTorchModel):
ArcFace model (RESNET 34) from Insightface ported to pytorch
"""
def
__init__
(
self
,
memory_demanding
=
False
):
def
__init__
(
self
,
preprocessor
=
lambda
x
:
(
x
-
127.5
)
/
128.0
,
memory_demanding
=
False
):
urls
=
[
"
https://www.idiap.ch/software/bob/data/bob/bob.bio.face/master/pytorch/iresnet-91a5de61.tar.gz
"
,
...
...
@@ -188,7 +188,7 @@ class IResnet50(PyTorchModel):
ArcFace model (RESNET 50) from Insightface ported to pytorch
"""
def
__init__
(
self
,
memory_demanding
=
False
):
def
__init__
(
self
,
preprocessor
=
lambda
x
:
(
x
-
127.5
)
/
128.0
,
memory_demanding
=
False
):
filename
=
_get_iresnet_file
()
...
...
@@ -206,12 +206,12 @@ class IResnet50(PyTorchModel):
self
.
model
=
model
class
IResnet100
(
PyTorchModel
):
class
IResnet100
(
PyTorchModel
):
"""
ArcFace model (RESNET 100) from Insightface ported to pytorch
"""
def
__init__
(
self
,
memory_demanding
=
False
):
def
__init__
(
self
,
preprocessor
=
lambda
x
:
(
x
-
127.5
)
/
128.0
,
memory_demanding
=
False
):
filename
=
_get_iresnet_file
()
...
...
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