# CTCD Complex Tunnel Crack Dataset: 292 Highway Tunnel Lining Images with Pixel-Level Crack Masks (CraSAM)

## Facts

- Provider: Shiwei Luo, Xiongyao Xie, Biao Zhou, Kun Zeng and Jun Guo
- License: CC-BY-4.0 (https://huggingface.co/datasets/shiweiluo99/tunnel-crack-segmentation-dataset)
- Size: 586 files
- Stored at: Hugging Face, https://huggingface.co/datasets/shiweiluo99/tunnel-crack-segmentation-dataset
- Access: public, readable without an account
- Category: Computer Vision
- Source: https://doi.org/10.1155/stc/6269747
- Page: https://scigantic.com/archive/d25036b8-144f-5c18-805a-50dd6cc89761
- Keywords: Computer Vision, image segmentation, Hugging Face

## About

The Complex Tunnel Crack Dataset (CTCD) is a civil-infrastructure inspection set of 292 tunnel lining images (256x256 pixels) with pixel-level crack segmentation masks, collected from 52 highway tunnels in Yunnan and Zhejiang, China, with a high-speed tunnel inspection vehicle. Crack pixels were annotated by hand in Photoshop with a 1 to 2 pixel brush sized to the crack width. It was introduced in the CraSAM paper, which builds a crack detection network on the Segment Anything visual foundation model, to test how crack segmentation generalizes across scenarios. The repository holds 584 BMP files (images and masks) in one folder, about 80 MB (measured 2026-11-21); load with Hugging Face datasets or PIL. Use it for crack segmentation, tunnel defect inspection and evaluating segmentation models on unseen infrastructure scenes. Images and annotations are by the authors and released under CC-BY-4.0; cite Luo et al., Multiscenario Generalization Crack Detection Network Based on the Visual Foundation Model, Structural Control and Health Monitoring 2025, doi:10.1155/stc/6269747.

## Load the data

```python
from huggingface_hub import hf_hub_download
path = hf_hub_download(repo_id="shiweiluo99/tunnel-crack-segmentation-dataset", filename="Complex Tunnel Crack Dataset (CTCD)/train/1001-1.bmp", repo_type="dataset")
print(path)
```

## Data structure

Example file: `Complex Tunnel Crack Dataset (CTCD)/train/1001-1.bmp`

## Open it

- In a hosted notebook with the data mounted: https://scigantic.com/archive/d25036b8-144f-5c18-805a-50dd6cc89761
- Full record as JSON (schema card included): https://api.scigantic.com/api/archives/d25036b8-144f-5c18-805a-50dd6cc89761
- Over MCP: `get_schema_card` with id `d25036b8-144f-5c18-805a-50dd6cc89761` at https://api.scigantic.com/mcp

## Related topics

- [Image segmentation datasets](https://scigantic.com/topics/image-segmentation)
- [Computer Vision datasets](https://scigantic.com/topics/computer-vision)
