Coder Social home page Coder Social logo

Comments (3)

praveen-palanisamy avatar praveen-palanisamy commented on June 1, 2024

Hi @Panshark , apologies for the delayed response. Unfortunately, pygame objects cannot be pickled. Any replacement for pygame (to render/display to screen) will also likely use objects that cannot be pickled.
Could you explain your use case and use of multiprocessing? There is likely other ways to achieve the parallelization/multiprocessing you are looking for.

from macad-gym.

Panshark avatar Panshark commented on June 1, 2024

Hi @praveen-palanisamy ,

In the beginning, I tried to train a meta reinforcement learning network for Carla, so I need to use multiprocessing to due with the inner sampling of meta-rl. However, since I am questioning whether meta could work in such a complex task as autonomous driving or not, I did not continue to experiment on the Meta network. If you have any information about this idea, please tell me, really thank you.

Now I am trying to design some continuous changing environment in Carla, do you have any example of how do we define the weather changing using cloudy, precipitation, precipitation deposits, and wind intensity? Like, give it a changing function to simulate the weather change in our true world. Also, I will be really grateful if you can share any information about this question.

Best Regards

from macad-gym.

praveen-palanisamy avatar praveen-palanisamy commented on June 1, 2024

Hi @Panshark ,
Thank you for explaining your use case.
You can randomize the weather in each of the training episode by customizing the "weather_distribution" config in the scenario definition for example, you could change this line:

"weather_distribution": [0],

to include multiple weather conditions like this:
"weather_distribution": [0, 1, 2, 3, 4],
Where the weather integer enum values are described as below:
WEATHERS = {
0: carla.WeatherParameters.ClearNoon,
1: carla.WeatherParameters.CloudyNoon,
2: carla.WeatherParameters.WetNoon,
3: carla.WeatherParameters.WetCloudyNoon,
4: carla.WeatherParameters.MidRainyNoon,
5: carla.WeatherParameters.HardRainNoon,
6: carla.WeatherParameters.SoftRainNoon,
7: carla.WeatherParameters.ClearSunset,
8: carla.WeatherParameters.CloudySunset,
9: carla.WeatherParameters.WetSunset,
10: carla.WeatherParameters.WetCloudySunset,
11: carla.WeatherParameters.MidRainSunset,
12: carla.WeatherParameters.HardRainSunset,
13: carla.WeatherParameters.SoftRainSunset,
}

If you want to change the weather dynamically within each of the episodes (not recommended), you can use the CARLA API directly. Sample script to dynamically change weather is provided here: Dynamic Weather

Converting this question to a GitHub discussion. Mark as answered if you got answer to your question.

from macad-gym.

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.