This project employs CNN and transformer models for semantic segmentation of building damage in Mexico City's 2017 earthquake, using annotated imagery to identify features like cracks and exposed rebar.
README.md: Main documentation of the projectrequirements.txt: List of Python dependencies.gitignore: Git ignore fileDamage dataset/: Images of structural damage and READMEData Processing/: Data preprocessing scripts and notebooksCNN Models/: Convolutional neural network models that we usedTransformer Models/: Transformer-based models that we usedProject_Presentation.pptx: Contains presentation slides that offer a comprehensive overview of the project, including its aims, methods, and key results.
Images are gathered from:
- DataCenterHub
- Photographed by Vedhus Hoskere
Two sets of annotations are available in PNG format for each image:
- Fine damage and damage-like features, including features like cracks, exposed rebar, cables, etc Class names: 'No', 'Scratches', 'Grooves/Joints', 'Cables', 'Filled Cracks', 'Cracks', 'Exposed Rebar'
| Class | Color |
|---|---|
| No | black |
| Scratches | red |
| Grooves/Joints | green |
| Cables | white |
| Filled Cracks | lightgrey |
| Cracks | red |
| Exposed Rebar | orange |
- Coarse damage and damage-like features, including spalling, dirt, etc. Class names: 'No', 'Shadows', 'Dirt', 'Vegetative Growth', 'Debris', 'Marks', 'Spalling', 'Voids'
| Class | Color |
|---|---|
| No | black |
| Shadows | grey |
| Dirt | goldenrod |
| Vegetative Growth | springgreen |
| Debris | fuchsia |
| Marks | purple |
| Spalling | tomato |
| Voids | yellow |
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
im = Image.open(os.path.join(folder,file))
image = np.array(im)
plt.subplot(image)