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

fix : dataloader batched

parent d3ee0051
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,6 @@ def train_duo(model, data_train, optimizer, loss_function, epoch):
param.requires_grad = True
for imaer,imana, img_ref, label in data_train:
print(imaer.size())
label = label.long()
if torch.cuda.is_available():
imaer = imaer.cuda()
......@@ -47,7 +46,10 @@ def test_duo(model, data_test, loss_function, epoch):
param.requires_grad = False
for imaer,imana, img_ref, label in data_test:
print(imaer.size())
imaer.permute(0,1)
imana.permute(0,1)
img_ref.permute(0,1)
label.permute(0,1)
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