You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "c:/Users/Hong/PycharmProjects/Pytorch-UNet-master/train.py", line 207, in
train_net(net=net,
File "c:/Users/Hong/PycharmProjects/Pytorch-UNet-master/train.py", line 132, in train_net
val_score = evaluate(net, val_loader, device)
File "c:\Users\Hong\PycharmProjects\Pytorch-UNet-master\evaluate.py", line 19, in evaluate
mask_true = F.one_hot(mask_true, net.n_classes).permute(256,256,256,256).float()
RuntimeError: number of dims don't match in permute
The text was updated successfully, but these errors were encountered:
Hi,I have this problem, can you help me?
Traceback (most recent call last):
File "c:/Users/Hong/PycharmProjects/Pytorch-UNet-master/train.py", line 207, in
train_net(net=net,
File "c:/Users/Hong/PycharmProjects/Pytorch-UNet-master/train.py", line 132, in train_net
val_score = evaluate(net, val_loader, device)
File "c:\Users\Hong\PycharmProjects\Pytorch-UNet-master\evaluate.py", line 19, in evaluate
mask_true = F.one_hot(mask_true, net.n_classes).permute(256,256,256,256).float()
RuntimeError: number of dims don't match in permute
The text was updated successfully, but these errors were encountered: