Skip to content

Commit

Permalink
Switch net to train mode in train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
milesial authored Sep 26, 2018
1 parent 3ab8272 commit ab255c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions train.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def train_net(net,

for epoch in range(epochs):
print('Starting epoch {}/{}.'.format(epoch + 1, epochs))
net.train()

# reset the generators
train = get_imgs_and_masks(iddataset['train'], dir_img, dir_mask, img_scale)
Expand Down

0 comments on commit ab255c4

Please sign in to comment.