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
!6
autoencoders pretraining using RGB faces
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
autoencoders pretraining using RGB faces
autoencoder_pretrain
into
master
Overview
18
Commits
17
Pipelines
17
Changes
16
Merged
Olegs NIKISINS
requested to merge
autoencoder_pretrain
into
master
6 years ago
Overview
9
Commits
17
Pipelines
17
Changes
16
Expand
Codes allowing to pre-train an autoencoder, using RGB facial images from the CelebA database.
Edited
6 years ago
by
Olegs NIKISINS
0
0
Merge request reports
Compare
master
version 16
5e44dfde
6 years ago
version 15
842c9bbd
6 years ago
version 14
18e00bbf
6 years ago
version 13
2da69255
6 years ago
version 12
61202ef7
6 years ago
version 11
1876beb7
6 years ago
version 10
181b2fff
6 years ago
version 9
eca9f56b
6 years ago
version 8
7762c4de
6 years ago
version 7
b2a8f933
6 years ago
version 6
89723900
6 years ago
version 5
06d5b2df
6 years ago
version 4
f979eb7d
6 years ago
version 3
720dd3ce
6 years ago
version 2
8f8b627f
6 years ago
version 1
29c02b8c
6 years ago
master (base)
and
latest version
latest version
7e723289
17 commits,
6 years ago
version 16
5e44dfde
16 commits,
6 years ago
version 15
842c9bbd
15 commits,
6 years ago
version 14
18e00bbf
14 commits,
6 years ago
version 13
2da69255
13 commits,
6 years ago
version 12
61202ef7
12 commits,
6 years ago
version 11
1876beb7
11 commits,
6 years ago
version 10
181b2fff
10 commits,
6 years ago
version 9
eca9f56b
9 commits,
6 years ago
version 8
7762c4de
8 commits,
6 years ago
version 7
b2a8f933
7 commits,
6 years ago
version 6
89723900
6 commits,
6 years ago
version 5
06d5b2df
5 commits,
6 years ago
version 4
f979eb7d
4 commits,
6 years ago
version 3
720dd3ce
3 commits,
6 years ago
version 2
8f8b627f
2 commits,
6 years ago
version 1
29c02b8c
1 commit,
6 years ago
16 files
+
1027
−
27
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
16
Search (e.g. *.vue) (Ctrl+P)
bob/learn/pytorch/architectures/ConvAutoencoder.py
0 → 100644
+
49
−
0
Options
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
@author: Olegs Nikisins
"""
#==============================================================================
# Import here:
from
torch
import
nn
#==============================================================================
# Define the network:
class
ConvAutoencoder
(
nn
.
Module
):
def
__init__
(
self
):
super
(
ConvAutoencoder
,
self
).
__init__
()
self
.
encoder
=
nn
.
Sequential
(
nn
.
Conv2d
(
3
,
16
,
5
,
padding
=
2
),
nn
.
ReLU
(
True
),
nn
.
MaxPool2d
(
2
),
nn
.
Conv2d
(
16
,
16
,
5
,
padding
=
2
),
nn
.
ReLU
(
True
),
nn
.
MaxPool2d
(
2
),
nn
.
Conv2d
(
16
,
16
,
3
,
padding
=
2
),
nn
.
ReLU
(
True
),
nn
.
MaxPool2d
(
2
),
nn
.
Conv2d
(
16
,
16
,
3
,
padding
=
2
),
nn
.
ReLU
(
True
),
nn
.
MaxPool2d
(
2
))
self
.
decoder
=
nn
.
Sequential
(
nn
.
ConvTranspose2d
(
16
,
16
,
3
,
stride
=
2
,
padding
=
1
),
nn
.
ReLU
(
True
),
nn
.
ConvTranspose2d
(
16
,
16
,
3
,
stride
=
2
,
padding
=
1
),
nn
.
ReLU
(
True
),
nn
.
ConvTranspose2d
(
16
,
16
,
5
,
stride
=
2
,
padding
=
2
),
nn
.
ReLU
(
True
),
nn
.
ConvTranspose2d
(
16
,
3
,
5
,
stride
=
2
,
padding
=
2
),
nn
.
ReLU
(
True
),
nn
.
ConvTranspose2d
(
3
,
3
,
2
,
stride
=
1
,
padding
=
1
),
nn
.
Tanh
())
def
forward
(
self
,
x
):
"""
The forward method.
"""
x
=
self
.
encoder
(
x
)
x
=
self
.
decoder
(
x
)
return
x
Loading