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

请问一下,有人遇到过这个问题吗,网上说是标签的越界,是在损失函数里面报的错。 #36

Open
ghost opened this issue Jun 21, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jun 21, 2020

`RPN_REGR_Loss Exception: copy_if failed to synchronize: device-side assert triggered
Traceback (most recent call last):
File "./PyTorch/ctpn_/utils/loss/loss_utils.py", line 31, in forward
reg_keep = (cls == 1).nonzero()[:, 0]
RuntimeError: copy_if failed to synchronize: device-side assert triggered

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./PyTorch/ctpn_/train.py", line 98, in
train()
File "./PyTorch/ctpn_/train.py", line 75, in train
loss_reg = criterion_reg(out_reg, reg_s)

loss = torch.tensor(0.0)

RuntimeError: CUDA error: device-side assert triggered`

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

0 participants