Beniko95J / MLF-VO

Multi-Layer Fusion Visual Odometry
GNU General Public License v3.0
20 stars 3 forks source link

ModuleNotFoundError: No module named 'layers' #1

Closed arkinrc closed 2 years ago

arkinrc commented 2 years ago

Hi, Got this error, installed layers using pip but in vain. complete error is given below;

File "/home/ubuntu/Music/MLF-VO/run_odometry.py", line 15, in <module> from third_party.monodepth2.networks import ResnetEncoder File "/home/ubuntu/Music/MLF-VO/third_party/monodepth2/networks/__init__.py", line 2, in <module> from .depth_decoder import DepthDecoder File "/home/ubuntu/Music/MLF-VO/third_party/monodepth2/networks/depth_decoder.py", line 14, in <module> from layers import * ModuleNotFoundError: No module named 'layers'

Regards arkin

rginpan commented 2 years ago

@arkinrc I met the same problem, could u plz tell me how do u solve it? thanks!

arkinrc commented 2 years ago

@arkinrc I met the same problem, could u plz tell me how do u solve it? thanks!

change the layers.py path from thirdparty monodepth2 or put this file into networks folder of monodepth2. Hopefully problem will be solved.

Arkin

rginpan commented 2 years ago

@arkinrc Thanks for quick reply, I put all the function in layer.py to the file which import layer