pangsu0613 / CLOCs

CLOCs: Camera-LiDAR Object Candidates Fusion for 3D Object Detection
MIT License
351 stars 68 forks source link

no module named 'fusion' #27

Closed arxidinakbar closed 3 years ago

arxidinakbar commented 3 years ago

Hi, When I running train.py got another error as below:

Traceback (most recent call last):
  File "./pytorch/train.py", line 26, in <module>
    from second.pytorch.models import fusion
ImportError: cannot import name 'fusion'

'fusion.py' did exist in models folder, and I did add the CLOCs to the pythonpath.

Best luck

pangsu0613 commented 3 years ago

Maybe because you have multiple SECOND in your $PYTHONPATH, this could make the system confused, make sure you only have CLOCs in your pythonpath and remove other SECOND (such as SECOND-v1.5 or v1.6) from your $PYTHONPATH.

arxidinakbar commented 3 years ago

Hi, @pangsu0613 It is the case which you mentioned. But after remove the SECOND pythonpath, I still met this error (I did source ~/.bashrc)

Best luck

pangsu0613 commented 3 years ago

You could send me your ~/.bashrc (hide any personal info that you don't want me to see), and the result for running "echo $PYTHONPATH" in your terminal, and I could have a look.

arxidinakbar commented 3 years ago

Hi, thank you for generous helping! I've used remote server to training model. Somehow the source ~/.bashrc command did'nt work led to the error. I found original SECOND pythonpath in echo $PYTHONPATH return which bring the error. Now I could running train.py, all problem solved.

Best luck