Practical overview
When it fits
Use Deepcrack when you need a research codebase and pretrained starting point for image-based crack detection, or want to work with its documented pavement and stone datasets.
Who it is for
- Researchers evaluating crack-detection methods.
- Computer-vision developers prototyping pavement-image analysis.
- Teams seeking crack-image datasets and a model baseline for experiments.
Documented uses
- Evaluate a pretrained model on a crack-image test set.
- Train the model using configured dataset paths and parameters.
- Explore crack detection on pavement or stone-surface imagery.
Requirements & limits
The repository is public. Supplied metadata lists no license; check the repository’s reuse terms before incorporating its code or datasets.
- The README specifies Python 3.6, PyTorch 1.0.2 or later and CUDA 10.0.
- Pretrained model weights are provided separately and are placed in ./codes/checkpoints/ for the documented test workflow.
- The project includes four datasets: CrackTree260, CRKWH100, CrackLS315 and Stone331.
- The README reports a difference in performance between the PyTorch implementation and the original Caffe version.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Evaluate a pretrained crack-detection model
Configure the documented test paths and run evaluation with pretrained weights.
Before you start
- Python 3.6
- PyTorch 1.0.2 or later
- CUDA 10.0
- Pretrained weights or your own model weights
Steps
Place the model weights in ./codes/checkpoints/.
Set pretrained_path, test_path for test_index.txt, and save_path in config.py.
Choose the model to evaluate.
Run python test.py.
Expected outcome
The test script evaluates the selected model and saves results to the configured location.
Guide limitations
- The README notes that the PyTorch model performs somewhat differently from the original Caffe version.
- The listed environment requirements are specific to the repository instructions.
Configure and start model training
Set the documented dataset paths and training parameters, then start training.
Before you start
- Python 3.6
- PyTorch 1.0.2 or later
- CUDA 10.0
- Training data and a configured environment
Steps
Set train_path for train_index.txt and pretrained_path in config.py.
Choose a model and adjust settings such as class weights, batch size and learning rate in config.py.
Run python train.py.
Expected outcome
The training script starts using the selected model and configured training settings.
Guide limitations
- The README does not give a hardware-independent performance expectation.
- The listed environment requirements are specific to the repository instructions.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 November 2026
- Original website title
- qinnzou/DeepCrack · Official homepage title · retained in its source language

