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

环境配置:undefined symbol: THPVariableClass #61

Open
llk0123 opened this issue Nov 19, 2024 · 1 comment
Open

环境配置:undefined symbol: THPVariableClass #61

llk0123 opened this issue Nov 19, 2024 · 1 comment

Comments

@llk0123
Copy link

llk0123 commented Nov 19, 2024

尊敬的作者您好:
配置环境时安装您提供的torch=1.4.0 torchvision=0.2.0进行配置,但是运行时会出现CUDNN_STATUS_EXECUTION_FAILED的问题,于是根据issue,我安装了更高版本torch和torchvision
目前我的环境配置如下:python=3.7 torch=1.13.1+cu117 torchchaudio =0.13.1+cu117 torchvision=0.13.1+cu117 CUDA=12.4 gcc=9.4.0
在我执行训练指令:python tools/train_net_da.py --config-file configs/SIGMA/sigma_vgg16_cityscapace_to_foggy.yaml
会显示如下错误:
File "/Home/llk/project/SIGMA/SIGMA-main/fcos_core/layers/nms.py", line 3, in from fcos_core import C
ImportError: /Home/llk/project/SIGMA/SIGMA-main/fcos_core/C.cpython-37m-x86_64-linux-gnu.so: undefined symbol: THPVariableClass
根据文件路径打开nms.py后发现其中引用的__init
.py文件中的并没有定义_C
请问这种情况应该如何解决呢

@llk0123 llk0123 changed the title 环境配置 环境配置:undefined symbol: THPVariableClass Nov 19, 2024
@zyfone
Copy link

zyfone commented Nov 25, 2024

你好 高版本的pytorch 可以参考这个仓库 https://github.com/zyfone/SIGMA-4090-Version

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

2 participants