This repository contains the paper-facing code for a lightweight geometric relation parser built on a derived Ext-PGDP5K protocol.
The public package is intentionally clean:
- no private logs
- no training outputs
- no full PGDP5K data dump
- no remote-server credentials or deployment helpers
Instead, it includes a tiny runnable demo subset so the project can be cloned and executed immediately.
src/: model, data loader, logic regularization, metricstrain.py: training entry pointscripts/: protocol and evaluation utilitiesdocs/ext_pgdp5k_protocol.md: derived protocol notesdemo_data/PGDP5K_demo/: small metadata-only demo splitrun_demo.ps1: one-click Windows demorun_demo.bat: one-click Windows batch wrapper
- Create a Python environment.
- Install dependencies:
pip install -r requirements.txt- Run the demo:
.\run_demo.ps1Or:
run_demo.batThe script trains for one short epoch on the included demo subset and writes outputs to outputs/demo_run.
The included demo_data/PGDP5K_demo subset is a tiny metadata-only package prepared from a few samples for reproducibility checks. It is not intended for reporting final paper numbers.
The full PGDP5K dataset and the full derived Ext-PGDP5K protocol should be prepared separately for real experiments.
python train.py ^
--data-root demo_data/PGDP5K_demo ^
--ext-root demo_data/PGDP5K_demo/Ext-PGDP5K ^
--epochs 1 ^
--batch-size 2 ^
--device cpu ^
--output-dir outputs/demo_run- The demo package is designed for smoke testing and code review.
- Final paper experiments should be run on the full dataset.
- The current active relation setting contains four evaluated labels:
intersect,parallel,perpendicular, andbisect.