Open whz847 opened 2 months ago
您好,请问解决了吗?我也遇到了同样的问题,提示我还想请问你是如何更改的selective_scan_interface.py文件,请问可以提供一下吗?十分期待与感谢你的回答
这个代码大家都复现成功了吗?为什么我的会报下面的错误? File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl return forward_call(*input, kwargs) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/container.py", line 204, in forward return forward_call(*input, *kwargs) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/container.py", line 204, in forward input = module(input) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl input = module(input) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl return forward_call(input, kwargs) File "/mnt/K/WHZ/MambaDFuse-main/models/network.py", line 137, in forward return forward_call(*input, kwargs) File "/mnt/K/WHZ/MambaDFuse-main/models/network.py", line 137, in forward return (self.encoder(x),residual) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl return (self.encoder(x),residual) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl return forward_call(*input, *kwargs) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/mamba_ssm/modules/mamba_simple.py", line 383, in forward return forward_call(input, kwargs) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/mamba_ssm/modules/mamba_simple.py", line 383, in forward out = mamba_inner_fn( out = mamba_inner_fn( TypeError: TypeError'NoneType' object is not callable: 'NoneType' object is not callable 当更改selective_scan_interface.py文件后,又会出现下面的错误: “TypeError: causal_conv1d_fwd(): incompatible function arguments.” 这个问题是怎么解决的?
前面import 应该导入的是vim中的selective_scan_interface.py,而不是mamba中的selective_scan_interface.py,这两个文件应该有区别,去vim库下载替换一下文件导入就没问题了
这个代码大家都复现成功了吗?为什么我的会报下面的错误? File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl return forward_call(*input, kwargs) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/container.py", line 204, in forward return forward_call(*input, *kwargs) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/container.py", line 204, in forward input = module(input) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl input = module(input) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl return forward_call(input, kwargs) File "/mnt/K/WHZ/MambaDFuse-main/models/network.py", line 137, in forward return forward_call(*input, kwargs) File "/mnt/K/WHZ/MambaDFuse-main/models/network.py", line 137, in forward return (self.encoder(x),residual) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl return (self.encoder(x),residual) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl return forward_call(*input, *kwargs) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/mamba_ssm/modules/mamba_simple.py", line 383, in forward return forward_call(input, kwargs) File "/mnt/G/conda_envs/MambaDFuse/lib/python3.8/site-packages/mamba_ssm/modules/mamba_simple.py", line 383, in forward out = mamba_inner_fn( out = mamba_inner_fn( TypeError: TypeError'NoneType' object is not callable: 'NoneType' object is not callable 当更改selective_scan_interface.py文件后,又会出现下面的错误: “TypeError: causal_conv1d_fwd(): incompatible function arguments.” 这个问题是怎么解决的?