-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Segmentation fault (core dumped) #21
Comments
Can you provide more detailed info? (e.g. python version, which script/command you are using) |
不要意思,python 2.7.13 pytorch 0.4.0 torchvision0.2.1 |
I meet segmentation problem under python 2.7.14 pytorch 0.5.0a0. m, n = qf.size(0), gf.size(0)
distmat = torch.pow(qf, 2).sum(dim=1, keepdim=True).expand(m, n) + \
torch.pow(gf, 2).sum(dim=1, keepdim=True).expand(n, m).t()
distmat.addmm_(1, -2, qf, gf.t())
distmat = distmat.numpy() to qf = qf.numpy()
gf = gf.numpy()
from scipy.spatial.distance import cdist
distmat = cdist(qf, gf) I am not sure what problem you meet, hope it help. (And I am wondering whether it is a bug of pytorch 0.5.0a0) |
@luzai @KaiyangZhou 非常感谢,按照你的方式已经把问题解决了 |
python train_img_model_xent_htri.py -d market1501 -a resnet50 --max-epoch 60 --train-batch 32 --test-batch 32 --stepsize 20 --eval-step 20 --save-dir log/resnet50-xent-market1501 --gpu-devices 2 |
you can do |
好好,谢谢 |
Use safe import in setup.py, use pyyaml in reqs
==> Test
Extracted features for query set, obtained 3368-by-2048 matrix
Extracted features for gallery set, obtained 15913-by-2048 matrix
==> BatchTime(s)/BatchSize(img): 0.014/64
Segmentation fault (core dumped)
测试的时候出现这个问题,谢谢
The text was updated successfully, but these errors were encountered: