Giter Site home page Giter Site logo

Segmentation failed about transfuser HOT 10 CLOSED

Oliverwang11 avatar Oliverwang11 commented on June 24, 2024
Segmentation failed

from transfuser.

Comments (10)

SY-LG avatar SY-LG commented on June 24, 2024 1

BTW, the version relationships are kind of ambiguous for pytorch and mmcv stuffs, sometimes even need to test it yourself.
You can try this setup, it works fine for me.

  • ubuntu 22.04
  • nvidia-smi:12.0
  • sudo apt install -cuda-toolkit:10.1
  • torch: 1.8.1+cu101
  • torch-scatter: 2.0.7
  • torchaudio: 0.8.1
  • torchvision: 0.9.1
  • mmcv-full: 1.71
  • timm: 0.3.2
  • mmdet: 2.26.0
  • py-trees: 0.8.3

from transfuser.

Kait0 avatar Kait0 commented on June 24, 2024

Segmentation faults are hard to analyse. I would suggest you use a debugger or print statements to find the line of code that crashes, than we can help you better.

from transfuser.

Oliverwang11 avatar Oliverwang11 commented on June 24, 2024

Thanks I will try!

from transfuser.

Oliverwang11 avatar Oliverwang11 commented on June 24, 2024

It seems like the crash is in self.module_agent = importlib.import_module(module_name) when importing the module_name which is submission_agent.
BTW I run the evaluation in my own computer with a GTX3060 GPU-6GB and 16 GB RAM

from transfuser.

Kait0 avatar Kait0 commented on June 24, 2024

hm that is strange line is just trying to import the agent py file.
Are you using the conda environment from this repository?
WORK_DIR is the work dir variable in the script correct (e.g. does module_name point to the correct file?)
Maybe some second order import problem. If the submission_agent file is executed can you check how far it gets?

from transfuser.

Oliverwang11 avatar Oliverwang11 commented on June 24, 2024

Hi thanks for your reply, the work dir seems fine.
I went deep into the submission_agent.py file it seems like the code crashed at from model import LidarCenterNet when trying to load the LidarCenterNet

from transfuser.

Kait0 avatar Kait0 commented on June 24, 2024

Failing somewhere specific within LidarCenterNet?

You can try commenting this line. It sometimes makes problems since it depends on an external cuda lib. Its optional for an ablation so its fine to turn it off.

from point_pillar import PointPillarNet

from transfuser.

Oliverwang11 avatar Oliverwang11 commented on June 24, 2024

Aha after I comment this line from point_pillar import PointPillarNet the crash disappear, but there is another problem pop up
seems like the town map is loaded but the ego car haven't shown.

./leaderboard/scripts/local_evaluation.sh /home/oliverwang/Desktop/transfuser/carla /home/oliverwang/Desktop/transfuser
/home/oliverwang/Desktop/transfuser/leaderboard/leaderboard/leaderboard_evaluator_local.py:89: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(dist.version) < LooseVersion('0.9.10'):
/home/oliverwang/Desktop/transfuser
-----submission_agen line 209
-----submission_agen line 16
-----submission_agen line 18
-----submission_agen line 20
-----submission_agen line 21
-----submission_agen line 209
-----submission_agen line 209
Registering the global statistics

Do you have any clue? Thanks!

from transfuser.

Kait0 avatar Kait0 commented on June 24, 2024

"-----submission_agen line" I suppose these are your debug prints.
I don't see an error here. these are just warnings and prints.
It might be that you need to delete the results.json file, because the code thinks it already finished all routes.

from transfuser.

SY-LG avatar SY-LG commented on June 24, 2024

I came accross this segmentation days before. Check if your cuda and pytorch stuff versions matches.

d at from model import LidarCenterNet when trying to load the LidarCenterNet

To check if you are facing the same situation as mine, you can trace even further, and eventually it would turn out that the segmentation fault take place somewhere irrelevant with transfuser but relevant with pytorch stuff

from transfuser.

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.