Skip to content
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

使用自己数据集时报错 #13

Closed
Comedian1926 opened this issue Jul 12, 2019 · 2 comments
Closed

使用自己数据集时报错 #13

Comedian1926 opened this issue Jul 12, 2019 · 2 comments

Comments

@Comedian1926
Copy link

THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1550780889552/work/aten/src/THCUNN/generic/SpatialClassNLLCriterion.cu line=128 error=59 : device-side assert triggered
Traceback (most recent call last):
File "main.py", line 518, in
main(parser.parse_args())
File "main.py", line 472, in main
model = train(args, model, True) #Train encoder
File "main.py", line 236, in train
loss = criterion(outputs, targets[:, 0])
File "/home/disk/software/anaconda3/envs/pytorch_env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/disk/LEDNet/utils/loss.py", line 15, in forward
return self.loss(F.log_softmax(outputs, dim=0), targets)
File "/home/disk/software/anaconda3/envs/pytorch_env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/disk/software/anaconda3/envs/pytorch_env/lib/python3.6/site-packages/torch/nn/modules/loss.py", line 210, in forward
return F.nll_loss(input, target, weight=self.weight, ignore_index=self.ignore_index, reduction=self.reduction)
File "/home/disksoftware/anaconda3/envs/pytorch_env/lib/python3.6/site-packages/torch/nn/functional.py", line 1792, in nll_loss
ret = torch._C._nn.nll_loss2d(input, target, weight, _Reduction.get_enum(reduction), ignore_index)
RuntimeError: cuda runtime error (59) : device-side assert triggered at /opt/conda/conda-bld/pytorch_1550780889552/work/aten/src/THCUNN/generic/SpatialClassNLLCriterion.cu:128

你好,我在使用自己数据集进行训练的时候报了如下错误,数据集格式按照cityscapes文件制作的,图片大小一致、格式一致。修改了类别数目。但是会报如下错误,如果有时间方便看一下吗,十分感谢。。。

@xiaoyufenfei
Copy link
Owner

Please check the data pre-processing yourself, sorry, I can't help.

@noobliang
Copy link

THCudaCheck FAIL file=/opt/conda/conda-bld/pytorch_1550780889552/work/aten/src/THCUNN/generic/SpatialClassNLLCriterion.cu line=128 error=59 : device-side assert triggered
Traceback (most recent call last):
File "main.py", line 518, in
main(parser.parse_args())
File "main.py", line 472, in main
model = train(args, model, True) #Train encoder
File "main.py", line 236, in train
loss = criterion(outputs, targets[:, 0])
File "/home/disk/software/anaconda3/envs/pytorch_env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/disk/LEDNet/utils/loss.py", line 15, in forward
return self.loss(F.log_softmax(outputs, dim=0), targets)
File "/home/disk/software/anaconda3/envs/pytorch_env/lib/python3.6/site-packages/torch/nn/modules/module.py", line 489, in call
result = self.forward(*input, **kwargs)
File "/home/disk/software/anaconda3/envs/pytorch_env/lib/python3.6/site-packages/torch/nn/modules/loss.py", line 210, in forward
return F.nll_loss(input, target, weight=self.weight, ignore_index=self.ignore_index, reduction=self.reduction)
File "/home/disksoftware/anaconda3/envs/pytorch_env/lib/python3.6/site-packages/torch/nn/functional.py", line 1792, in nll_loss
ret = torch._C._nn.nll_loss2d(input, target, weight, _Reduction.get_enum(reduction), ignore_index)
RuntimeError: cuda runtime error (59) : device-side assert triggered at /opt/conda/conda-bld/pytorch_1550780889552/work/aten/src/THCUNN/generic/SpatialClassNLLCriterion.cu:128

你好,我在使用自己数据集进行训练的时候报了如下错误,数据集格式按照cityscapes文件制作的,图片大小一致、格式一致。修改了类别数目。但是会报如下错误,如果有时间方便看一下吗,十分感谢。。。

你好 ,请问一下,自己制作数据集,必须要精细标签gt_fine和弱标签gt_coarse标签吗,大佬,教教我,最近要做一个项目。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants