Skip to content

Commit

Permalink
fix some syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
lukedeo committed Mar 19, 2017
1 parent ab2e082 commit a43b2a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions models/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import pickle

import argparse

import os
from six.moves import range
import sys

Expand Down Expand Up @@ -64,11 +64,11 @@ def get_parser():
help='Whether or not to use a progress bar')

parser.add_argument('--d-pfx', action='store',
defualt='params_discriminator_epoch_'
default='params_discriminator_epoch_',
help='Default prefix for discriminator network weights')

parser.add_argument('--g-pfx', action='store',
defualt='params_generator_epoch_'
default='params_generator_epoch_',
help='Default prefix for generator network weights')

return parser
Expand Down Expand Up @@ -145,7 +145,7 @@ def get_parser():
# if we don't have the dataset, go fetch it from Zenodo, or re-find in the
# Keras cache
print('Loading data')
if not datafile or os.path.isfile(datafile):
if (datafile is None) or (not os.path.isfile(datafile)):

from keras.utils.data_utils import get_file

Expand Down

0 comments on commit a43b2a6

Please sign in to comment.