Skip to content

Commit

Permalink
Merge pull request carpedm20#303 from pengwa/fix
Browse files Browse the repository at this point in the history
move self.data length check to the right place
  • Loading branch information
carpedm20 authored Aug 12, 2018
2 parents 351a654 + 529950a commit 85edbcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions model.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ def __init__(self, sess, input_height=108, input_width=108, crop=True,
else:
self.c_dim = 1

if len(self.data) < self.batch_size:
raise Exception("[!] Entire dataset size is less than the configured batch_size")

self.grayscale = (self.c_dim == 1)

if len(self.data) < self.batch_size:
raise Exception("[!] Entire dataset size is less than the configured batch_size")

self.build_model()

def build_model(self):
Expand Down

0 comments on commit 85edbcd

Please sign in to comment.