Update basicsr/archs/mair_arch.py
Browse files
basicsr/archs/mair_arch.py
CHANGED
|
@@ -8,10 +8,10 @@ from functools import partial
|
|
| 8 |
from typing import Optional, Callable
|
| 9 |
from timm.models.layers import DropPath, to_2tuple, trunc_normal_
|
| 10 |
try:
|
| 11 |
-
from
|
| 12 |
except Exception:
|
| 13 |
# CPU fallback (slow)
|
| 14 |
-
from
|
| 15 |
selective_scan_fn = selective_scan_ref
|
| 16 |
from einops import rearrange, repeat
|
| 17 |
import time
|
|
|
|
| 8 |
from typing import Optional, Callable
|
| 9 |
from timm.models.layers import DropPath, to_2tuple, trunc_normal_
|
| 10 |
try:
|
| 11 |
+
from mamba-main.mamba_ssm.ops.selective_scan_interface import selective_scan_fn, selective_scan_ref
|
| 12 |
except Exception:
|
| 13 |
# CPU fallback (slow)
|
| 14 |
+
from mamba-main.mamba_ssm.ops.selective_scan_interface import selective_scan_fn, selective_scan_ref
|
| 15 |
selective_scan_fn = selective_scan_ref
|
| 16 |
from einops import rearrange, repeat
|
| 17 |
import time
|