ChrisDud0257 / SSL

Official code for our Paper "SSL: A Self-similarity Loss for Improving Generative Image Super-resolution" in ACMMM 2024
Apache License 2.0
32 stars 1 forks source link

我使用CUDA == 11.7 PyTorch == 1.13.1 环境报错compute_similarity.so #8

Open icetea-max opened 4 days ago

icetea-max commented 4 days ago

er = load(name="compute_similarity", File "/opt/conda/envs/hat/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1284, in load return _jit_compile( File "/opt/conda/envs/hat/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1534, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "/opt/conda/envs/hat/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1936, in _import_module_from_library module = importlib.util.module_from_spec(spec) ImportError: /root/.cache/torch_extensions/py39_cu116/compute_similarity/compute_similarity.so: cannot open shared object file: No such file or directory

ChrisDud0257 commented 3 days ago

er = load(name="compute_similarity", File "/opt/conda/envs/hat/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1284, in load return _jit_compile( File "/opt/conda/envs/hat/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1534, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "/opt/conda/envs/hat/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1936, in _import_module_from_library module = importlib.util.module_from_spec(spec) ImportError: /root/.cache/torch_extensions/py39_cu116/compute_similarity/compute_similarity.so: cannot open shared object file: No such file or directory

1.检查你的本地CUDA安装路径是否正确,很明显你的报错最后一句话,"py39_cu116"这里和你标题说的你使用CUDA=11.7不符合,很明显你本地的CUDA安装路径/安装程序有问题 2.正确安装好CUDA后,跟随完整的README.md的操作指引完成安装这个项目的过程,尤其要注意要用export导入你自己本地安装的CUDA路径,并且要编译这个项目

icetea-max commented 2 days ago

谢谢

------------------ 原始邮件 ------------------ 发件人: "ChrisDud0257/SSL" @.>; 发送时间: 2024年11月3日(星期天) 下午5:14 @.>; @.**@.>; 主题: Re: [ChrisDud0257/SSL] 我使用CUDA == 11.7 PyTorch == 1.13.1 环境报错compute_similarity.so (Issue #8)

er = load(name="compute_similarity", File "/opt/conda/envs/hat/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1284, in load return _jit_compile( File "/opt/conda/envs/hat/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1534, in _jit_compile return _import_module_from_library(name, build_directory, is_python_module) File "/opt/conda/envs/hat/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1936, in _import_module_from_library module = importlib.util.module_from_spec(spec) ImportError: /root/.cache/torch_extensions/py39_cu116/compute_similarity/compute_similarity.so: cannot open shared object file: No such file or directory

1.检查你的本地CUDA安装路径是否正确,很明显你的报错最后一句话,"py39_cu116"这里和你标题说的你使用CUDA=11.7不符合,很明显你本地的CUDA安装路径/安装程序有问题 2.正确安装好CUDA后,跟随完整的README.md的操作指引完成安装这个项目的过程,尤其要注意要用export导入你自己本地安装的CUDA路径,并且要编译这个项目

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>