Kunalsinghh commited on
Commit
c215404
·
verified ·
1 Parent(s): 7c77e13

Upload rl models

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ rl/training_comparison.png filter=lfs diff=lfs merge=lfs -text
37
+ rl_v2/training_comparison_v2.png filter=lfs diff=lfs merge=lfs -text
38
+ rl_v3/training_comparison_v3_emissions.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - traffic-management
5
+ - reinforcement-learning
6
+ - smart-city
7
+ - deep-learning
8
+ - pytorch
9
+ ---
10
+
11
+ # TMS2 - RL Traffic Management Models
12
+
13
+ ## RL Traffic Signal Controller
14
+
15
+ Deep Q-Network (DQN) based agents for adaptive traffic signal control.
16
+
17
+ ### Variants:
18
+ - **v2**: Baseline stable model optimized for throughput
19
+ - **v3**: Eco-friendly model with emissions optimization (14% CO2 reduction)
20
+ - **v4**: Challenging scenarios with incidents and demand spikes
21
+ - **v5/final**: Curriculum learning for generalization
22
+
23
+ ### Architecture:
24
+ - Dueling Double DQN with soft target updates
25
+ - State space: 10-12 dimensions (queues, phase, time, scenarios)
26
+ - Action space: 2 (keep phase / change phase)
27
+
28
+ ## Model Description
29
+
30
+ These models are part of the **Traffic Management System 2 (TMS2)** project,
31
+ an intelligent traffic control system using deep learning and reinforcement learning.
32
+
33
+ ## Training Details
34
+
35
+ - **Framework**: PyTorch
36
+ - **Training Platform**: Google Colab (T4 GPU)
37
+ - **Training Date**: December 2025
38
+
39
+ ## Usage
40
+
41
+ ```python
42
+ import torch
43
+
44
+ # Load model
45
+ model = torch.load('model.pt')
46
+ model.eval()
47
+
48
+ # Inference
49
+ with torch.no_grad():
50
+ output = model(input_tensor)
51
+ ```
52
+
53
+ ## License
54
+
55
+ Apache 2.0
adaptive_dueling_ep100.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41ec727e927aa84f633dc29f7201d76c4377be5883bd1b8a887ef44e9296741f
3
+ size 577549
adaptive_dueling_ep1000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c97978fce505bbcc74d71274ff9dc279038e5e7fbdcd5a30283f7e6022a766d
3
+ size 577615
adaptive_dueling_ep1100.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e68da693f9c40b8f62f2d366022db635debcf747e0a95cbee23bbb26ee2acf95
3
+ size 577615
adaptive_dueling_ep1200.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:637eec80a0b61e7f3a3a6488cc3509e1e3836387494352544c977fab0c391021
3
+ size 577615
adaptive_dueling_ep1300.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d423cee8f5c73df19958be29c17fd09b8afe9abc6f4e6f14a32ad36db3ade53e
3
+ size 577615
adaptive_dueling_ep1400.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a4e86e88203ed8c6833cbfa1a21fc328a842d477cc5d2a47161fe2ce852e7538
3
+ size 577615
adaptive_dueling_ep1500.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b61371bd21bfa0656064d848005c151707291fa49c9715b968528514f35e22c2
3
+ size 577615
adaptive_dueling_ep200.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d15ca4c597d86b361f71810ab3cb4dff3e6553bedb7c5a4cfe707dd0ce48acb1
3
+ size 577549
adaptive_dueling_ep300.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebcb70312a5ec6d8d7f7dbf6f57187bf197a8b497ef488fd72bae8ae4490ee8e
3
+ size 577549
adaptive_dueling_ep400.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06fefc843c9127c2e9cdf31d1c52d1658581d283eda0af6ff6e8511550b15f7c
3
+ size 577549
adaptive_dueling_ep500.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:00cbf19a99a07766167dccd240f21735676817867651494398565448786aa823
3
+ size 577549
adaptive_dueling_ep600.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:add76d13d0a0b76b3f767c290b439760590c42192f5c01cf31f7f37140a51a74
3
+ size 577549
adaptive_dueling_ep700.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0db152f505b8112832b8ea7de032549d61cfe43c54aece36c347f5b9fb2f7a0
3
+ size 577549
adaptive_dueling_ep800.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1372870cbaa8338bdced8c405d00bd5281d26b4e924d6268ef1de3582779036f
3
+ size 577549
adaptive_dueling_ep900.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fda9e4ab898e632ea2708e833d8da55667373b64de786f0da5d680266ce5a418
3
+ size 577549
adaptive_dueling_final.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38b441e06d1d2b7dc0ebd5d7db2274fcd42f9d18147f2a7d5c88855e83422b96
3
+ size 577549
best_model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:697655de0c9949168e22fe9652da45e09fa071c6daec91ba4c6699f1bea68498
3
+ size 431925
dataset-metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "title": "TMS RL Traffic Signal Controllers",
3
+ "id": "Kunalsinghh25/tms2-rl-models",
4
+ "licenses": [
5
+ {
6
+ "name": "Apache 2.0"
7
+ }
8
+ ],
9
+ "keywords": [
10
+ "traffic",
11
+ "deep-learning",
12
+ "reinforcement-learning",
13
+ "smart-city"
14
+ ],
15
+ "resources": []
16
+ }
double_dqn_best.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0422a93e6882e4461a5152829b7acabcbc4b69c59ff70a18f39937fec436a98f
3
+ size 300905
double_dqn_ep100.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:992e2364250357607e4ef17afdda7f5c1e60ee92bd32023fbca34b05507949cc
3
+ size 300813
double_dqn_ep1000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b7f344113ae0d73e58502f64bcea2824a338b00822eb7154d118325022fc26e
3
+ size 300977
double_dqn_ep200.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad0a4df4a7c8b52b01da87d21022aeda66553f8d37ea16168b009942047488ee
3
+ size 300813
double_dqn_ep300.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b3370072a26688086d8b6cf5ecf424491c6b95a854b09d4805b514d6a79f7f0
3
+ size 300813
double_dqn_ep400.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:118f6d9aed187576dad39a22d76dcfe6a943f0752e213762c5f3d65abfebc97d
3
+ size 300813
double_dqn_ep500.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d581feebef094c6d5bd7de8cac49aec24eae6abf5200645c064f162cd67b4b6d
3
+ size 300813
double_dqn_ep600.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:424cac1134a2180cb106a03b5471a85e7a2f72753a043323bb4c66be3050d474
3
+ size 300941
double_dqn_ep700.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13ff682380248d3cc258f96e1aecd36aec7cc391f48a7bdc30766d758a97ca13
3
+ size 300941
double_dqn_ep800.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bcedc21a72745165ecadec4f9a98c7b69223da924148be2fa7d517af48352bd
3
+ size 300941
double_dqn_ep900.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6d561401be0f222621fc13362a3040f7bc187a64289e678dc7c01473f5a52b3
3
+ size 300941
double_dqn_final.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b58bd38bcc2ee44270392ccd1d88c4f0d6de61acf379a6eb463c6c252464def4
3
+ size 300813
dqn_best.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e53edfc406bfc39660405c712c8baed539f9eb4b14962e85e3f0f6f1e55e7955
3
+ size 300653
dqn_ep100.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e916ebd017911be2daef3ca8526764c93b38ab695fdc38eed2c9434b66fc0a86
3
+ size 300561
dqn_ep1000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8061e1c3f7d12b7cb692fb2b19784533ba46d3039a4f2401d2dbe85f10c1f02
3
+ size 300725
dqn_ep200.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44d743bfe4ea523a888d31de36f1924bf8eeb4cf2851ce2a01021a2de5e4d612
3
+ size 300561
dqn_ep300.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a994c28d3cd899ae337f391809db3dc92bbb8fe4fde2c9b11dbb45cf2e238778
3
+ size 300561
dqn_ep400.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c38771079e0358dcd5e3b715c3a8d9b1dd5da8c24a1442ef9f834e8af359dff
3
+ size 300561
dqn_ep500.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b5ae1d3ce78a09f9b6ee32f371ccb103f1891a4186348747ea4d97c0234f1c7
3
+ size 300561
dqn_ep600.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:772f30d152ce51ea7024ff2b2848d4a2b7ce61e683c02c1e3e8614734af35e54
3
+ size 300689
dqn_ep700.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9ff6c1c3004616ee05ccf6eab32c6978f47e2b8574f0ee4686c572ec24e27ca
3
+ size 300689
dqn_ep800.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ae71cfef7e2f058e091d4774efa3ed1cf6fe8af9b501ba680db776594ce7edac
3
+ size 300689
dqn_ep900.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46badf8a0ab01270787554573b4b68650af1b33549f57288871fd47a821dc737
3
+ size 300689
dqn_final.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec99aa6308938828aca8249bccf9fa5100d9b9b24c5404deccbfc078d03aa624
3
+ size 300561
dueling_dqn_best.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61b2bacd636bfc49c465e321f3d1270a8f209bb02d47c83434b945bf1b140c92
3
+ size 305925
dueling_dqn_ep100.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77d59cff63ad7e79b18db68d427f05fdfaf87e2f72f521bda767aa532942c458
3
+ size 305853
dueling_dqn_ep1000.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:991a9f213f4be541f1039d996a388580c256d7801b6f732aeb3884d11d654388
3
+ size 306037
dueling_dqn_ep200.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:889d2af9fc61368edbc5e646dc8e2c2f1c1c45fbb12ddcde0c56a361811646b6
3
+ size 305853
dueling_dqn_ep300.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4507d447235f82e79052765756c6aa90a7cc7be16884ede02bf13a3421039cc1
3
+ size 305853
dueling_dqn_ep400.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40cecf1d5a87c411fa4451c90930d6bd56b46b2e1b0e13f9c297779579d3ad76
3
+ size 305853