Skip to content

Commit

Permalink
TF2.0 have some problem with generator length > steps_per_epoch: tens…
Browse files Browse the repository at this point in the history
  • Loading branch information
notha99y committed Jun 15, 2020
1 parent 12f929f commit c7519aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def simple_cnn():


def get_resnet50():
height, width, channel = (240, 320, 13)
height, width, channel = (64, 64, 13)
num_of_classes = 10

base_model = ResNet50(
Expand Down Expand Up @@ -120,8 +120,8 @@ def get_resnet50():
shuffle=True,
)

model.fit(
model.fit_generator(
train_gen,
epochs=25,
steps_per_epoch=train_gen.n // train_gen.batch_size + 1,
steps_per_epoch=train_gen.n // train_gen.batch_size,
)

0 comments on commit c7519aa

Please sign in to comment.