Open moeinheidari7829 opened 1 month ago
Oops! It is a deprecated class. We now delete it.
Thank you for the prompt response; that error disappeared. However, another module is missing as follows, could you please upload the last error-free code you ran without the deprecated modules?
28 │
│ 29 from copy import deepcopy │
│ 30 │
│ ❱ 31 from mamba_ssm import Mamba │
│ 32 from mamba_attn_diff.models.adapter_attn4mamba import token_dropout │
│ 33 │
│ 34 from .normalization import * │
│ │
│ init.py:3 in
To solve this issue, You need to successfully install and compile Mamba:
pip install causal-conv1d==1.2.0.post2 # The version maybe different depending on your cuda version
CAUSAL_CONV1D_FORCE_BUILD=TRUE pip install --user -e .
In our README, we have updated our Installation section and we also prepared a subsection named Frequently Asked Questions. You can also refer to that new Installation section for answers.
Note: Please download the new README file into your project directory for correct compilation.
We have tested our released code on our server from scratch today, and it works well for now. If you still encounter issues, feel free to ask us 😊.
Dear authors, thank you for the good work and open-sourcing the code, can you please provide the S6MModule in the code, once running the training script, I am facing an error as follows:
/home/moein/Desktop/Diffusion-mamba/DiM-DiffusionMamba/mamba_attn_diff/models/adapter_attn4mamba │ │ .py:14 in │
│ │
│ 11 from einops import rearrange, repeat │
│ 12 │
│ 13 from diffusers.models.embeddings import SinusoidalPositionalEmbedding, get_2d_sincos_pos │
│ ❱ 14 from .s6m_module import S6MModule │
│ 15 │
│ 16 try: │
│ 17 │ from causal_conv1d import causal_conv1d_fn, causal_conv1d_update │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ModuleNotFoundError: No module named 'mamba_attn_diff.models.s6m_module'