Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최강혁
/
dddd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
yunjey
2017-01-08 13:40:30 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2c9a6ccb9e6c3b5fa0987256806a7011c07f7381
2c9a6ccb
1 parent
dbf5fe0c
train and test
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
0 deletions
main.py
main.py
0 → 100644
View file @
2c9a6cc
import
tensorflow
as
tf
from
model
import
DTN
from
solver
import
Solver
flags
=
tf
.
app
.
flags
flags
.
DEFINE_boolean
(
'is_train'
,
False
,
'True if train mode, False if test mode'
)
FLAGS
=
flags
.
FLAGS
def
main
(
_
):
model
=
DTN
(
batch_size
=
100
,
learning_rate
=
0.001
,
image_size
=
32
,
output_size
=
32
,
dim_color
=
3
,
dim_fout
=
100
,
dim_df
=
64
,
dim_gf
=
64
,
dim_ff
=
64
)
solver
=
Solver
(
model
,
num_epoch
=
10
,
mnist_path
=
'mnist/'
,
svhn_path
=
'svhn/'
,
model_save_path
=
'model/'
,
log_path
=
'log/'
,
sample_path
=
'sample/'
,
test_model_path
=
'model/dtn-2-1'
,
sample_iter
=
100
)
if
FLAGS
.
is_train
:
solver
.
train
()
else
:
solver
.
test
()
if
__name__
==
'__main__'
:
tf
.
app
.
run
()
\ No newline at end of file
Please
register
or
login
to post a comment