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

fix : dataloader batched

parent 62b55fce
No related branches found
No related tags found
No related merge requests found
...@@ -47,10 +47,11 @@ def test_duo(model, data_test, loss_function, epoch): ...@@ -47,10 +47,11 @@ def test_duo(model, data_test, loss_function, epoch):
param.requires_grad = False param.requires_grad = False
for imaer,imana, img_ref, label in data_test: for imaer,imana, img_ref, label in data_test:
imaer=imaer.transpose(0,1) imaer = imaer.transpose(0,1)
imana=imana.transpose(0,1) imana = imana.transpose(0,1)
img_ref=img_ref.transpose(0,1) img_ref = img_ref.transpose(0,1)
label=label.transpose(0,1) label = label.transpose(0,1)
label = label.squeeze()
print(label.shape) print(label.shape)
label = label.long() label = label.long()
if torch.cuda.is_available(): if torch.cuda.is_available():
......
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