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

RuntimeError: copy_if failed to synchronize: device-side assert triggere #43

Open
choubin opened this issue May 20, 2020 · 3 comments
Open

Comments

@choubin
Copy link

choubin commented May 20, 2020

出现错误:loss_c[pos.view(-1,1)] = 0 # filter out pos boxes for now
RuntimeError: copy_if failed to synchronize: device-side assert triggered

我的实际类别是1,设置了config中'num_classes': 2,但是还是出现这个问题,设置num_classes为3却可以正常训练!请问怎么解决?

@NOBUGW
Copy link

NOBUGW commented Feb 2, 2021

你解决了吗

@cenchaojun
Copy link

真的一模一样呢,我也是这样的,设置2就是不行,但是设置3居然就可以运行,都不知道是为啥

@lzk901372
Copy link

当你不用GPU训练的时候,这个错误会提示你下标越界。解决下标越界的问题可以参考 #45

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

4 participants