-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: No to_python (by-value) converter found for C++ type: class std::vector<unsigned char,class std::allocator<unsigned char> > #3
Comments
Hello @RimelMj This is a weird error. Maybe It' the carla version that you are using... Perhaps If you download the latest version of Carla (0.9.11), in which i wrote the scripts, then the error is fixed. |
I am using Carla.0.9.9.4 version, I'll try the latest one thank you! |
Yes, please, and tell me if this solution worked for you |
It worked fine thank you for your help! |
Hi again! I have another question. |
Hello, https://carla.readthedocs.io/en/latest/build_docker/ Another solution to this is to store the replay buffer on disk alongside with the agent's policy. Once You start the simulation again, the agent will be trained from the point it crashed. It is demonstrated here: |
Thank you for your solutions :) May I ask how much time did it take you to reach convergence ? |
C51 Agent makes complicated computations, which means It takes lots of time. More than 250000 steps are required. If You have a fast GPU that won't be a problem. If You can't wait that long, then You would have to disable the rendering as I mentioned above. Another Thing You might wanna try is use another agent. From my experience, PPOAgent is quite faster than this agent and can achieve astonishing results as fast as C51. I have made an example of how to use this agent here: https://github.com/kochlisGit/DRL-Frameworks/blob/main/tf-agents/ppo_train.py I haven't been tested it on Autonomous Driving yet, but on OpenAI Gym the PPOAgent sometimes achieves the same results as C51, but faster. |
Well I am working on Windows and I am using a CPU so I guess that's why the training is so slow. |
Well, Unless You are willing to wait 1-2 weeks, You will have to use one of the above solutions. You are training a vehicle here... |
Yes, I'll use the checkpoint policy saver! Thank you! |
Hi, thank you for sharing your work! It's been really helpful.
Unfortunately I have this error when I run "python straight_lane_agent_c51_training.py".
lambda sensor_data: self._sensor_callback(SensorType.COLLISION_DETECTOR, sensor_data)
File "D:\Carla9.9\WindowsNoEditor\PythonAPI\code\agent\simulation\simulation.py", line 140, in _sensor_callback
data = sensor_data.other_actor.semantic_tags
TypeError: No to_python (by-value) converter found for C++ type: class std::vector<unsigned char,class std::allocator >
Can you please help me? Thank you.
The text was updated successfully, but these errors were encountered: