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

focal loss 包导入问题 #8

Open
marxmarma opened this issue Oct 9, 2021 · 2 comments
Open

focal loss 包导入问题 #8

marxmarma opened this issue Oct 9, 2021 · 2 comments

Comments

@marxmarma
Copy link

楼主您好:

首次运行时发现sigmoid_focal_loss_cuda.cpython-37m-x86_64-linux-gnu.so 包导入出现问题。

具体报错:
File "/home/admin/pytorch_solov2-master/modules/sigmoid_focal_loss/sigmoid_focal_loss.py", line 5, in
from . import sigmoid_focal_loss_cuda

ImportError: /home/admin/pytorch_solov2-master/modules/sigmoid_focal_loss/sigmoid_focal_loss_cuda.cpython-37m-x86_64-
linux-gnu.so:

undefined symbol: _ZN2at5emptyEN3c108ArrayRefIlEERKNS0_13TensorOptionsENS0_8optionalINS0_12MemoryFormatEEE

@marxmarma marxmarma changed the title so 包导入问题 focal loss 包导入问题 Oct 9, 2021
@ABlueLight
Copy link
Contributor

尝试使用torch==1.5.1 torchvision==0.6.1试试呢

@guomaotianjie
Copy link

@marxmarma you should first run setup.py then generate.so according you env

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