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: cannot unsqueeze empty tensor #10

Open
Shualite opened this issue Aug 17, 2019 · 3 comments
Open

RuntimeError: cannot unsqueeze empty tensor #10

Shualite opened this issue Aug 17, 2019 · 3 comments

Comments

@Shualite
Copy link

Traceback (most recent call last): File "eval_all.py", line 380, in <module> main() File "eval_all.py", line 347, in main out, seg_pred, seg_map =net(img) File "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 477, in __call__ result = self.forward(*input, **kwargs) File "/root/fsy_SceneTextRec/Docker-pytorch-0.3/corner-master/dssd.py", line 113, in forward output = self.detect(loc.view(loc.size(0), -1, 4, 4), self.softmax(conf.view(-1, self.num_classes)), self.priors, F.sigmoid(seg_view), F.sigmoid(seg_pred)) File "/root/fsy_SceneTextRec/Docker-pytorch-0.3/corner-master/layers/functions/detection.py", line 50, in forward temp.append(torch.cat((scores[ids[:count]].unsqueeze(1),

I also find that this code can only run in the pytorch environment under pytorch0.4, otherwise we need to change the c code in the roi_pooling module.
I meet this error above when i run on pytorch0.4.1 and run the eval_all.py

@Shualite
Copy link
Author

Shualite commented Sep 3, 2019

@lvpengyuan

@lhn217
Copy link

lhn217 commented Feb 7, 2020

@lvpengyuan

do you resolve this problem now?

@zhangchurong
Copy link

+1

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