princeton-vl / RAFT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named 'utils.utils'

Bobby-youngking opened this issue · comments

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 ?

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