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
{{ message }}
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
INFO:root:GPU AVAILABLE? True
INFO:root:STARTING Dataset Creation
INFO:root:STARTING Dataloading
INFO:root:LOADING Model
INFO:root:STARTING training
INFO:root:SET model mode to train!
epoch 0 info 0 - 16: 0%| | 0/625 [00:00<?, ?it/s]C:\Dacon\Siam-NestedUNet-master\utils\metrics.py:33: UserWarning: Implicit dimension choice for log_softmax has been deprecated. Change the call to include dim=X as an argument.
logpt = F.log_softmax(input)
epoch 0 info 0 - 16: 0%| | 0/625 [00:02<?, ?it/s]
Traceback (most recent call last):
File "train.py", line 94, in
cd_loss = criterion(cd_preds, labels)
File "C:\Dacon\Siam-NestedUNet-master\utils\losses.py", line 17, in hybrid_loss
dice = dice_loss(prediction, target)
File "C:\Dacon\Siam-NestedUNet-master\utils\metrics.py", line 75, in dice_loss
true_1_hot = torch.eye(num_classes)[true.squeeze(1)]
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
i dont know what to do
plz help me
The text was updated successfully, but these errors were encountered:
INFO:root:GPU AVAILABLE? True
INFO:root:STARTING Dataset Creation
INFO:root:STARTING Dataloading
INFO:root:LOADING Model
INFO:root:STARTING training
INFO:root:SET model mode to train!
epoch 0 info 0 - 16: 0%| | 0/625 [00:00<?, ?it/s]C:\Dacon\Siam-NestedUNet-master\utils\metrics.py:33: UserWarning: Implicit dimension choice for log_softmax has been deprecated. Change the call to include dim=X as an argument.
logpt = F.log_softmax(input)
epoch 0 info 0 - 16: 0%| | 0/625 [00:02<?, ?it/s]
Traceback (most recent call last):
File "train.py", line 94, in
cd_loss = criterion(cd_preds, labels)
File "C:\Dacon\Siam-NestedUNet-master\utils\losses.py", line 17, in hybrid_loss
dice = dice_loss(prediction, target)
File "C:\Dacon\Siam-NestedUNet-master\utils\metrics.py", line 75, in dice_loss
true_1_hot = torch.eye(num_classes)[true.squeeze(1)]
RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)
i dont know what to do
plz help me
The text was updated successfully, but these errors were encountered: