Practical overview
When it fits
Use it when you need research code for semantic-line detection and can work with its Python environment, datasets, and repository-specific training or testing workflow.
Who it is for
- Computer-vision researchers reproducing semantic-line detection experiments.
- Developers adding structural-line detection to image-processing workflows.
- Practitioners preparing SEL or NKL data to train the model.
Documented uses
- Run semantic line detection using the documented implementation and pretrained weights.
- Prepare SEL or NKL data into parametric-space labels for training.
- Train the model with the repository’s configuration.
- Follow the separate testing instructions to reproduce evaluation results.
Requirements & limits
The repository README states that the project uses a Creative Commons BY-NC 3.0 license and permits non-commercial use only; it says to contact the project for commercial usage.
- The repository provides both Jittor and PyTorch code, while its listed dependencies include PyTorch and torchvision.
- Pretrained ResNet50-FPN weights are listed for SEL and NKL; the NKL weights are identified as those used in the online demo.
- Training requires separately obtained dataset files and the repository’s preparation scripts.
- The README directs users to test.md for detailed steps to reproduce testing results.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Prepare SEL or NKL data for model training
Generate the documented training labels for an SEL or NKL dataset.
Before you start
- The repository and its Python dependencies, including PyTorch, torchvision, NumPy, SciPy, OpenCV, scikit-image, tqdm, yml, POT, and deep-hough.
- For SEL, the original dataset arranged under data/ with the documented image, line-label, and index files; for NKL, the NKL dataset placed in data/.
Steps
For SEL, extract the original dataset into data/ using the directory structure shown in the README.
Run data/prepare_data_JTLEE.py with the README's documented root, label, save-dir, list, prefix, fixsize, numangle, and numrho arguments.
For NKL instead, place the dataset in data/ and run data/prepare_data_NKL.py with the documented root, label, save-dir, and fixsize arguments.
Expected outcome
The preparation scripts generate parametric-space labels in the selected training output directory.
Guide limitations
- The dataset files must be obtained separately.
- This guide prepares data only; training is a separate stage documented as python train.py using config.yml.
Train the model with the repository configuration
Start training after preparing the dataset using the repository’s documented workflow.
Before you start
- Prepared training data and the repository’s Python dependencies.
- The repository’s config.yml, which supplies default training settings.
Steps
Prepare SEL or NKL training data using the repository’s documented preparation script.
Review config.yml and modify hyperparameters if needed.
Run python train.py from the repository.
Expected outcome
The repository’s training script is invoked with the selected configuration and prepared data.
Guide limitations
- The README does not specify a guaranteed training duration or result.
- This recipe does not cover evaluation; the README points to test.md for testing details.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 November 2026
- Original website title
- Hanqer/deep-hough-transform · Official homepage title · retained in its source language

