1.报错信息:
python basicsr/test.py -opt options/test/test_MambaIR_SR_x2.yml
Traceback (most recent call last):
File “basicsr/test.py”, line 15, in
from basicsr.data import build_dataloader, build_dataset
File “/home/lwl/文档/postgraduate/bai/image_inhance/4.MambaIR-main/MambaIR-main/basicsr/init.py”, line 1, in
from .archs import *
File “/home/lwl/文档/postgraduate/bai/image_inhance/4.MambaIR-main/MambaIR-main/basicsr/archs/init.py”, line 16, in
_arch_modules = [importlib.import_module(f’basicsr.archs.{file_name}‘) for file_name in arch_filenames]
File “/home/lwl/文档/postgraduate/bai/image_inhance/4.MambaIR-main/MambaIR-main/basicsr/archs/init.py”, line 16, in
_arch_modules = [importlib.import_module(f’basicsr.archs.{file_name}’) for file_name in arch_filenames]
File “/home/lwl/123456/envs/MambaIR380/lib/python3.8/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “/home/lwl/文档/postgraduate/bai/image_inhance/4.MambaIR-main/MambaIR-main/basicsr/archs/mambair_arch.py”, line 11, in
from mamba_ssm.ops.selective_scan_interface import selective_scan_fn, selective_scan_ref
File “/home/lwl/123456/envs/MambaIR380/lib/python3.8/site-packages/mamba_ssm/init.py”, line 3, in
from mamba_ssm.ops.selective_scan_interface import selective_scan_fn, mamba_inner_fn
File “/home/lwl/123456/envs/MambaIR380/lib/python3.8/site-packages/mamba_ssm/ops/selective_scan_interface.py”, line 11, in
import selective_scan_cuda
ImportError: /home/lwl/123456/envs/MambaIR380/lib/python3.8/site-packages/selective_scan_cuda.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN3c107WarningC1ENS_7variantIJNS0_11UserWarningENS0_18DeprecationWarningEEEERKNS_14SourceLocationENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb
2.办理方案
看了这个(超详细)办理在conda情况种Mamba库无法安装的标题:causal-conv1d和mamba-ssm安装踩坑+办理
内里说:
把mamba_ssm的.whl文件换为abiFALSE后,不再出现文章开始所示的报错,出现了新的报错,再写一篇博客吧。
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |