Comments (5)
you can try add
import sys
sys.path.append('./')
to tools/train.py
I solved it by doing this
from lanesegnet.
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.
I meet the same problem when import 'project.lansegnet' using the function import_module
.
from lanesegnet.
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.
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)
- ms_deform_attn_impl_forward implementation for cuda not found HOT 1
- Temporal fusion HOT 2
- --show option error HOT 2
- 兄弟 ,你这个跟maptr有什么区别么 [无意引战,关闭issue了,主要是没太get到与maptr的区别] HOT 2
- potential bug in loading pipeline HOT 1
- dist_test.sh error HOT 2
- Migrate data to map element detection HOT 7
- any tutorial to convert Argoverse V2 data into lane segment annotation? HOT 1
- Performance of LaneSegNet for Map Element Bucket HOT 1
- point cloud range change,only use front camera HOT 1
- About evaluation results
- Question about evaluation code HOT 3
- The det_t is only 36.09. HOT 1
- wrong in the corner and how to visualize bev features? HOT 1
- EOFError: Ran out of input
- how to detect the curb HOT 1
- LaneSegNet-tiny and LaneSegNet HOT 1
- Cannot export ONNX model using mmdet v2.26.0
- Evaluation of TopoNet in the paper HOT 1
- How can I train and evaluate the model using only one GPU?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lanesegnet.