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

ModuleNotFoundError: No module named 'utils.utils' #173

Open
Bobby-youngking opened this issue Oct 13, 2023 · 2 comments
Open

ModuleNotFoundError: No module named 'utils.utils' #173

Bobby-youngking opened this issue Oct 13, 2023 · 2 comments

Comments

@Bobby-youngking
Copy link

File "demo2.py", line 12, in
from raft import RAFT
File "/mnt/date1/wb_workspace/foshan/RAFT-master/core/raft.py", line 8, in
from corr import CorrBlock, AlternateCorrBlock
File "/mnt/date1/wb_workspace/foshan/RAFT-master/core/corr.py", line 3, in
from utils.utils import bilinear_sampler, coords_grid
ModuleNotFoundError: No module named 'utils.utils'
can anyone help me ?

@noelshin
Copy link

I've encountered the same error. I think by this time you perhaps have figured it out, but as a future reference for other people who run into the same issue:

Adding "core." before the import line that starts with "utils" would fix it. For example,

change
from utils.utils import bilinear_sampler, coords_grid
to
from core.utils.utils import bilinear_sampler, coords_grid

@Jdiaz031
Copy link

If raft from RAFT is working appropriately, I would suggest replacing

from utils.utils import bilinear_sampler, coords_grid

with

from raft.utils.utils import bilinear_sampler, coords_grid

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

3 participants