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
Commits
e69e6bba
There was an error fetching the commit references. Please try again later.
Commit
e69e6bba
authored
7 years ago
by
Guillaume HEUSCH
Browse files
Options
Downloads
Patches
Plain Diff
[script] fixed the default value for the conditional dim, print out the total number of IDs
parent
4b6694e1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/learn/pytorch/scripts/train_drgan_multipie.py
+6
-4
6 additions, 4 deletions
bob/learn/pytorch/scripts/train_drgan_multipie.py
with
6 additions
and
4 deletions
bob/learn/pytorch/scripts/train_drgan_multipie.py
+
6
−
4
View file @
e69e6bba
...
@@ -14,7 +14,7 @@ Options:
...
@@ -14,7 +14,7 @@ Options:
-V, --version Show version.
-V, --version Show version.
-l, --latent-dim=<int> the dimension of the encoded ID [default: 320]
-l, --latent-dim=<int> the dimension of the encoded ID [default: 320]
-n, --noise-dim=<int> the dimension of the noise [default: 100]
-n, --noise-dim=<int> the dimension of the noise [default: 100]
-c, --conditional-dim=<int> the dimension of the
nois
e [default: 1
00
]
-c, --conditional-dim=<int> the dimension of the
conditioning variabl
e [default: 1
3
]
-b, --batch-size=<int> The size of your mini-batch [default: 64]
-b, --batch-size=<int> The size of your mini-batch [default: 64]
-e, --epochs=<int> The number of training epochs [default: 100]
-e, --epochs=<int> The number of training epochs [default: 100]
-s, --sample=<int> Save generated images at every
'
sample
'
batch iteration [default: 100000000000]
-s, --sample=<int> Save generated images at every
'
sample
'
batch iteration [default: 100000000000]
...
@@ -124,13 +124,15 @@ def main(user_input=None):
...
@@ -124,13 +124,15 @@ def main(user_input=None):
])
])
)
)
dataloader
=
torch
.
utils
.
data
.
DataLoader
(
face_dataset
,
batch_size
=
batch_size
,
shuffle
=
True
)
dataloader
=
torch
.
utils
.
data
.
DataLoader
(
face_dataset
,
batch_size
=
batch_size
,
shuffle
=
True
)
logger
.
info
(
"
There are {} training images
"
.
format
(
len
(
face_dataset
)))
logger
.
info
(
"
There are {} training images
"
.
format
(
len
(
face_dataset
)))
# get the number of ids
number_of_ids
=
numpy
.
max
(
face_dataset
.
id_labels
)
+
1
logger
.
info
(
"
There are {} different identities
"
.
format
(
number_of_ids
))
# get the image size
# get the image size
image_size
=
face_dataset
[
0
][
'
image
'
].
numpy
().
shape
image_size
=
face_dataset
[
0
][
'
image
'
].
numpy
().
shape
# get the number of ids
number_of_ids
=
numpy
.
max
(
face_dataset
.
id_labels
)
# ===============
# ===============
# === NETWORK ===
# === NETWORK ===
...
...
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