Git Product home page Git Product logo

Comments (5)

hello7623 avatar hello7623 commented on August 24, 2024 2

you can try add

import sys
sys.path.append('./')

to tools/train.py
I solved it by doing this

from lanesegnet.

sephyli avatar sephyli commented on August 24, 2024

There might be a pesky bug lurking in either the mmcv series package or torch. This issue has haunted me at some points in my life, but now, I am unable to reproduce it now across multiple machines with different systems (CentOS 7 and Ubuntu 20.04).

I highly recommend exploring other combinations of these packages. If you'd like, I have an alternative compatible environment that you could give a shot:

torch==2.0
torchvision==0.15.0
mmcls==0.25.0
mmcv-full==1.6.0
mmdet==2.26.0
mmdet3d==1.0.0rc6
mmsegmentation==0.29.1
with CUDA 11.7/11.8

You might consider compiling mmcv/mmdet/mmdet3d on your own for compatiblity. Additionally, feel free to experiment with different versions of torch.

from lanesegnet.

Zhutianyi7230 avatar Zhutianyi7230 commented on August 24, 2024

I meet the same problem when import 'project.lansegnet' using the function import_module.

from lanesegnet.

sephyli avatar sephyli commented on August 24, 2024

I meet the same problem when import 'project.lansegnet' using the function import_module.

If your error looks like: ModuleNotFoundError: No module named 'projects':
Please add export PYTHONPATH="Path/to/LaneSegNet/":$PYTHONPATH in the dist_train.sh shell script or your .bashrc file.

If your error looks like: Segmentation fault (core dumped):
Trying another environment may be helpful.

from lanesegnet.

xD-Jie avatar xD-Jie commented on August 24, 2024

There might be a pesky bug lurking in either the mmcv series package or torch. This issue has haunted me at some points in my life, but now, I am unable to reproduce it now across multiple machines with different systems (CentOS 7 and Ubuntu 20.04).

I highly recommend exploring other combinations of these packages. If you'd like, I have an alternative compatible environment that you could give a shot:

torch==2.0
torchvision==0.15.0
mmcls==0.25.0
mmcv-full==1.6.0
mmdet==2.26.0
mmdet3d==1.0.0rc6
mmsegmentation==0.29.1
with CUDA 11.7/11.8

You might consider compiling mmcv/mmdet/mmdet3d on your own for compatiblity. Additionally, feel free to experiment with different versions of torch.

I have tried to install the envs following your recommend, but failed to build mmcv-full with error message

"ERROR: Could not build wheels for mmcv-full, which is required to install pyproject.toml-based projects"

It seems a very common issue to install mmcv, then I tried many suggests from other issues(such as replace pip by mim) but still not work. Coculd you please show your installation instructions as reference? Here is my full installtion instructions.

pip install torch==2.0+cu117 torchvision==0.15.0+cu117 -f https://download.pytorch.org/whl/torch_stable.html
pip install -U openmim
mim install mmcv-full==1.6.0     <-- failed
mim install mmcls==0.25.0 mmdet==2.26.0 mmdet3d==1.0.0rc6 mmsegmentation==0.29.1

from lanesegnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.