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: index 24910 is out of bounds for dimension 0 with size 7840 #6

Open
JinShchen opened this issue Mar 18, 2019 · 0 comments

Comments

@JinShchen
Copy link

shape is: torch.Size([3, 448, 448]) torch.Size([1, 25000]) torch.Size([25000, 3])
Traceback (most recent call last):
File "ctpn_train.py", line 105, in
loss_cls = critetion_cls(out_cls, clss)
File "/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in call
result = self.forward(*input, **kwargs)
File "/mnt/lustre/chenjinsheng/project/text_detection/pytorch_ctpn/ctpn_model.py", line 54, in forward
cls_pred = input[0][cls_keep]

RuntimeError: index 24910 is out of bounds for dimension 0 with size 7840

这个index对不上怎么解决呀

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

1 participant