apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Running perception module on CPU

Open kikacaty opened this issue 8 years ago • 17 comments

Is it possible? I can change the rosbag time stamp to resolve the latency issue.

kikacaty avatar Jan 17 '18 07:01 kikacaty

The default apollo.sh build is CPU version. It should work except the lower speed.

lianglia-apollo avatar Jan 17 '18 07:01 lianglia-apollo

@lianglia-apollo I tried to run perception node in both dreamview and through scripts but it failed, even if I replay the messages from the sensors. Is it possible to find the error log somewhere? Thanks!

kikacaty avatar Jan 17 '18 18:01 kikacaty

The error log is placed under data/log/perception.xxxx

lianglia-apollo avatar Jan 17 '18 23:01 lianglia-apollo

@lianglia-apollo Thanks! I found the log but it turns out to have been caught by core dumped error of Illegal instruction. Any clue on that?

kikacaty avatar Jan 18 '18 20:01 kikacaty

Could you post the core information? Meanwhile, let me ask someone in perception team to help.

lianglia-apollo avatar Jan 19 '18 00:01 lianglia-apollo

@lianglia-apollo I am running the following script extracted from apollo_base.sh

nohup /apollo/bazel-bin/modules/perception/perception --flagfile=modules/perception/conf/perception.conf  --log_dir=/apollo/data/log perception perception </dev/null >/apollo/data/log/perception.out 2>&1 &

And the error would be

[1]+ Illegal instruction (core dumped) nohup /apollo/bazel-bin/modules/perception/perception --flagfile=modules/perception/conf/perception.conf --log_dir=/apollo/data/log perception perception < /dev/null > /apollo/data/log/perception.out 2>&1

Thanks!

kikacaty avatar Jan 19 '18 02:01 kikacaty

@kikacaty I recommend you follow the howto document How to Run Perception Module on Your Local Computer to run the perception module. Then let's see what will happen.

xiaohuitu avatar Jan 19 '18 09:01 xiaohuitu

@xiaohuitu I actually tried that before but failed since we cannot install Nvidia driver without such device.

kikacaty avatar Jan 20 '18 21:01 kikacaty

@kikacaty The answer is no, Baidu team tend to ignore this issue every time. They tend use 'Just follow the guide' as a trick. @xiaohuitu

This guide says you can't launch the visulizer without a GPU driver even if you build with CPU mode. I can percept that if Baidu team continue ignoring those fatal issues, Apollo platform will become a burning house eventually. As it's obvious that over 10 months there were only 150 issues reported and most of them stay unsolved -- not so many team are insisting on Apollo and not so many team can understand Apollo because of it's lacking proper documentation.

Team apollo, if you decide to put it open source, you should open all the documentation to us instead of hiding from our challenge on the code.

Please make it clear and simple :-1:

JonathanJones92 avatar Jan 21 '18 09:01 JonathanJones92

@JonathanJones92 Please behave in a proper manner.

There are indeed some documents that might be outdated or need to be improved. We are working on it and as you can see in the thread the team is really trying to help.

It just take us sometime to re-produce or debug each individual specific problem. And I believe contributing back or helping update the documents are more beneficial ways of improving the community and help people with similar questions to resolve the issues faster next time. Like this one does: https://github.com/ApolloAuto/apollo/commit/3ef3cf4966a6e66b8e8ea269252d20371a78263c

Thanks

Capri2014 avatar Jan 21 '18 11:01 Capri2014

@Capri2014 Hi Luo,

I would say I neither curse nor swear in my comments above. If you feel offend. Please accept my sincerely apologize.

I contributed in many ways. As I'm based in the UK, I made many translations from mandarin to English for Apollo and promote Apollo in my community.

Most of my colleagues feel disappointing for Apollo community as there are a barrier between non-Baidu developers and Baidu Team. Many issues were not closed for a certain answer, it's hard for us to get a solution from the blog! And most of all, it's time-wasting.

Dear Mr Luo, can we just go back to our issues with Apollo platform and kindly check with the issues I reported. If you can give me a clear answer, I would make a commitment to the documentations hopefully.

Regards, John

JonathanJones92 avatar Jan 21 '18 11:01 JonathanJones92

@xiaohuitu Now I have switched to a server with GPU support. I found the tutorial for running perception module locally has several incorrect instructions. First, nvidia requires the version of driver to be consistent (the most updated version is 384). Second, the command ./docker/scripts/dev_start.sh NEW_DOCKER_IMAGE_TAG seems to be deprecated?

Now that even I have installed the correct version of driver inside the docker, it prompts that the installation needs a reboot to finish. I don't have a clue of how to do that in docker (I tried restart docker and reboot the host, neither worked). Then I found this nvidia docker which might help. I will post follow up if I have any progress on that.

Thanks!

kikacaty avatar Jan 22 '18 19:01 kikacaty

@kikacaty Please try to install driver version 384.111 for both inside and outside docker. It works on my computer. We will update driver versions soon.

lianglia-apollo avatar Jan 22 '18 19:01 lianglia-apollo

@lianglia-apollo Good to know it works. Would you mind sharing how did you reboot the docker after the installation of the driver? Did you install it through binary (as in the tutorial) or through apt-get? Thanks!

kikacaty avatar Jan 23 '18 18:01 kikacaty

@lianglia-apollo I'm also desired to know more details on installing GPU driver inside docker. Also, there is a conflict between the driver and Apollo kernel

JonathanJones92 avatar Jan 25 '18 02:01 JonathanJones92

Successfully start the perception module but with failure shown below running with the sensors demo:

E0129 21:32:23.468047 26714 transform_input.cc:69] Cannot transform frame: world to frame localization , err: . canTransform returned after 1.0472e-05 timeout was 0.1.. canTransform returned after 0.100667 timeout was 0.1.. 

Any idea about the timing out?

kikacaty avatar Jan 30 '18 02:01 kikacaty

I found it is due to not initiating Localization module.

kikacaty avatar Jan 30 '18 04:01 kikacaty