Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
b03e70cb
Commit
b03e70cb
authored
Nov 07, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix BEGAN main script API
parent
795f016a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
examples/GAN/BEGAN.py
examples/GAN/BEGAN.py
+9
-11
No files found.
examples/GAN/BEGAN.py
View file @
b03e70cb
...
...
@@ -145,16 +145,6 @@ if __name__ == '__main__':
assert
args
.
data
logger
.
auto_set_dir
()
config
=
TrainConfig
(
callbacks
=
[
ModelSaver
(),
StatMonitorParamSetter
(
'learning_rate'
,
'measure'
,
lambda
x
:
x
*
0.5
,
0
,
10
)
],
steps_per_epoch
=
500
,
max_epoch
=
400
,
session_init
=
SaverRestore
(
args
.
load
)
if
args
.
load
else
None
,
)
input
=
QueueInput
(
DCGAN
.
get_data
(
args
.
data
))
model
=
Model
()
nr_tower
=
max
(
get_nr_gpu
(),
1
)
...
...
@@ -162,4 +152,12 @@ if __name__ == '__main__':
trainer
=
GANTrainer
(
input
,
model
)
else
:
trainer
=
MultiGPUGANTrainer
(
nr_tower
,
input
,
model
)
trainer
.
train_with_config
(
config
)
trainer
.
train_with_defaults
(
callbacks
=
[
ModelSaver
(),
StatMonitorParamSetter
(
'learning_rate'
,
'measure'
,
lambda
x
:
x
*
0.5
,
0
,
10
)
],
session_init
=
SaverRestore
(
args
.
load
)
if
args
.
load
else
None
,
steps_per_epoch
=
500
,
max_epoch
=
400
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment