Comments (14)
No. The Reward functions aren't expected to be modified by/from the Agent algorithm/library.
Reward functions are defined in/by the RL environment. In this case, in the Macad-Gym environments.
from macad-agents.
Hi @AizazSharif ,
Could you post your training logs to see the status of your training runs?
Once the agents are trained, you can test their learned policies in a single instance of the environment (with rendering enabled) to visualize how the cars are controlled by the Agents.
from macad-agents.
Please find the logs below
output.txt
Also, I used env_config["env"]["render"] = False to disable the rendering but its still enabled.
from macad-agents.
And below are the logs maintained by Macad-agents.
macad-gym.log
server_36779.log
server_46275.log
server_51703.log
server_52455.log
from macad-agents.
Thanks for the logs. Could you post this file?: /home/aizaz/ray_results/MA-Inde-IMPALA-SSUI3CCARLA/IMPALA_HomoNcomIndePOIntrxMASS3CTWN3-v0_0_2021-02-24_08-37-426o165tlh/error_2021-02-24_08-40-09.txt
That's where the errors seemed to be logged to.
from macad-agents.
Please find the attached logs you mentioned.
from macad-agents.
@praveen-palanisamy
From what I have observed, impala code within macad agents stops in each epoch due to shape tensor mismatch even when I run the code on default parameters.
from macad-agents.
It looks like a proper observation pre-processor is not registered with RLLib to resize the observation images (shape: (168, 168, 3)
) to RLLib's default Conv layer input shape (84, 84, 3)
. I can push a fix tomorrow.
Meanwhile, you can just change the MACAD-Gym env config (In this file for example) listed below:
"x_res": 168,
"y_res": 168,
To 84
for all the Actors.
from macad-agents.
Thanks, I will try this change.
Also, I wanted to ask is it possible to add your own reward function within macad-agents?
from macad-agents.
Makes sense. Thanks for clarifying.
I will try out the change and let you know.
from macad-agents.
I have tried changing Actors x and y dimensions to 84 but it's still giving an error.
ValueError: Cannot feed value of shape (1, 168, 168, 3) for Tensor 'car1/Placeholder:0', which has shape '(?, 84, 84, 3)'
from macad-agents.
Hi @AizazSharif ,
I pushed an update that should fix the issue you are facing. Could you try running on your side and confirm?
from macad-agents.
I reinstalled the whole environment and github repo but the error is still there. The logs are from today's testing.
The command is: python -m macad_agents.rllib.impala_agent_independent
from macad-agents.
I ran python -m macad_agents.rllib.ppo_multiagent_shared_weights and its working fine without errors. But in impala_agent_independent.py the bug might still persist.
from macad-agents.
Related Issues (12)
- ModuleNotFoundError: No module named 'macad_gym.envs.intersection.stop_sign_urban_intersection_3c' HOT 8
- Macad agent scripts running out of resouces HOT 1
- Inputs HOT 1
- `conda install numpy` won't finish forever HOT 1
- `conda install numpy` won't finish forever HOT 1
- How to run it without using docker? HOT 15
- is the continuous_a3c code valid?
- How to run baseline agent? HOT 12
- confusion about Baseline_agent HOT 5
- ModuleNotFoundError: No module named 'env' HOT 1
- Ray error when running continuous A3C HOT 1
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 macad-agents.