Sampath Balaji commited on
Commit ·
f33a158
1
Parent(s): 71cd301
Initial dataset push
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- Poles_LeanedStraight/Classification/README.md +144 -0
- Poles_LeanedStraight/Classification/test/Leaned/100.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1024.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1261.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1267.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/127.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1290.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/131.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1315.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1384.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1427.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1460.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1537.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1614.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1681.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1682.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1686.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1705.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1741.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1748.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1750.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1761.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1778.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1781.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1801.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1878.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/190.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1940.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1947.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1970.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/1978.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2086.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2116.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2132.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2137.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2158.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2166.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2180.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2201.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2203.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2205.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2218.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2240.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2251.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2263.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2308.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2316.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2323.jpg +3 -0
- Poles_LeanedStraight/Classification/test/Leaned/2358.jpg +3 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
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|
| 3 |
+
- This dataset contains real-world images of electric utility poles labeled into three classes: **"Leaned"**, **"Straight"**, and **"Rejected"**. It is designed for **image-level classification tasks**.
|
| 4 |
+
- The dataset complements a previously released object detection dataset focused on bounding-box annotations.
|
| 5 |
+
- This module fine-tunes a DINOv2 ViT-B/14 model for **image-level classification** of poles.
|
| 6 |
+
- GitHub repo link: [Here](https://github.com/sampath-balaji/Electrical-Lines-Defect-Detection/tree/main/Pole_LeanedStraight_Defect/Classification)
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
## Dataset Details
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
### Dataset Description
|
| 14 |
+
|
| 15 |
+
- **Task:** Image classification (multi-class)
|
| 16 |
+
- **Classes:** `Leaned`, `Straight`, `Rejected`
|
| 17 |
+
- **Image format:** `.jpg`
|
| 18 |
+
- **Label format:** Folder-based (one folder per class)
|
| 19 |
+
|
| 20 |
+
The images were collected by field linemen across three districts in Andhra Pradesh: **Visakhapatnam**, **Eluru**, and **Kakinada**. Each image was labeled by three annotators, with the final label selected via **majority vote**.
|
| 21 |
+
|
| 22 |
+
- **Curated by:** Sampath Balaji & team, at APEPDCL
|
| 23 |
+
- **Funded by:** Eastern Power Distribution Company of Andhra Pradesh Limited (APEPDCL)
|
| 24 |
+
- **License:** CC BY 4.0
|
| 25 |
+
- **Language(s):** Not applicable
|
| 26 |
+
|
| 27 |
+
## Uses
|
| 28 |
+
|
| 29 |
+
### Direct Use
|
| 30 |
+
|
| 31 |
+
This dataset is intended for training and evaluating machine learning models that classify pole alignment from real-world utility inspection photos.
|
| 32 |
+
|
| 33 |
+
### Out-of-Scope Use
|
| 34 |
+
|
| 35 |
+
- Surveillance, identity detection, or person-tracking
|
| 36 |
+
- Facial recognition or biometrics
|
| 37 |
+
- Applications requiring highly controlled camera perspectives
|
| 38 |
+
|
| 39 |
+
## Dataset Structure
|
| 40 |
+
|
| 41 |
+
The dataset is organized into pre-split folders:
|
| 42 |
+
```
|
| 43 |
+
Poles_LeanedStraight/Classification/
|
| 44 |
+
├── train/
|
| 45 |
+
│ ├── Leaned/
|
| 46 |
+
│ ├── Straight/
|
| 47 |
+
│ └── Rejected/
|
| 48 |
+
├── val/
|
| 49 |
+
│ ├── Leaned/
|
| 50 |
+
│ ├── Straight/
|
| 51 |
+
│ └── Rejected/
|
| 52 |
+
├── test/
|
| 53 |
+
│ ├── Leaned/
|
| 54 |
+
│ ├── Straight/
|
| 55 |
+
│ └── Rejected/
|
| 56 |
+
```
|
| 57 |
+
- `Rejected` indicates poles/images that were ambiguous or pole bottom or top was not visible or unusable for downstream tasks but still part of this classification problem.
|
| 58 |
+
- No augmentations were applied.
|
| 59 |
+
- Each split is approximately: **Train 75%**, **Val 15%**, **Test 10%**
|
| 60 |
+
|
| 61 |
+
## Dataset Creation
|
| 62 |
+
|
| 63 |
+
### Curation Rationale
|
| 64 |
+
|
| 65 |
+
This dataset was created to build an ML pipeline for real-time defect detection in utility poles, starting with identifying leaned poles as a foundational task. The aim is to build an electrical line quality monitoring system to revolutionize maintenance workflows.
|
| 66 |
+
|
| 67 |
+
### Source Data
|
| 68 |
+
|
| 69 |
+
#### Data Collection and Processing
|
| 70 |
+
|
| 71 |
+
Images were collected using mobile cameras by field linemen in Andhra Pradesh.
|
| 72 |
+
|
| 73 |
+
#### Image Capture Protocol
|
| 74 |
+
|
| 75 |
+
The images were captured on the ground by APEPDCL linemen following a field protocol designed to reduce bias and ensure consistency:
|
| 76 |
+
|
| 77 |
+
- Linemen were instructed to **hold the phone upright and parallel to the pole** to avoid tilt or skew that could distort the pole's perceived angle.
|
| 78 |
+
- Images were to include both the **top and bottom of the pole**, as full visibility is essential for lean classification.
|
| 79 |
+
- **No filters or enhancements** were applied during capture.
|
| 80 |
+
|
| 81 |
+
Despite this protocol, many images were captured with a **tilted horizon**, making it difficult to determine if a pole was leaned or not. Tools like **Google Photos** and **Adobe Lightroom** were used to **manually correct tilt** by straightening the horizon.
|
| 82 |
+
|
| 83 |
+
To prevent this in future data, the team identified an open-source camera app, **[Open Camera](https://opencamera.org.uk/)**, which uses the phone’s **gyroscope sensor to auto-straighten images**. This app is now recommended for field use to ensure more consistent alignment.
|
| 84 |
+
|
| 85 |
+
#### Observations and Future Protocol Improvements
|
| 86 |
+
|
| 87 |
+
During annotation, a key insight emerged:
|
| 88 |
+
|
| 89 |
+
- When images were taken **too close to the pole**, **perspective distortion** made it harder to determine pole alignment.
|
| 90 |
+
- Going forward, linemen will be instructed to **stand approximately one pole height away** to reduce distortion and improve labeling accuracy.
|
| 91 |
+
|
| 92 |
+
#### Who are the source data producers?
|
| 93 |
+
|
| 94 |
+
Electric linemen from APEPDCL working in Visakhapatnam, Eluru, and Kakinada districts of Andhra Pradesh, India.
|
| 95 |
+
|
| 96 |
+
### Annotations
|
| 97 |
+
|
| 98 |
+
#### Labeling Process
|
| 99 |
+
Images were individually labeled by 3 human labelers and saved in folder-based structure. **Majority vote** was used to determine the final class label. The team worked to maintain consistency, though **some labeling errors may persist due to the manual nature** of the task.
|
| 100 |
+
|
| 101 |
+
#### Who are the annotators?
|
| 102 |
+
|
| 103 |
+
The annotation team consisted of project members:
|
| 104 |
+
- Srija Vanapalli
|
| 105 |
+
- Krishna Sumwith
|
| 106 |
+
- Jyotsna Adari
|
| 107 |
+
Under the direction of the team lead.
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
#### Personal and Sensitive Information
|
| 111 |
+
|
| 112 |
+
No personal or sensitive data was intentionally included. However, some images may contain **people or faces captured incidentally** in public areas, as the data was collected in outdoor settings.
|
| 113 |
+
|
| 114 |
+
## Bias, Risks, and Limitations
|
| 115 |
+
|
| 116 |
+
- **Geographic bias:** All data comes from Andhra Pradesh, India — results may not generalize to other regions or environments.
|
| 117 |
+
- **Scene/perspective bias:** Variation in camera angles and distances may affect model training.
|
| 118 |
+
- **Privacy risk:** Images taken in public areas may contain identifiable people.
|
| 119 |
+
|
| 120 |
+
### Recommendations
|
| 121 |
+
|
| 122 |
+
- Apply **image normalization or augmentation** techniques to improve generalization.
|
| 123 |
+
- Account for **perspective and camera angle** effects during training and evaluation.
|
| 124 |
+
- Use ethically and responsibly, especially in systems that affect public infrastructure.
|
| 125 |
+
|
| 126 |
+
## Validation Accuracy
|
| 127 |
+
|
| 128 |
+
- Best Val Acc: 84.14%
|
| 129 |
+
- Hardware used: RTX 4070 Ti SUPER on [JOHNAIC](https://von-neumann.ai)
|
| 130 |
+
|
| 131 |
+
## Sample Visualizations
|
| 132 |
+
<p align="center"> <img src="https://raw.githubusercontent.com/sampath-balaji/Electrical-Lines-Defect-Detection/refs/heads/main/Pole_LeanedStraight_Defect/Classification/assets/val_viz_ep40.png" width="600"/> </p>
|
| 133 |
+
|
| 134 |
+
## More Information
|
| 135 |
+
|
| 136 |
+
Follow-up datasets in this series will include other electrical line and pole defects as part of APEPDCL's Line Quality monitoring project.
|
| 137 |
+
|
| 138 |
+
## Dataset Card Authors
|
| 139 |
+
|
| 140 |
+
- [Sampath Balaji](https://github.com/sampath-balaji)
|
| 141 |
+
|
| 142 |
+
## 📄 License
|
| 143 |
+
- [Code](https://github.com/sampath-balaji/Electrical-Lines-Defect-Detection/tree/main/Pole_LeanedStraight_Defect/ObjectDetection): MIT License
|
| 144 |
+
- [Dataset](https://huggingface.co/datasets/sampath-balaji/Electrical-Lines-Defect-Detection/tree/main/Poles_LeanedStraight/Classification): CC BY 4.0
|
Poles_LeanedStraight/Classification/test/Leaned/100.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1024.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1261.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1267.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/127.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1290.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/131.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1315.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1384.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1427.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1460.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1537.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1614.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1681.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1682.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1686.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1705.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1741.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1748.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1750.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1761.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1778.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1781.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1801.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1878.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/190.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1940.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1947.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1970.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/1978.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2086.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2116.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2132.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2137.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2158.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2166.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2180.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2201.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2203.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2205.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2218.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2240.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2251.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2263.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2308.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2316.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2323.jpg
ADDED
|
Git LFS Details
|
Poles_LeanedStraight/Classification/test/Leaned/2358.jpg
ADDED
|
Git LFS Details
|