Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.learn.pytorch
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
Model registry
Operate
Environments
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.learn.pytorch
Merge requests
!29
Resolve "Config files should be removed from the package"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Config files should be removed from the package"
12-config-files-should-be-removed-from-the-package
into
master
Overview
3
Commits
1
Pipelines
2
Changes
6
Merged
Guillaume HEUSCH
requested to merge
12-config-files-should-be-removed-from-the-package
into
master
6 years ago
Overview
3
Commits
1
Pipelines
2
Changes
6
Expand
Closes
#12 (closed)
Edited
6 years ago
by
Guillaume HEUSCH
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
07cf574f
1 commit,
6 years ago
6 files
+
0
−
260
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
bob/learn/pytorch/config/cnn/casianet_casia.py deleted
100644 → 0
+
0
−
20
Options
### DATA ###
from
bob.learn.pytorch.datasets
import
CasiaWebFaceDataset
import
torchvision.transforms
as
transforms
from
bob.learn.pytorch.datasets
import
RollChannels
from
bob.learn.pytorch.datasets
import
ToTensor
from
bob.learn.pytorch.datasets
import
Normalize
dataset
=
CasiaWebFaceDataset
(
root_dir
=
'
/idiap/project/fargo/xpeng_prepro/CASIA-Webface-crop-128/
'
,
transform
=
transforms
.
Compose
([
RollChannels
(),
# bob to skimage:
ToTensor
(),
Normalize
((
0.5
,
0.5
,
0.5
),
(
0.5
,
0.5
,
0.5
))
])
)
### NETWORK ###
from
bob.learn.pytorch.architectures
import
CASIANet
number_of_classes
=
10575
dropout
=
0.5
network
=
CASIANet
(
number_of_classes
,
dropout
)
Loading