-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Train error #26
Comments
Hi, |
I had a similar problem, I was training the model with 13 classes instead of 9 (8 organs + background) so I had to change the num_classes in the dataset_config (train.py) to 14. Maybe you are also training with 13 classes. |
Hi, have you fixed the problem now. I also change the num_classes in train.py. But it doesn't work. |
I changed the num_classes value to 14. The code can run successfully. |
I think the reason is the value of your label.Check that. |
my dataset class is 1 so I set numclass=2 but it also report the error ,even I set numclass=3 it not work |
有人解决了吗 |
Traceback (most recent call last):
File "train.py", line 93, in
trainer[dataset_name](args, net, snapshot_path)
File "/home/lichangyong/Code/TransUNet/trainer.py", line 57, in trainer_synapse
loss_dice = dice_loss(outputs, label_batch, softmax=True)
File "/home/lichangyong/.pyenv/versions/pytorch_gpu/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/home/lichangyong/Code/TransUNet/utils.py", line 43, in forward
class_wise_dice.append(1.0 - dice.item())
RuntimeError: CUDA error: device-side assert triggered
The text was updated successfully, but these errors were encountered: