You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+67Lines changed: 67 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,3 +13,70 @@ block decomposition of polygons**" (see [arxiv article](https://arxiv.org/pdf/23
13
13
and [presentation](http://tetrahedronvii.cimne.com/slides/Persson.pdf)).
14
14
15
15
#### See the documentation website for more details: https://lihpc-computational-geometry.github.io/tune/
16
+
17
+
## Installation
18
+
The project can be cloned from github
19
+
20
+
## Usage
21
+
The project can be used to train a reinforcement learning agent on **triangular meshes** or **quadrangular meshes**.
22
+
23
+
---
24
+
25
+
### Triangular Meshes
26
+
27
+
For training on triangular meshes, you can use an agent with all three actions: **flip**, **split**, and **collapse**. Two training models are available:
- Configure the model and environment parameters in:
37
+
`tune/training/train.py`
38
+
39
+
- Then run the following command from the `tune/` directory:
40
+
```bash
41
+
python main.py
42
+
```
43
+
44
+
45
+
##### 2. Using PPO from Stable Baselines 3 (SB3)
46
+
47
+
- Configure the model and environment parameters in:
48
+
-`tune/environment/environment_config.json`
49
+
-`tune/model_RL/parameters/PPO_config.json`
50
+
51
+
- Then run the training script in pycharm `tune/training/train_trimesh_SB3.py`
52
+
53
+
###### Flip-Only Training (SB3 PPO)
54
+
55
+
To train an agent using only the flip action with SB3 PPO, run the training script in pycharm `tune/training/train_trimesh_flip_SB3.py`
56
+
57
+
---
58
+
59
+
### Quadrangular Meshes
60
+
61
+
For training on quadrangular meshes, you can use an agent with all four actions: **flip clockwise**, **flip counterclockwise**, **split**, and **collapse**. Two training models are available:
0 commit comments