Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module found error #207

Closed
kamisama-coder opened this issue Feb 28, 2025 · 1 comment
Closed

No module found error #207

kamisama-coder opened this issue Feb 28, 2025 · 1 comment

Comments

@kamisama-coder
Copy link

i running the code tools/eval.py but the below error is showing up in cmd

Traceback (most recent call last):
File "tools/eval.py", line 14, in
from stereo.modeling import build_trainer
File "C:\Users\sanid\Downloads\airsim\openstereo.\stereo\modeling_init_.py", line 17, in
from .models.nmrf.trainer import Trainer as NMRFTrainer
File "C:\Users\sanid\Downloads\airsim\openstereo.\stereo\modeling\models\nmrf_init_.py", line 6, in
from .NMRF import build
File "C:\Users\sanid\Downloads\airsim\openstereo.\stereo\modeling\models\nmrf\NMRF.py", line 9, in
from .utils.frame_utils import InputPadder, downsample_disp
File "C:\Users\sanid\Downloads\airsim\openstereo.\stereo\modeling\models\nmrf\utils\frame_utils.py", line 15, in
from ..ops.functions import downsample
File "C:\Users\sanid\Downloads\airsim\openstereo.\stereo\modeling\models\nmrf\ops\functions_init_.py", line 9, in
from .ms_deform_attn_func import MSDeformAttnFunction
File "C:\Users\sanid\Downloads\airsim\openstereo.\stereo\modeling\models\nmrf\ops\functions\ms_deform_attn_func.py", line 11, in
import MultiScaleDeformableAttention as MSDA
ModuleNotFoundError: No module named 'MultiScaleDeformableAttention'

@XiandaGuo
Copy link
Owner

If you want to train/eval NMRF-Stereo, you need to build deformable attention and superpixel-guided disparity downsample operator:
cd stereo/modeling/models/nmrf/ops && sh make.sh && cd ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants