Skip to content

Commit

Permalink
move self.data length check to the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwa committed Jul 17, 2018
1 parent 351a654 commit 529950a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions model.py
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 529950a

Please sign in to comment.