JCruan519 / VM-UNet

(ARXIV24) This is the official code repository for "VM-UNet: Vision Mamba UNet for Medical Image Segmentation".
Apache License 2.0
393 stars 12 forks source link

"selective_scan" is not found #36

Open StudyCrw opened 3 months ago

StudyCrw commented 3 months ago

image I already installed causal_conv1d and mamba_ssm. However, an error occurred as shown in the figure, how can I slove it? thanks!

LHY0329 commented 2 months ago

I also have this problem. Have you found a solution?

StudyCrw commented 2 months ago

I also have this problem. Have you found a solution?

I'm sorry, I haven't found a way to solve the problem yet.

LHY0329 commented 2 months ago

I also have this problem. Have you found a solution?

I'm sorry, I haven't found a way to solve the problem yet.

Okay, thank you!

hafsa390 commented 1 month ago

@LHY0329 , @StudyCrw My cuda version is 12.2. I have installed mamba-ssm=1.0.1 and casual-conv1d=1.2.0post2. I am facing the NameError: name 'selective_scan_fn' is not defined. Could you solve the issue you faced?

StudyCrw commented 1 month ago

@LHY0329 , @StudyCrw My cuda version is 12.2. I have installed mamba-ssm=1.0.1 and casual-conv1d=1.2.0post2. I am facing the NameError: name 'selective_scan_fn' is not defined. Could you solve the issue you faced?

I haven't found a solution either.

Chang688 commented 1 month ago

@LHY0329 您好?请问您解决这个问题了吗?如果解决的话可以告诉我下吗 ?

Chang688 commented 1 month ago

@StudyCrw 您好?请问您解决这个问题了吗?如果解决的话可以告诉我下吗 ?

Chang688 commented 1 month ago

@hafsa390 您好?请问您解决这个问题了吗?如果解决的话可以告诉我下吗 ?

LHY0329 commented 1 month ago

I haven't found a solution either.

LHY0329 commented 1 month ago

@LHY0329 , @StudyCrw My cuda version is 12.2. I have installed mamba-ssm=1.0.1 and casual-conv1d=1.2.0post2. I am facing the NameError: name 'selective_scan_fn' is not defined. Could you solve the issue you faced?

I haven't found a solution either.

hafsa390 commented 1 month ago

@hafsa390 您好?请问您解决这个问题了吗?如果解决的话可以告诉我下吗 ?

I have installed the mamba-ssm and causal_conv1d packages using the .whl files from here: https://github.com/state-spaces/mamba/releases and https://github.com/Dao-AILab/causal-conv1d/releases. After that the error did not show up.

StudyCrw commented 1 month ago

@hafsa390 您好?请问您解决这个问题了吗?如果解决的话可以告诉我下吗 ?

I have installed the mamba-ssm and causal_conv1d packages using the .whl files from here: https://github.com/state-spaces/mamba/releases and https://github.com/Dao-AILab/causal-conv1d/releases. After that the error did not show up.

Which version do you have installed?

onion-LHJ commented 3 weeks ago

Actually,u just need to make sure ur cuda's version is 11.8,use nvcc -V and check it.If the version is not 11.8,u can use: conda install cudatoolkit==11.8 -c nvidia conda install -c "nvidia/label/cuda-11.8.0" cuda-nvcc

Then use nvcc -V to see the version

Next,u just follow the README,it should work.

StudyCrw commented 1 week ago

Actually,u just need to make sure ur cuda's version is 11.8,use nvcc -V and check it.If the version is not 11.8,u can use: conda install cudatoolkit==11.8 -c nvidia conda install -c "nvidia/label/cuda-11.8.0" cuda-nvcc

Then use nvcc -V to see the version

Next,u just follow the README,it should work.

Sorry for the late reply. Thank you very much for your answer.

RoryShao commented 7 hours ago

Yes, I just solved it. The main issue was due to the CUDA version, which should be higher than 11.8. The problem occurred because the virtual environment was set to 11.7.