PAN.pytorch icon indicating copy to clipboard operation
PAN.pytorch copied to clipboard

重新编译的PSE.so 使用报Segmentation fault

Open wy51wy opened this issue 5 years ago • 4 comments

/usr/lib64/python3.6/site-packages/torch/nn/functional.py:2479: UserWarning: Default upsampling behavior when mode=bilinear is changed to align_corners=False since 0.4.0. Please specify align_corners=True if the old behavior is desired. See the documentation of nn.Upsample for details. "See the documentation of nn.Upsample for details.".format(mode)) Segmentation fault

wy51wy avatar Dec 27 '19 11:12 wy51wy

我遇到一样的问题,升级gcc了也没用

mrwu-mac avatar Feb 28 '20 12:02 mrwu-mac

你解决这个问题了吗

mrwu-mac avatar Feb 28 '20 12:02 mrwu-mac

我发现这应该只是在mac上的问题,mac对c++内存分配严格,所以c++代码要改,但是我对c++不熟

mrwu-mac avatar Feb 28 '20 13:02 mrwu-mac

I solved problem. the problem is opencv version base on c++, so that is Segmentation fault just typed the commandline: $ pip3 install opencv-python==4.0.1.24

duymanhdoan avatar Apr 01 '22 03:04 duymanhdoan