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
d4421aee
Commit
d4421aee
authored
Nov 24, 2016
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix docs
parent
c100cae2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
examples/GAN/Image2Image.py
examples/GAN/Image2Image.py
+2
-3
No files found.
examples/GAN/Image2Image.py
View file @
d4421aee
...
@@ -19,10 +19,10 @@ from GAN import GANTrainer, RandomZData, build_GAN_losses
...
@@ -19,10 +19,10 @@ from GAN import GANTrainer, RandomZData, build_GAN_losses
"""
"""
To train:
To train:
./Image2Image.py --data /path/to/datadir --mode {AtoB,BtoA}
./Image2Image.py --data /path/to/datadir --mode {AtoB,BtoA}
# datadir should contain
many
512x256 images formed by A and B
# datadir should contain 512x256 images formed by A and B
To visualize:
To visualize:
./Image2Image.py --data /path/to/test/datadir --mode {AtoB,BtoA} --load pretrained.model
./Image2Image.py --
sample --
data /path/to/test/datadir --mode {AtoB,BtoA} --load pretrained.model
"""
"""
SHAPE
=
256
SHAPE
=
256
...
@@ -159,7 +159,6 @@ def get_config():
...
@@ -159,7 +159,6 @@ def get_config():
StatPrinter
(),
ModelSaver
(),
StatPrinter
(),
ModelSaver
(),
ScheduledHyperParamSetter
(
'learning_rate'
,
[(
200
,
1e-4
)])
ScheduledHyperParamSetter
(
'learning_rate'
,
[(
200
,
1e-4
)])
]),
]),
session_config
=
get_default_sess_config
(
0.8
),
model
=
Model
(),
model
=
Model
(),
step_per_epoch
=
300
,
step_per_epoch
=
300
,
max_epoch
=
300
,
max_epoch
=
300
,
...
...
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