mirror of
https://github.com/Laurent2916/REVA-QCAV.git
synced 2024-11-09 23:12:05 +00:00
Switch net to train mode in train.py
Former-commit-id: ab255c4b3b823dfe8681083aeac0ee78c1a54780
This commit is contained in:
parent
b1ac7151b4
commit
341824fb06
1
train.py
1
train.py
|
@ -54,6 +54,7 @@ def train_net(net,
|
||||||
|
|
||||||
for epoch in range(epochs):
|
for epoch in range(epochs):
|
||||||
print('Starting epoch {}/{}.'.format(epoch + 1, epochs))
|
print('Starting epoch {}/{}.'.format(epoch + 1, epochs))
|
||||||
|
net.train()
|
||||||
|
|
||||||
# reset the generators
|
# reset the generators
|
||||||
train = get_imgs_and_masks(iddataset['train'], dir_img, dir_mask, img_scale)
|
train = get_imgs_and_masks(iddataset['train'], dir_img, dir_mask, img_scale)
|
||||||
|
|
Loading…
Reference in a new issue