-
Notifications
You must be signed in to change notification settings - Fork 329
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
error #121
Comments
you need set args.n_class = 9 |
Sorry to disrupt. I encountered the same problem and I've set it to 9, but it doesn't change. :\actions-runner_work\pytorch\pytorch\builder\windows\pytorch\aten\src\ATen\native\cuda\NLLLoss2d.cu:106: block: [3,0,0], thread: [353,0,0] Assertion |
是调整n_class的值为9,num_class和n_class是两个不同的参数,都要设置为9才可以 |
Thank you for your answer. The problem has been solved so far, but my final test results are 3-4 percentage points lower than those in the paper, and the visualization results are also poor and jagged. Overall, they are not as good as transunet. How should this problem be solved? |
hahahaha,Understood, it seems like I also need to do some tricks |
可以!解决了!谢谢哥们 |
ok的,你训练测试完之后把你的测试指标发给俺瞅瞅,我复现的比论文低了3-4个点,可视化结果也不太行 |
SwinUnet has already been extensively tested and validated by numerous researchers. Its performance has consistently proven to be superior to U-Net and TransUNet on widely recognized benchmarks such as Synapse and ISIC datasets. I kindly request that you carefully review the provided codes and avoid making unsubstantiated or negative comments about the method. |
Sorry, I am very sure of your contribution. As the first unet model with a pure Transformer structure, it has given me a lot of encouragement. I did not mean to give you a negative review. I will check my code carefully and apologize to you again. |
/pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [160,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [161,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [162,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [163,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [164,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [165,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [166,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [167,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [168,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [169,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [170,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [171,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [172,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [173,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [174,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [175,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [176,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [177,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [178,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [179,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [180,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [181,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [182,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [183,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [184,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [185,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [186,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [187,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [188,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [189,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [190,0,0] Assertion
t >= 0 && t < n_classes
failed./pytorch/aten/src/THCUNN/SpatialClassNLLCriterion.cu:106: cunn_SpatialClassNLLCriterion_updateOutput_kernel: block: [0,0,0], thread: [191,0,0] Assertion
t >= 0 && t < n_classes
failed.0%| | 0/150 [00:01<?, ?it/s]
Traceback (most recent call last):
File "train.py", line 101, in
trainer_synapse(args, net, args.output_dir)
File "/mnt/C/znmd_ztc/ReID/Swin-Unet-main/trainer.py", line 68, in trainer_synapse
loss_dice = dice_loss(outputs, label_batch, softmax=True)
File "/mnt/C/znmd_ztc/anaconda3/envs/Swin-Unet-main/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/mnt/C/znmd_ztc/ReID/Swin-Unet-main/utils.py", line 43, in forward
class_wise_dice.append(1.0 - dice.item())
RuntimeError: CUDA error: device-side assert triggered
Hello, I encountered this problem while reproducing the model. Do you have a solution?
The text was updated successfully, but these errors were encountered: