hustvl / Vim

[ICML 2024] Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model
Apache License 2.0
2.55k stars 160 forks source link

The problem of bimamba_type #14

Open 165412152 opened 5 months ago

165412152 commented 5 months ago

TypeError: init() got an unexpected keyword argument 'bimamba_type'

Owen-Liuyuxuan commented 5 months ago

It seems that you need to install the mamba inside this repo using pip3 install -e mamba. (uninstall the original mamba first)

MarioPaps commented 4 months ago

I have the same issue. Can someone please provide a fix?

arielshaulov commented 4 months ago

same problem here

liyhc commented 4 months ago

I have the same issue. Can someone please provide a fix?

I tried another solution and it worked for me:

Firstly, install from the .whl file.

wget https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.1.3.post1/causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl wget https://github.com/state-spaces/mamba/releases/download/v1.1.1/mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl

Then replace the mamba_ssm installed in the Conda environment with the official project's mamba_ssm.

conda env list cp -rf Vim-main/mamba-1p1p1/mamba_ssm /home/liyhc/anaconda3/envs/mamba/lib/python3.10/site-packages

Unrealluver commented 4 months ago

It seems that you need to install the mamba inside this repo using pip3 install -e mamba. (uninstall the original mamba first)

Hi everyone,

This is the solution to this issue. Because we have modified the mamba library in this repo, we need to install the mamba of Vim version through the command: pip3 install -e mamba.

arielshaulov commented 4 months ago

It seems that you need to install the mamba inside this repo using pip3 install -e mamba. (uninstall the original mamba first)

Hi everyone,

This is the solution to this issue. Because we have modified the mamba library in this repo, we need to install the mamba of Vim version through the command: pip3 install -e mamba.

The solution for me was installing mamba as mentioned above (check that you are using the exact Python version as they mention in the README and uninstall the previous mamba)

zhkyaaa commented 4 months ago

It seems that you need to install the mamba inside this repo using pip3 install -e mamba. (uninstall the original mamba first)

i have the same problem i cant use pip install -e causal_conv1d>=1.1.0 and pip install -e mamba-1p1p1 so i download this two project locally and pip wheel,it worked but now i meet this problem

bingo-G commented 4 months ago

I have the same issue. Can someone please provide a fix?

I tried another solution and it worked for me:

Firstly, install from the .whl file. wget https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.1.3.post1/causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl wget https://github.com/state-spaces/mamba/releases/download/v1.1.1/mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl

Then replace the mamba_ssm installed in the Conda environment with the official project's mamba_ssm. conda env list cp -rf Vim-main/mamba-1p1p1/mamba_ssm /home/liyhc/anaconda3/envs/mamba/lib/python3.10/site-packages

I solved the problem in your way

sahsaeedi commented 3 months ago

I have the same issue. Can someone please provide a fix?

I tried another solution and it worked for me:

Firstly, install from the .whl file. wget https://github.com/Dao-AILab/causal-conv1d/releases/download/v1.1.3.post1/causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl wget https://github.com/state-spaces/mamba/releases/download/v1.1.1/mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install causal_conv1d-1.1.3.post1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl pip install mamba_ssm-1.1.1+cu118torch2.1cxx11abiFALSE-cp310-cp310-linux_x86_64.whl

Then replace the mamba_ssm installed in the Conda environment with the official project's mamba_ssm. conda env list cp -rf Vim-main/mamba-1p1p1/mamba_ssm /home/liyhc/anaconda3/envs/mamba/lib/python3.10/site-packages

still have a problem.