Skip to content

Commit

Permalink
Refactor viz tool & Add DMv2 InfoWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
gaodechen committed Jan 8, 2025
1 parent b6fe4aa commit 23c678d
Show file tree
Hide file tree
Showing 18 changed files with 433 additions and 357 deletions.
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,3 @@ repos:
hooks:
- id: yapf
args: ["--style", "{column_limit: 150, align_closing_bracket_with_visual_indent: true, dedent_closing_brackets: true}"]

- repo: https://github.com/executablebooks/mdformat
rev: 0.7.17
hooks:
- id: mdformat
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Unleash the power of **imagination** and **generalization** of world models for
> - **July 2024:** Uploaded all the task checkpoints to [HuggingFace](https://huggingface.co/ucd-dare/CarDreamer/tree/main)
> - **May 2024** Released [arXiv preprint](https://arxiv.org/abs/2405.09111).
## **Can world model based self-supervised reinforcement learning train autonomous driving agents via imagination of traffic dynamics? The answer is YES!**
## **Can world model based reinforcement learning train autonomous driving agents via imagination of traffic dynamics? The answer is YES!**

Integrating the high-fidelity CARLA simulator with world models, we are able to train a world model that not only learns complex environment dynamics but also have an agent interact with the neural network "simulator" to learn to drive.

Expand Down
2 changes: 1 addition & 1 deletion car_dreamer/carla_follow_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,4 +191,4 @@ def get_terminal_conditions(self):
if dist > terminal_config.terminal_dist:
info["terminal_dist"] = True

return info
return info
1 change: 0 additions & 1 deletion car_dreamer/configs/common.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
env:
eval: False
require_carry: False

world:
carla_port: 2000
Expand Down
2 changes: 1 addition & 1 deletion car_dreamer/configs/tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,4 +437,4 @@ carla_follow:
encoder.cnn_keys: "birdeye_wpt"
decoder.cnn_keys: "birdeye_wpt"
decoder.cnn_kernels: [5, 5, 5, 6, 6]
train.log_keys_video: [birdeye_wpt]
train.log_keys_video: [birdeye_wpt]
2 changes: 2 additions & 0 deletions car_dreamer/toolkit/carla_manager/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ class Command(Enum):
Left = "Left"
Right = "Right"


class FollowDirections(Enum):
"""Enumeration for the follow task directions"""

STRAIGHT = 0
RIGHT_TURN = 1
LEFT_TURN = 2
Expand Down
Loading

0 comments on commit 23c678d

Please sign in to comment.