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: invalid argument 5: k not in range for dimension at C:/w/b/windows/pytorch/aten/src\THC/generic/THCTensorTopK.cu:24 #146

Open
Kakahashi opened this issue Jun 2, 2023 · 1 comment

Comments

@Kakahashi
Copy link

修改了代码,原来的csplayer 替换成swim transformer以后出现一下问题
yolo_training文件该行报错 _, pos_idx = torch.topk(cost[gt_idx], k=dynamic_ks[gt_idx].item(), largest=False)
RuntimeError: invalid argument 5: k not in range for dimension at C:/w/b/windows/pytorch/aten/src\THC/generic/THCTensorTopK.cu:24
Epoch 1/100: 0%| | 0/253 [00:12<?, ?it/s<class 'dict'>]
请问一下什么原因,如何解决啊(另外后来无意中把刚开始的focus切片操作修改以后,发现能正常训练,但是这个修改可能影响实验,所以寻求其他的解决办法)

@XinyueZhangqdu
Copy link

同问

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

2 participants