Skip to content
Snippets Groups Projects
Commit 23e37ea4 authored by Schneider Leo's avatar Schneider Leo
Browse files

fix : dataloader batched

parent 107fdd04
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@ def train_duo(model, data_train, optimizer, loss_function, epoch):
for imaer,imana, img_ref, label in data_train:
label = label.long()
print(imaer.size)
if torch.cuda.is_available():
imaer = imaer.cuda()
imana = imana.cuda()
......@@ -50,6 +51,7 @@ def test_duo(model, data_test, loss_function, epoch):
imana.transpose(0,1)
img_ref.transpose(0,1)
label.transpose(0,1)
print(imaer.size)
label = label.long()
if torch.cuda.is_available():
imaer = imaer.cuda()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment