Switch net to train mode in train.py

Former-commit-id: ab255c4b3b823dfe8681083aeac0ee78c1a54780
This commit is contained in:
milesial 2018-09-26 08:58:49 +02:00 committed by GitHub
parent b1ac7151b4
commit 341824fb06

View file

@ -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)