Tbnet
Code for the paper: "TB-Net: A Three-Stream Boundary-Aware Network for Fine-Grained Pavement Disease Segmentation"
Install / Use
/learn @yujiaz2/TbnetREADME
TB-Net
TB-Net: A Three-Stream Boundary-Aware Network for Fine-Grained Pavement Disease Segmentation
Introduction
Fine-grained pavement disease segmentation aims to not only automatically segment cracks, but also segment other complex pavement diseases as well as typical landmarks (markings, runway lights, etc.) and commonly seen water/oil stains. TB-Net consists of three streams fusing the low-level spatial and the high-level contextual representations as well as the detailed boundary information.
Requirements
- Python 2
- Tensorflow 1.8.0
- Numpy
- Scipy
- Opencv
Instructions
Dataset Preparation
Set up the dataset folder in the following structure:
|—— "dataset_name"
| |—— train: gray-scale images for training
| |—— train_labels: annotations for training images
| |—— train_edge_labels: binary boundary annotations for training
| |—— val: gray-scale images for validation
| |—— val_labels: annotations for validation images
| |—— val_edge_labels: binary boundary annotations for validation
| |—— test: gray-scale images for testing
| |—— test_labels: annotations for testing images
| |—— test_edge_labels: binary boundary annotations for testing
The class dictionary file "class_dict.csv" contains the list of classes along with the R, G, B color labels:
name,r,g,b
background,0,0,0
crack,128,0,0
cornerfracture,0,128,0
seambroken,128,128,0
patch,0,0,128
repair,128,0,128
slab,0,128,128
track,128,128,128
light,64,0,0
Training
Run python train_tbnet.py with the following args:
--num_epochs: Number of epochs to train for.--dataset: The dataset to use.--resize_height: Height of resized input image to network.--resize_width: Width of resized input image to network.--batch_size: Number of images in each batch.--num_val_images: The number of images to use for validation.
Testing
Run python test_tbnet.py with the following args:
--checkpoint_path: The path to the checkpoint weights.--resize_height: Height of resized input image to network.--resize_width: Width of resized input image to network.--dataset: The dataset to use.
Reference
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
