Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
348 commits
Select commit Hold shift + click to select a range
118a731
Stable multi-agent & multi-world MAPPO on example scene with road lin…
daphne-cornelisse Apr 25, 2024
ab017eb
Ignore Pedestrians param (#95)
aaravpandya Apr 26, 2024
c8c995b
Add info tensor (#96)
aaravpandya Apr 30, 2024
26d71e5
Rotate vectors for egocentric POV (#97)
aaravpandya Apr 30, 2024
7ca4198
Export the entity type of the agent in Info Tensor (#98)
aaravpandya May 2, 2024
e2a5f51
Add a demo notebook (#93)
aaravpandya May 2, 2024
ceac6c7
Merge pull request #69 from Emerge-Lab/ap_docs
eugenevinitsky May 2, 2024
bfab110
Update Madrona to latest (#99)
SamanKazemkhani May 3, 2024
e08a959
Export render and depth tensors (#78)
aaravpandya May 4, 2024
aa8368a
Remove means from viewer (#102)
aaravpandya May 6, 2024
b92cdd9
Remove rescaling of agent coordinates (#101)
aaravpandya May 6, 2024
ebd586f
PyGame Renderer (#104)
aaravpandya May 7, 2024
3f2d96f
small number of changes to install (#107)
eugenevinitsky May 7, 2024
dfde44f
Replace wall clock with monotonic clock (#100)
SamanKazemkhani May 8, 2024
69de094
Introduce RoadEntityKNN (#106)
SamanKazemkhani May 9, 2024
8747ebd
Fix collision behaviours (#111)
aaravpandya May 12, 2024
b0b9a73
Improvements, env cleanup and scripts (#108)
daphne-cornelisse May 13, 2024
ad099cb
Update consts.hpp (#112)
aaravpandya May 14, 2024
ff8ca8b
Add bindings for KNN params (#117)
aaravpandya May 14, 2024
b36dc5e
Fix two bugs (#114)
SamanKazemkhani May 14, 2024
8c7868d
Check controlled state safely (#115)
aaravpandya May 14, 2024
ab60667
Runtime benchmark scripts and more (#116)
daphne-cornelisse May 15, 2024
2211ac6
Compute egocentric map obs (#118)
aaravpandya May 18, 2024
e9c82b8
Changed the padding position (#126)
aaravpandya May 21, 2024
24e2402
Mark agents as static if they spawn near goal (#125)
aaravpandya May 21, 2024
854afaf
Remove render mask and rescale (#129)
aaravpandya May 22, 2024
44083ab
Remove assertion (#124)
SamanKazemkhani May 22, 2024
f679257
fix renderer scale...I think (#131)
eugenevinitsky May 23, 2024
996d537
Dont init invalid agents at first time step. (#130)
aaravpandya May 23, 2024
f17029e
Add pytests (#127)
aaravpandya May 23, 2024
7f3e264
Teleport on agent done (#121)
aaravpandya May 23, 2024
ab183ac
Add camera entity (#120)
aaravpandya May 23, 2024
1f3493e
Bps/memory leak fix (#133)
eugenevinitsky May 24, 2024
bf93df3
tiny cleanup (#134)
eugenevinitsky May 25, 2024
5685212
Dont teleport static agents (#135)
aaravpandya May 25, 2024
dda80a5
Remove auto-reset (#137)
SamanKazemkhani May 28, 2024
a631a5d
Add current baseline agents (#140)
eugenevinitsky May 28, 2024
ab9a039
Change resetting so that a world resets when it is done. (#144)
eugenevinitsky May 30, 2024
9cfaf63
Remove all invalid agents from rollout buffer. Review after previous …
eugenevinitsky May 30, 2024
156873d
change padN to loop over files instead of just adding the first one (…
eugenevinitsky May 30, 2024
0ef92ed
Update bindings.cpp (#150)
aaravpandya May 30, 2024
d70c702
Fix bug in road map observation and one hot encode types. (#151)
daphne-cornelisse May 30, 2024
1a5f742
Add flag for Lidar (#123)
aaravpandya May 30, 2024
3e0df99
Unify ego-centric road observations (#143)
SamanKazemkhani May 30, 2024
6a0f4a8
Add egocentric renderings (#119)
aaravpandya May 30, 2024
f08d752
fix small render bug (#153)
eugenevinitsky May 31, 2024
a668892
Ev/fix render config (#154)
eugenevinitsky May 31, 2024
889b365
Remove allocated tensors to speed up rollouts (#152)
eugenevinitsky May 31, 2024
298d40b
[WIP] add perm invariant network but with lots of hardcoding (#141)
eugenevinitsky May 31, 2024
49990d0
add release build instructions (#156)
eugenevinitsky May 31, 2024
6cb8187
remove cache (#155)
eugenevinitsky May 31, 2024
8c2ef50
Env fixed and training config (#157)
daphne-cornelisse May 31, 2024
d9a3d67
Add filterRadius function (#158)
SamanKazemkhani May 31, 2024
3520c93
Eugene mistakenly decided the size of the heap was K but actually it …
eugenevinitsky May 31, 2024
aeecb22
add a rescale that slightly shrinks agent widths and lengths to move …
eugenevinitsky Jun 2, 2024
593a944
Grey static agents and disappear on done (#163)
aaravpandya Jun 3, 2024
98e45f4
Linear Search (#166)
aaravpandya Jun 3, 2024
78666fb
[WIP] Learning agents on 100 scenes to 90%, rendering improvements an…
daphne-cornelisse Jun 3, 2024
8bc681c
Param to disable obs if using lidar (#170)
aaravpandya Jun 4, 2024
5bde213
Add a static flag and restrict static agent movement (#147)
aaravpandya Jun 4, 2024
b76e4fa
Update README.md (#177)
aaravpandya Jun 6, 2024
e3e8d97
Fix typo (#175)
aaravpandya Jun 12, 2024
8753e99
Fix tests (#180)
aaravpandya Jun 12, 2024
4b25720
Training settings and updates used for the paper figures (#178)
daphne-cornelisse Jun 12, 2024
de14684
Revert "Training settings and updates used for the paper figures (#17…
daphne-cornelisse Jun 12, 2024
891c10f
Remove bicycle model struct (#179)
aaravpandya Jun 12, 2024
560b77e
Most up to date training branch without PR 172 (#182)
daphne-cornelisse Jun 12, 2024
1e02b26
Add evaluation script (#176)
aaravpandya Jun 12, 2024
080ebe2
Waymax model (#132)
aaravpandya Jun 12, 2024
e848413
Update LICENSE (#184)
SamanKazemkhani Jun 12, 2024
0e0a535
Rename static agents param (#185)
aaravpandya Jun 12, 2024
afaf8f1
Readme (#183)
aaravpandya Jun 13, 2024
3cd23f2
Use GFXDraw for better anti aliasing (#171)
aaravpandya Jun 14, 2024
4d08dd2
Add Jax base environment and basic gym docs (#186)
daphne-cornelisse Jun 15, 2024
ab63dd8
Introduce helper functions for rendering thickness (#187)
aaravpandya Jun 19, 2024
6297982
Fix warnings (#188)
SamanKazemkhani Jun 20, 2024
5cf6a59
Revert "Fix warnings (#188)" (#191)
SamanKazemkhani Jun 20, 2024
a828d75
Better GIFS and readme update (#189)
aaravpandya Jul 1, 2024
eaf88d5
GPUDrive introduction tutorials (#194)
daphne-cornelisse Jul 3, 2024
3e40fb7
Fix bug (#199)
daphne-cornelisse Jul 11, 2024
1303e75
Updated training settings (#197)
daphne-cornelisse Jul 22, 2024
6ea7607
Move input handling into Python (#202)
SamanKazemkhani Jul 23, 2024
028d7cb
Improve documentation and folder structure (#195)
daphne-cornelisse Jul 26, 2024
e17aacb
Zero out PartnerObservation and MapObservation (#206)
SamanKazemkhani Jul 31, 2024
ca2e7d8
Change test json file locations (#207)
aaravpandya Aug 1, 2024
33befe4
Add support for controlling vehicles with multiple different actors (…
daphne-cornelisse Aug 6, 2024
09440d9
Add arxiv link and other buttons (#208)
daphne-cornelisse Aug 6, 2024
ea9b754
Fix broken link (#209)
daphne-cornelisse Aug 6, 2024
054f60f
Better support for cross platform poetry install (#211)
aaravpandya Aug 8, 2024
217e886
Split reset into stand-alone TaskGraph (#192)
SamanKazemkhani Aug 14, 2024
97f781e
Contribution guidelines and wandb report (#213)
daphne-cornelisse Aug 19, 2024
03e1e57
Destroy simulator on closure (#224)
daphne-cornelisse Aug 20, 2024
9274bd1
Add a missing test (#212)
aaravpandya Aug 20, 2024
aa0cb81
Add support for light color scheme (#227)
daphne-cornelisse Aug 22, 2024
d9833b4
Align Constants in Python and C++ and Refactor Configuration Classes …
daphne-cornelisse Aug 30, 2024
dcdefd5
Add fun star tracker to repo (#233)
daphne-cornelisse Aug 30, 2024
08847a2
Fix headless to support the new scene initialization method (#232)
aaravpandya Aug 30, 2024
d38d002
Update DeltaModel (#228)
KevinJeon Sep 5, 2024
69855ff
Change delta to delta_local (#236)
KevinJeon Sep 6, 2024
8a3edb0
Fix sim speed benchmark (#240)
aaravpandya Sep 13, 2024
602cd4e
Fix invalid whitespace in bindings.cpp (#241)
aaravpandya Sep 15, 2024
0b5d2ab
[WIP] Unify actions in a single struct (#237)
aaravpandya Sep 16, 2024
94b1ce7
Add state dynamics model (#238)
aaravpandya Sep 16, 2024
301b198
Configurable reward as weighted combination (#231)
daphne-cornelisse Sep 16, 2024
afd44ff
Remove padding agents using interface entities (#103)
aaravpandya Sep 21, 2024
3fd101d
Rename build.py (#247)
aaravpandya Sep 23, 2024
f4d5e76
Changes for Lidar (#169)
aaravpandya Sep 25, 2024
8cf5f04
Debug DeltaModel python side (#250)
KevinJeon Sep 25, 2024
de94d47
Debug deltamodel in c++ side (#251)
KevinJeon Sep 26, 2024
cec6d87
Add minimal reproducible example for extracting and using expert traj…
daphne-cornelisse Sep 26, 2024
0c39997
Parse and propogate mark_as_static from input file (#256)
SamanKazemkhani Sep 30, 2024
8e5fb95
At initial reset make sure to not mark as done (#257)
aaravpandya Oct 1, 2024
065ab6c
Add controllability to pedestrians (#254)
aaravpandya Oct 1, 2024
b631970
Initial code from Kevin and some docs for downloading files.
daphne-cornelisse Oct 3, 2024
cd460fc
Working womd -> scenario script
daphne-cornelisse Oct 4, 2024
ef06d35
Make processed scenario compatible with simulator
daphne-cornelisse Oct 4, 2024
417da14
Add dataset to LFS
daphne-cornelisse Oct 4, 2024
2babddf
Add testing dataset
daphne-cornelisse Oct 4, 2024
42fc7ae
Fixes
daphne-cornelisse Oct 4, 2024
134543c
Finish description
daphne-cornelisse Oct 4, 2024
cebf3fc
typo
daphne-cornelisse Oct 4, 2024
c48213b
fixed processing loop
nadarenator Oct 5, 2024
dab1c4b
Change done_world condition (#261)
KevinJeon Oct 6, 2024
b5e29f1
removed debug log
nadarenator Oct 6, 2024
d4d4868
Code to match scenario ids waymax <> gpudrive
daphne-cornelisse Oct 7, 2024
fa53bb0
Merge branch 'feat/file_generation' of https://github.com/Emerge-Lab/…
daphne-cornelisse Oct 7, 2024
a7314df
Eval scripts and add pre-trained policy on 1000 scenes via Github lar…
daphne-cornelisse Oct 8, 2024
c3cb0ab
Docker File and Image (#246)
aaravpandya Oct 8, 2024
7ce2320
Update README.md with CUDA Reqs (#263)
aaravpandya Oct 8, 2024
3a711c2
Some changes for benchmarking (#258)
aaravpandya Oct 12, 2024
02c07d9
Add ID flag to agents (#266)
aaravpandya Oct 16, 2024
0d7a819
updated readme
nadarenator Oct 16, 2024
fe3f04e
Merge branch 'main' into feat/file_generation
nadarenator Oct 16, 2024
c17a5e3
Merge pull request #260 from Emerge-Lab/feat/file_generation
nadarenator Oct 16, 2024
d1de2fc
Integrate lidar observation into gym env and IPPO (#269)
daphne-cornelisse Oct 17, 2024
4749860
Reset net defaults (#272)
daphne-cornelisse Oct 17, 2024
b7a74cc
Untrack files from LFS (#273)
daphne-cornelisse Oct 17, 2024
3627a3b
Code refactor (#264)
aaravpandya Oct 17, 2024
1945db2
fix: fix bug of random scene selection and allow seed specification (…
zhengzl18 Oct 18, 2024
06a3870
Update tutorials (#275)
daphne-cornelisse Oct 19, 2024
eb52831
Dynamic files world reset (#265)
aaravpandya Oct 21, 2024
9df751e
Add road IDs and consistent road map ids to the JSON scenarios (#279)
daphne-cornelisse Oct 24, 2024
7673aca
Add ids to road objects (#282)
aaravpandya Oct 28, 2024
9d61844
Revert maxroadentity const to 6000 (#286)
aaravpandya Oct 28, 2024
0b30099
valid bug fix and mark static support
nadarenator Oct 19, 2024
7844700
obj trajectory fix
nadarenator Oct 23, 2024
bee1819
parallelized data processing
nadarenator Oct 23, 2024
fd181a7
marked static > expert
nadarenator Oct 23, 2024
68ff678
scene-level parallelization
nadarenator Oct 28, 2024
4c52d88
memory based batching
nadarenator Oct 29, 2024
b2de2a2
small redundancy
nadarenator Oct 30, 2024
43fc8f2
caveat
nadarenator Oct 30, 2024
061175e
no traffic lights
nadarenator Oct 30, 2024
390ad36
Set partner obs to zero for every agent idx (#285)
aaravpandya Oct 31, 2024
08b58ac
REFACTOR: get each part of obs seperately (#284)
zhengzl18 Oct 31, 2024
fb63862
speed update
nadarenator Oct 31, 2024
9f0071c
Add new MapType enum (#288)
aaravpandya Oct 31, 2024
a131d2d
docs
nadarenator Nov 4, 2024
22c2380
Merge pull request #276 from Emerge-Lab/feat/mark_static
nadarenator Nov 4, 2024
2e9930d
Pufferlib PPO (#281)
daphne-cornelisse Nov 5, 2024
5bf2498
Bug fix: Dynamics model cannot be pickled (#293)
daphne-cornelisse Nov 10, 2024
b205222
Refactor mean to singleton and export (#295)
aaravpandya Nov 13, 2024
661512c
Use data structures for better readability (#296)
daphne-cornelisse Nov 13, 2024
2965a73
Add global ego tensor (#298)
daphne-cornelisse Nov 18, 2024
5587c85
Fixed resets for viewer (#306)
aaravpandya Dec 5, 2024
9727472
PPO / RL improvements and new visualizer (#307)
daphne-cornelisse Dec 6, 2024
60e6560
Update consts.hpp (#310)
aaravpandya Dec 16, 2024
abf53cf
FIX: bugs of GlobalEgoState (#312)
zhengzl18 Dec 16, 2024
3dd752b
New dataset and metadata integration (#292)
daphne-cornelisse Dec 19, 2024
c4c9c8e
Hot fix: Update SB3 to use new visualizer code (#314)
daphne-cornelisse Dec 21, 2024
2d1f535
Add plot expert trajectories (#325)
KKGB Jan 23, 2025
a507776
Update manual.yml (#343)
aaravpandya Feb 8, 2025
80560dd
Merge dev into main for release v0.4.0 (#341)
daphne-cornelisse Feb 20, 2025
ed1daf4
Small fix (#357)
daphne-cornelisse Feb 20, 2025
b67d88f
device issues-> code didn't work on cpu (#358)
Thahit Feb 22, 2025
7f5f90e
Make masking optional in gym env (#360)
daphne-cornelisse Feb 24, 2025
502491e
[TUTORIALS] small fixes for tuto 2 and 3 (#363)
EllingtonKirby Feb 26, 2025
cb2a3de
updated imports
Thahit Feb 28, 2025
6725ad1
WIP
daphne-cornelisse Feb 21, 2025
efff683
Fix paths
daphne-cornelisse Feb 21, 2025
48b05b8
Ensure correct z-order for visualization
daphne-cornelisse Feb 21, 2025
95d4e4b
New default training settings
daphne-cornelisse Feb 21, 2025
a8d43c7
Code for pushing checkpoints to huggingface
daphne-cornelisse Feb 23, 2025
c30c0e8
Update trajectory color
daphne-cornelisse Feb 23, 2025
417e9f3
Change default # controlled agents
daphne-cornelisse Feb 24, 2025
682b0b5
Scripts to push models to huggingface
daphne-cornelisse Feb 24, 2025
171fecc
Cleanup and test eval script
daphne-cornelisse Feb 24, 2025
603811e
Minor eval fixes
daphne-cornelisse Feb 26, 2025
0920ae2
bunch
daphne-cornelisse Feb 27, 2025
de5a601
Clean up analysis notebooks
daphne-cornelisse Feb 27, 2025
59ea4fb
Update notebooks
daphne-cornelisse Feb 28, 2025
9d7e4d0
Wip
daphne-cornelisse Feb 28, 2025
9c3aaaa
Add sim agent tutorial
daphne-cornelisse Feb 28, 2025
97970bb
Restructure
daphne-cornelisse Feb 28, 2025
8a22243
Final cleanup and update readme
daphne-cornelisse Feb 28, 2025
7da8973
update string
daphne-cornelisse Feb 28, 2025
cb0124b
Merge pull request #364 from Emerge-Lab/dc/integrate_sim_agents
charliemolony Feb 28, 2025
c62e493
Merge pull request #365 from Emerge-Lab/ppo_imports
Thahit Mar 1, 2025
2523231
Fix broken path (#367)
daphne-cornelisse Mar 2, 2025
577df3e
Functional `jax` gymnasium environment (#368)
daphne-cornelisse Mar 3, 2025
639d332
editable reward
Thahit Mar 7, 2025
9fd1e3f
Merge pull request #370 from Emerge-Lab/ppo_imports
Thahit Mar 7, 2025
8217ac5
Scenario id as attribute of `SimManager` class (#372)
daphne-cornelisse Mar 11, 2025
4fac5b7
rendering on sb3
Thahit Mar 13, 2025
5ea276e
Merge pull request #376 from Emerge-Lab/ppo_imports rendering on sb3
Thahit Mar 13, 2025
47b7665
Support randomized rewards
daphne-cornelisse Mar 14, 2025
7b015ae
rmv artifacts
daphne-cornelisse Mar 14, 2025
204c97e
Merge pull request #378 from Emerge-Lab/dc/random_reward
charliemolony Mar 14, 2025
a79dc69
Revert "Support randomized rewards" (#379)
daphne-cornelisse Mar 14, 2025
44e1afa
Agent behavior diversity through reward conditioning (#380)
daphne-cornelisse Mar 15, 2025
d037e41
Tutorial 8: Rollout with multiple policies (#383)
charliemolony Mar 17, 2025
a0231de
Fix visualizer bug (#386)
charliemolony Mar 19, 2025
b695fba
update readme (#389)
nadarenator Mar 21, 2025
df9fbda
[FEATURE] Add Birds-Eye-View observation tensors (#390)
EllingtonKirby Mar 28, 2025
f9e09d6
Integrate Versatile Behavior Diffusion (VBD) model (#283)
daphne-cornelisse Mar 29, 2025
0978d4f
New initialization mode: Bypass simulator rules and control all `trac…
daphne-cornelisse Mar 31, 2025
e7ebef9
Fix policy loading bug (#393)
daphne-cornelisse Mar 31, 2025
1dce1e1
bug correction (#394)
Thahit Mar 31, 2025
6165cc9
always init sdc (#395)
nadarenator Apr 1, 2025
9473306
[REVERT] reverting usage of bev obs in get_obs (#396)
EllingtonKirby Apr 2, 2025
ae4d84c
Tell agents their size (#398)
daphne-cornelisse Apr 3, 2025
15959e2
Make VBD model imports optional (#397)
daphne-cornelisse Apr 3, 2025
cd65c0f
Add missing deps and CI (#400)
m-naumann Apr 4, 2025
65e234b
Remove outdated C++ test workflow (#401)
daphne-cornelisse Apr 4, 2025
dcbae0c
Fix road type encoding (#375)
KexianShen Apr 5, 2025
2c05a91
new agent init order (#408)
nadarenator Apr 8, 2025
c5f2b0f
[FIX] consistent seed in DL for ppo_pufferlib (#459)
EllingtonKirby Jun 3, 2025
1b20e10
Pin jaxlib (see #464) (#465)
m-naumann Jun 18, 2025
31ff913
[FEATURE] cherry-pick json parsing changes (#486)
EllingtonKirby Jul 4, 2025
20c0bc3
[FEATURE] cherry-pick TL states commit (#485)
EllingtonKirby Jul 5, 2025
e8fb56d
Revert "[FEATURE] cherry-pick json parsing changes (#486)" (#491)
m-naumann Jul 7, 2025
a0c9256
Revert "[FEATURE] cherry-pick TL states commit (#485)" (#492)
m-naumann Jul 7, 2025
7e5f961
Use `uv` as package manager (#493)
m-naumann Jul 7, 2025
1804755
Fix segfault and require cmake 3.24 (#497)
m-naumann Jul 10, 2025
9982998
Fix: Use CUDA 12.4 on Linux (#501)
m-naumann Jul 18, 2025
1e0a7bc
fix param
wangbingke0 Sep 4, 2025
ac09703
correct checker to be as same as argument's help message (#525)
ChampDBG Oct 2, 2025
ae40cde
Merge remote-tracking branch 'upstream/main' into wbk/gpudrive
wangbingke0 Oct 26, 2025
33027d0
引入注意力机制
wangbingke0 Oct 26, 2025
64689fc
Repaired a bug causing wrong agent ids in abs_self_obs (#530)
zerlinwang Dec 1, 2025
0272aa6
Merge remote-tracking branch 'upstream/main' into wbk/1026
wangbingke0 Jan 4, 2026
6375a84
重新训练新模型,当前增加转弯速度惩罚
wangbingke0 Jan 22, 2026
30c731c
删除转向减速惩罚
wangbingke0 Jan 22, 2026
94cd91f
全部推送
wangbingke0 Feb 13, 2026
c88ab2a
ignore GPUDrive_full
wangbingke0 Feb 13, 2026
16d7b4a
ignore large artifact folders
wangbingke0 Feb 13, 2026
f74cb21
SQP
wangbingke0 Feb 13, 2026
c0308ec
补充文件
wangbingke0 Feb 13, 2026
3c86e14
红色线加开关
wangbingke0 Mar 24, 2026
ae5c4df
优化训练逻辑,优化评估代码
wangbingke0 Mar 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Dockerfile
.*
!.git
!.gitignore
!.gitmodules
!.python-version
13 changes: 13 additions & 0 deletions .env.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# .env template

# Path for logs
LOG_FOLDER=

# Your HPC account code
NYU_HPC_ACCOUNT=

# NYU ID
USERNAME=

SINGULARITY_IMAGE=
OVERLAY_FILE=
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Continuous Integration

on:
push:
branches: [main]
pull_request:

jobs:
build-and-smoketest:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build Docker image
run: docker build --tag gpudrive:latest .

- name: Run smoke test inside Docker container (using a here document)
run: |
docker run --rm gpudrive:latest /bin/bash -c "$(cat << 'EOF'
#!/bin/bash
set -e
set -x
export DEBIAN_FRONTEND=noninteractive
echo 'Dummy cuda'
ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1
export LD_LIBRARY_PATH=/usr/local/cuda/lib64/stubs/:$LD_LIBRARY_PATH
echo 'Modifications to run without extra data'
sed -i 's|train_path: \"data/processed/training\"|train_path: \"data/processed/examples\"|g' examples/experimental/config/visualization_config.yaml
sed -i '/# Load policy/{N;N;N;N;N;N;s|# Load policy\n policy = load_policy(\n path_to_cpt=config.cpt_path,\n model_name=config.cpt_name,\n device=config.device,\n env=env,\n )|from gpudrive.networks.late_fusion import NeuralNet\n policy = NeuralNet.from_pretrained(\"daphne-cornelisse/policy_S10_000_02_27\")|}' examples/experimental/viz_rollouts.py
echo 'Modifications to run without GPU'
sed -i 's/device=\"cuda\"/device=\"cpu\"/g' gpudrive/datatypes/observation.py
export PYTHONFAULTHANDLER=1
ulimit -c unlimited
echo 'Run smoketest'
/gpudrive/.venv/bin/python examples/experimental/viz_rollouts.py
EOF
)"
258 changes: 258 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,261 @@
/.vs
/CMakeSettings.json
/scripts/__pycache__
/train_src/madrona_escape_room_learn/__pycache__
.vscode/launch.json
.vscode/settings.json
.vscode/tasks.json
.uv_cache

/examples/benchmarks/results/
/baselines/ppo/logs/*
*.sif
/cloudpickle
/cloudpickle-3.0.0.dist-info
*madrona.diff
/bin
/zipp*
/google-cloud-sdk/*
*.gz

# Data
hpc/overlay*
data/raw/*
data/processed/validation/*
data/processed/training/*
data/processed/testing/*
data/processed/sampled/*
data/processed/hand_designed/*
analyze/figures/*

# Logging
/wandb
/wandb*
events.out.tfevents.*
/runs*

### C++ ###
# Prerequisites
*.d

# Compiled Object files
*.slo
*.lo
*.o

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
*.csv

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.venv
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

### Python Patch ###
# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration
poetry.toml

# ruff
.ruff_cache/

# LSP config files
pyrightconfig.json

*~

# Environment variables
# To be manually created using .env.template
.env

# Logs
examples/experimental/logs/*

# Sbatch scripts
*.sh

# Videos
videos/
output_videos_larger_dataset/
output_videos_small_dataset/

# Trained models
models/

# End of https://www.toptal.com/developers/gitignore/api/python,c++
GPUDrive_full/

# large artifacts


output/
5 changes: 4 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "external/madrona"]
path = external/madrona
url = https://github.com/shacklettbp/madrona.git
url = https://github.com/m-naumann/madrona.git
[submodule "external/json"]
path = external/json
url = https://github.com/nlohmann/json.git
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1 # Use the latest version
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/pycqa/flake8
rev: 3.9.2 # Use the latest version
hooks:
- id: flake8
- repo: https://github.com/psf/black
rev: 22.3.0 # Use the latest version
hooks:
- id: black
args: [--line-length, "79"]
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
Binary file added 1.11王兵可-仿真增加预测轨迹.docx
Binary file not shown.
Binary file added 1.4王兵可-rl环境交互预热.doc
Binary file not shown.
Binary file added 1026.doc
Binary file not shown.
Binary file added 111
Binary file not shown.
9 changes: 9 additions & 0 deletions 111.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
启动uv虚拟环境
source .venv/bin/activate

export HF_ENDPOINT=https://hf-mirror.com

进docker
docker run --gpus all -it --rm --shm-size=20G -v ${PWD}:/workspace gpudrive:latest /bin/bash
关闭进程号
kill -9 11981
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
cmake_policy(VERSION 3.18)
cmake_minimum_required(VERSION 3.24 FATAL_ERROR) # for madrona

include("${CMAKE_CURRENT_SOURCE_DIR}/external/madrona/cmake/madrona_init.cmake")

project(Madrona3DExample LANGUAGES C CXX)
Expand All @@ -8,4 +8,7 @@ include(setup)
include(dependencies)

add_subdirectory(external)
enable_testing() # Enable testing capabilities

add_subdirectory(src)
add_subdirectory(tests) # Add your tests directory
Loading