Update README.md
Browse files
README.md
CHANGED
|
@@ -62,40 +62,30 @@ The ENA is detailed in the paper *Earthwork Network Architecture (ENA): Research
|
|
| 62 |
```
|
| 63 |
|
| 64 |
### Data Preparation
|
| 65 |
-
1. **Prepare
|
| 66 |
-
- Prepare CAD cross-sectional drawings as input files and load it on Autocad. Run the below program to extract the entities per each cross-section in the drawing. In addition, you can define the earthwork item's layer name in config.json.
|
| 67 |
```bash
|
| 68 |
python create_earthwork_dataset.py --config config.json --output output/ --view output/chain_chunk_6.json
|
| 69 |
```
|
| 70 |
-
- In reference, we assume that each earthwork item's layer including entities were segmented(Please refer to the below paper).
|
|
|
|
|
|
|
| 71 |
- Use the provided scripts to preprocess and tokenize geometrical features.
|
| 72 |
```bash
|
| 73 |
python prepare_dataset.py --input output/ --output dataset/
|
| 74 |
```
|
| 75 |
|
| 76 |
-
|
|
|
|
| 77 |
- Features are tokenized into sequences for MLP, LSTM, Transformers, and LLM models. We'll upload the train source file after arrangement.
|
| 78 |
```bash
|
| 79 |
python train_ena_model.py --model_type [MLP|LSTM|Transformer|LLM]
|
| 80 |
```
|
| 81 |
-
|
| 82 |
-
3. **Run and Test ENA model**:
|
| 83 |
- Run the below program to run and test the each ENA model. It will generate log and graph image files to check the performance.
|
| 84 |
```bash
|
| 85 |
python ena_run_model.py
|
| 86 |
```
|
| 87 |
-
|
| 88 |
-
### Training and Evaluation
|
| 89 |
-
1. Select the model architecture (`MLP`, `LSTM`, `Transformer`, or `LLM`).
|
| 90 |
-
2. Configure hyperparameters (batch size, learning rate, etc.) as required.
|
| 91 |
-
3. Run the training script:
|
| 92 |
-
```bash
|
| 93 |
-
python train_ena_model.py --model_type [MLP|LSTM|Transformer|LLM]
|
| 94 |
-
```
|
| 95 |
-
4. Evaluate the model using the test dataset:
|
| 96 |
-
```bash
|
| 97 |
-
python evaluate_ena_model.py --model_path [path/to/trained/model]
|
| 98 |
-
```
|
| 99 |
|
| 100 |
## Results
|
| 101 |
- **Best Model**: LLM-based ENA achieved a QTC accuracy of **97.17%**, outperforming other architectures in accuracy and stability.
|
|
|
|
| 62 |
```
|
| 63 |
|
| 64 |
### Data Preparation
|
| 65 |
+
1. **Prepare Drawing File**:
|
| 66 |
+
- Prepare CAD cross-sectional drawings as input files and load it on Autocad (./input/cross_section_sample_drawing.dwg). Run the below program to extract the entities per each cross-section in the drawing. In addition, you can define the earthwork item's layer name in config.json.
|
| 67 |
```bash
|
| 68 |
python create_earthwork_dataset.py --config config.json --output output/ --view output/chain_chunk_6.json
|
| 69 |
```
|
| 70 |
+
- In Autocad, you can select the cross-section entities using command powered by create_earthwork_dataset program. In reference, we assume that each earthwork item's layer including entities were segmented(Please refer to the below paper).
|
| 71 |
+
|
| 72 |
+
2. **Prepare Train Dataset**:
|
| 73 |
- Use the provided scripts to preprocess and tokenize geometrical features.
|
| 74 |
```bash
|
| 75 |
python prepare_dataset.py --input output/ --output dataset/
|
| 76 |
```
|
| 77 |
|
| 78 |
+
### Training and Evaluation
|
| 79 |
+
1. **Training Data (TBD)**:
|
| 80 |
- Features are tokenized into sequences for MLP, LSTM, Transformers, and LLM models. We'll upload the train source file after arrangement.
|
| 81 |
```bash
|
| 82 |
python train_ena_model.py --model_type [MLP|LSTM|Transformer|LLM]
|
| 83 |
```
|
| 84 |
+
2. **Run and Evaluate ENA model**:
|
|
|
|
| 85 |
- Run the below program to run and test the each ENA model. It will generate log and graph image files to check the performance.
|
| 86 |
```bash
|
| 87 |
python ena_run_model.py
|
| 88 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
|
| 90 |
## Results
|
| 91 |
- **Best Model**: LLM-based ENA achieved a QTC accuracy of **97.17%**, outperforming other architectures in accuracy and stability.
|