Akshay-Soni lgrzybowski commited on
Commit
2c96599
·
0 Parent(s):

Duplicate from lgrzybowski/seraphim-drone-detection-dataset

Browse files

Co-authored-by: Lukasz Grzybowski <lgrzybowski@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Large File Storage rules for dataset assets
2
+ *.jpg filter=lfs diff=lfs merge=lfs -text
3
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
4
+ *.png filter=lfs diff=lfs merge=lfs -text
5
+
6
+ # YOLO labels and metadata
7
+ *.txt filter=lfs diff=lfs merge=lfs -text
8
+ *.yaml filter=lfs diff=lfs merge=lfs -text
9
+
10
+ # Archives
11
+ *.zip filter=lfs diff=lfs merge=lfs -text
12
+ *.tar filter=lfs diff=lfs merge=lfs -text
13
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
14
+ *.7z filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ # ============================================
2
+ # OS & System Files (macOS)
3
+ # ============================================
4
+ .DS_Store
LICENSE ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ License & Attribution
2
+
3
+ Creative Commons Attribution 4.0 International (CC BY 4.0)
4
+
5
+ © 2025 Łukasz Grzybowski, Seraphim Defence Systems
6
+
7
+ This work is licensed under a Creative Commons Attribution 4.0 International License:
8
+ https://creativecommons.org/licenses/by/4.0/
9
+
10
+ Full license text:
11
+ https://creativecommons.org/licenses/by/4.0/legalcode
12
+
13
+
14
+ You are free to:
15
+ - Share — copy and redistribute the material in any medium or format
16
+ - Adapt — remix, transform, and build upon the material for any purpose, even commercially
17
+
18
+ Under the following terms:
19
+ - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
20
+ - No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
21
+
22
+
23
+ Attribution Requirement
24
+
25
+ This dataset combines multiple open-source datasets. When using this dataset, you must provide attribution to:
26
+ 1. This curated dataset
27
+ 2. All original source datasets
28
+
29
+ All included sources permit commercial use and redistribution with attribution.
30
+
31
+
32
+ Source Datasets
33
+
34
+ This dataset aggregates 23 open-source drone detection datasets from:
35
+
36
+ Kaggle
37
+ 1. https://www.kaggle.com/datasets/dasmehdixtr/drone-dataset-uav (MIT)
38
+ 2. https://www.kaggle.com/datasets/sshikamaru/drone-yolo-detection (CC BY 4.0)
39
+ 3. https://www.kaggle.com/datasets/nyahmet/fixed-wing-uav-dataset (CC0)
40
+
41
+ Roboflow Universe (all CC BY 4.0)
42
+ 4. https://universe.roboflow.com/drone-rwsrk/drone-cmxwz
43
+ 5. https://universe.roboflow.com/test-gaiza/drone-fm51j
44
+ 6. https://universe.roboflow.com/guide-mnmib/drone-uxto9
45
+ 7. https://universe.roboflow.com/project-986i8/drone-uskpc
46
+ 8. https://universe.roboflow.com/drone-6awy5/drone-tbxzo
47
+ 9. https://universe.roboflow.com/solar-jivmt/drone-vizwp
48
+ 10. https://universe.roboflow.com/drone-l3ty9/drone-6cbn9
49
+ 11. https://universe.roboflow.com/khanhlatao/drone-w607c
50
+ 12. https://universe.roboflow.com/drone-ldsbj/drone-ntvhe
51
+ 13. https://universe.roboflow.com/drone-gpmet/drone-xyhff
52
+ 14. https://universe.roboflow.com/ilay-asis-ohxec/drone-144la
53
+ 15. https://universe.roboflow.com/njit-6mjxn/drone-detection-fmgs5
54
+ 16. https://universe.roboflow.com/rohit-gopalan/drone-detection-kmtxt
55
+ 17. https://universe.roboflow.com/truffier-nicolas-vnjqt/drone-11-gymdz
56
+ 18. https://universe.roboflow.com/tracker-qjlj1/drones_new
57
+ 19. https://universe.roboflow.com/uavs-7l7kv/uavs-vqpqt
58
+ 20. https://universe.roboflow.com/military-drone/drone_mil-u8fqk
59
+ 21. https://universe.roboflow.com/kitkk/ip-proj-2-quadcopter
60
+ 22. https://universe.roboflow.com/paresh-makwana/drone-detect-suvzw
61
+
62
+ HuggingFace
63
+ 23. https://huggingface.co/datasets/pathikg/drone-detection-dataset (MIT)
README.md ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - object-detection
4
+ - yolo
5
+ - drone-detection
6
+ - computer-vision
7
+ license: cc-by-4.0
8
+ task_categories:
9
+ - object-detection
10
+ pretty_name: Seraphim Drone Dataset
11
+ size_categories:
12
+ - 10K<n<100K
13
+ language:
14
+ - en
15
+ viewer: false
16
+ ---
17
+
18
+ # Seraphim Drone Detection Dataset
19
+
20
+ <center>
21
+ <img src="assets/logo.png" style="background-color:white;" alt="Seraphim Drone Detection Dataset" width="400">
22
+ </center>
23
+
24
+ ## Dataset Overview
25
+
26
+ This is a comprehensive drone image dataset curated from **23 open-source datasets** and processed through a custom cleaning pipeline. The dataset is designed for training object detection models to identify drones in various environments and conditions. The majority of images feature rotary-wing (multi-rotor) unmanned aerial vehicles (UAVs), with a smaller portion representing fixed-wing and hybrid.
27
+
28
+ <center>
29
+ <img src="assets/samples.png" alt="Sample Images">
30
+ </center>
31
+
32
+ ### Key Features
33
+ To ensure interoperability and consistency, all images were resized and padded to a 640×640 format and annotated using the YOLO standard.
34
+
35
+ - **Format**: YOLO
36
+ - **Classes**: 1 (drone)
37
+ - **Total Images**: 83,483
38
+ - **Train subset**: 75,134
39
+ - **Test subset**: 8,349
40
+ - **Augmentation**: No extra data augmentation was introduced (except for the 640x640 padding), the dataset retains only the augmentations originally applied in the source datasets
41
+ - **Source Datasets**: 23 open-source collections
42
+ - **License**: CC BY 4.0
43
+
44
+ ## Dataset Statistics
45
+ The following visualizations summarize the dataset’s structure and distribution:
46
+ - number of objects per image,
47
+ - distribution of multi-object images (2+ drones per image),
48
+ - bounding-box size categories and frequency,
49
+ - spatial density of drone annotation centers.
50
+
51
+ Drone size is defined as the ratio of the bounding-box area to the full image area. We use COCO-style buckets
52
+ (scaled to 640×640 = 409,600 px²):
53
+ - Tiny: < 0.0625% of image area (below 16x16 pixels for a square object),
54
+ - Small: 0.0625%–0.25% of image area (16x16 – 32x32 pixels),
55
+ - Medium: 0.25%–2.25% of image area (32x32 – 96x96 pixels),
56
+ - Large: ≥ 2.25% of image area (equal or above 96x96 pixels).
57
+
58
+ Notes:
59
+ - Percent ranges refer to bbox_area / image_area × 100%.
60
+ - Pixel equivalents assume a roughly square object (for intuition only).
61
+ - These thresholds reflect typical detection difficulty bands (tiny/small objects are notably harder).
62
+
63
+ | ![](assets/object_count_distribution.png) | ![](assets/multiple_object_count_distribution.png) |
64
+ |:--:|:--:|
65
+ | **Number of objects per image** | **Distribution of multi-object images** |
66
+ | ![](assets/drone_bbox_size_treemap.png) | ![](assets/drone_center_heatmap.png) |
67
+ | **Bounding-box size categories and frequency** | **Spatial density of drone annotation centers** |
68
+
69
+ ## Dataset Structure
70
+ ```
71
+ dataset/
72
+ ├── train/
73
+ │ ├── images/ # 75,134 image files
74
+ │ │ └── *.jpg # Training images
75
+ │ └── labels/
76
+ │ └── *.txt # YOLO format annotations
77
+ ├── test/
78
+ │ ├── images/ # 8,349 image files
79
+ │ │ └── *.jpg # Test images
80
+ │ └── labels/
81
+ │ └── *.txt # YOLO format annotations
82
+ ├── assets/ # Documentation assets
83
+ ├── LICENSE # CC BY 4.0 license
84
+ ├── README.md # Dataset card
85
+ └── .gitattributes # Git LFS rules
86
+ ```
87
+
88
+
89
+ Note on archives:
90
+ - Images and labels are stored on HuggingFace in zipped batches (e.g., train/images/batch_001.zip, train/labels/batch_001.zip) to make uploads/downloads faster and more reliable.
91
+ - You can selectively fetch only the batches you need and after extraction the layout becomes standard YOLO (.../images/*.jpg, .../labels/*.txt).
92
+ - Below is a code snippet showing how to download and extract the dataset from HuggingFace.
93
+
94
+ ## Data Processing
95
+ This dataset underwent a custom processing pipeline:
96
+ 1. **Consolidation:** Merged 23 source datasets (~268,957 original images).
97
+ 2. **Missing labels and invalid images removal:** Removed images without labels and invalid images.
98
+ 3. **Exact-duplicate filtering:** Removed identical images and near-duplicates measured by mean pixel difference.
99
+ 4. **Near-duplicate filtering:** Removed visually similar ones based on perceptual hashing with image rotation and flipping.
100
+ 5. **Resolution Standardization:** Resized all images to 640x640.
101
+
102
+ ## Limitations
103
+ - **Label Accuracy:** The dataset was cleaned for duplicates and standardized in format, but no additional quality improvements or manual relabeling were applied. The accuracy of annotations reflects the quality of the source datasets. Future improvements may include bounding-box refinement and manual content validation.
104
+ - **Image Characteristics:** The dataset includes a diverse mix of real drone photographs, marketing images (e.g., promotional materials or product visualizations), and computer-generated (synthetic) images. While this diversity increases coverage of different visual conditions and drone types, it may also affect model generalization to real-world aerial scenarios. Future updates will aim to tag or separate these subsets and potentially filter them out.
105
+
106
+ ## Usage
107
+
108
+ ### Loading with HuggingFace Hub
109
+
110
+ ```python
111
+ from huggingface_hub import snapshot_download
112
+ import zipfile
113
+ from pathlib import Path
114
+
115
+ # --- Configuration ---
116
+ REPO_ID = "lgrzybowski/seraphim-drone-detection-dataset"
117
+ LOCAL_DIR = Path("repository_location") # TODO: change to your local directory
118
+
119
+ # --- Step 1: Download the entire repo ---
120
+ repo_path = Path(snapshot_download(repo_id=REPO_ID, repo_type="dataset", local_dir=LOCAL_DIR))
121
+
122
+ # --- Step 2: Unzip all .zip files in place ---
123
+ zip_files = list(repo_path.rglob("*.zip"))
124
+ print(f"Found {len(zip_files)} zip files to extract")
125
+
126
+ for zip_path in zip_files:
127
+ try:
128
+ with zipfile.ZipFile(zip_path, "r") as z:
129
+ z.extractall(zip_path.parent)
130
+ print(f"✅ Extracted: {zip_path.relative_to(repo_path)}")
131
+ zip_path.unlink() # remove the zip file
132
+ except zipfile.BadZipFile:
133
+ print(f"⚠️ Skipping invalid zip: {zip_path}")
134
+
135
+ print("🎉 All zips extracted and removed.")
136
+ print(f"📂 Dataset ready at: {repo_path.resolve()}")
137
+ ```
138
+
139
+ ### Downloading the dataset with HuggingFace CLI
140
+ ```bash
141
+ hf download lgrzybowski/seraphim-drone-detection-dataset --repo-type dataset
142
+ ```
143
+
144
+ ## Source Datasets
145
+
146
+ This dataset aggregates **23 open-source drone detection datasets**:
147
+
148
+ ### Kaggle
149
+ 1. [dasmehdixtr/drone-dataset-uav](https://www.kaggle.com/datasets/dasmehdixtr/drone-dataset-uav) (MIT)
150
+ 2. [sshikamaru/drone-yolo-detection](https://www.kaggle.com/datasets/sshikamaru/drone-yolo-detection) (CC BY 4.0)
151
+ 3. [nyahmet/fixed-wing-uav-dataset](https://www.kaggle.com/datasets/nyahmet/fixed-wing-uav-dataset) (CC0)
152
+
153
+ ### Roboflow Universe (all CC BY 4.0)
154
+ 4. [drone-rwsrk/drone-cmxwz](https://universe.roboflow.com/drone-rwsrk/drone-cmxwz)
155
+ 5. [test-gaiza/drone-fm51j](https://universe.roboflow.com/test-gaiza/drone-fm51j)
156
+ 6. [guide-mnmib/drone-uxto9](https://universe.roboflow.com/guide-mnmib/drone-uxto9)
157
+ 7. [project-986i8/drone-uskpc](https://universe.roboflow.com/project-986i8/drone-uskpc)
158
+ 8. [drone-6awy5/drone-tbxzo](https://universe.roboflow.com/drone-6awy5/drone-tbxzo)
159
+ 9. [solar-jivmt/drone-vizwp](https://universe.roboflow.com/solar-jivmt/drone-vizwp)
160
+ 10. [drone-l3ty9/drone-6cbn9](https://universe.roboflow.com/drone-l3ty9/drone-6cbn9)
161
+ 11. [khanhlatao/drone-w607c](https://universe.roboflow.com/khanhlatao/drone-w607c)
162
+ 12. [drone-ldsbj/drone-ntvhe](https://universe.roboflow.com/drone-ldsbj/drone-ntvhe)
163
+ 13. [drone-gpmet/drone-xyhff](https://universe.roboflow.com/drone-gpmet/drone-xyhff)
164
+ 14. [ilay-asis-ohxec/drone-144la](https://universe.roboflow.com/ilay-asis-ohxec/drone-144la)
165
+ 15. [njit-6mjxn/drone-detection-fmgs5](https://universe.roboflow.com/njit-6mjxn/drone-detection-fmgs5)
166
+ 16. [rohit-gopalan/drone-detection-kmtxt](https://universe.roboflow.com/rohit-gopalan/drone-detection-kmtxt)
167
+ 17. [truffier-nicolas-vnjqt/drone-11-gymdz](https://universe.roboflow.com/truffier-nicolas-vnjqt/drone-11-gymdz)
168
+ 18. [tracker-qjlj1/drones_new](https://universe.roboflow.com/tracker-qjlj1/drones_new)
169
+ 19. [uavs-7l7kv/uavs-vqpqt](https://universe.roboflow.com/uavs-7l7kv/uavs-vqpqt)
170
+ 20. [military-drone/drone_mil-u8fqk](https://universe.roboflow.com/military-drone/drone_mil-u8fqk)
171
+ 21. [kitkk/ip-proj-2-quadcopter](https://universe.roboflow.com/kitkk/ip-proj-2-quadcopter)
172
+ 22. [paresh-makwana/drone-detect-suvzw](https://universe.roboflow.com/paresh-makwana/drone-detect-suvzw)
173
+
174
+ ### HuggingFace
175
+ 23. [pathikg/drone-detection-dataset](https://huggingface.co/datasets/pathikg/drone-detection-dataset) (MIT)
176
+
177
+ ## Citation
178
+
179
+ If you use this dataset in your research, please cite:
180
+
181
+ ```bibtex
182
+ @dataset{seraphim_drone_detection_dataset_2025,
183
+ title={Seraphim Drone Detection Dataset},
184
+ author={Łukasz Grzybowski},
185
+ year={2025},
186
+ organization = {Seraphim Defence Systems},
187
+ publisher={HuggingFace},
188
+ url={https://huggingface.co/datasets/lgrzybowski/seraphim-drone-detection-dataset},
189
+ note={Curated from 23 open-source datasets, CC BY 4.0 license}
190
+ }
191
+ ```
192
+
193
+ ## License
194
+
195
+ This dataset is licensed under [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/).
196
+
197
+ ## Contact
198
+
199
+ - **Author**: [Łukasz Grzybowski](https://www.linkedin.com/in/lukasz-grzybowski/)
200
+ - **Organization**: [Seraphim Defence Systems](https://seraphim-systems.com/)
201
+ © 2025
202
+
203
+ ## Acknowledgments
204
+
205
+ Special thanks to all the original dataset creators and contributors who made their datasets available under open licenses. This curated dataset builds upon their valuable work in the drone detection research community.
assets/drone_bbox_size_treemap.png ADDED

Git LFS Details

  • SHA256: dd345b1788dfc95f35f54e9e95d96f67ea09d5659c9429348092274b35032b21
  • Pointer size: 131 Bytes
  • Size of remote file: 103 kB
assets/drone_center_heatmap.png ADDED

Git LFS Details

  • SHA256: 7d9d49bbe591fa79b173c893e0b2ce4ef8969d020d3aedb8d64a98bd0ea78ce7
  • Pointer size: 131 Bytes
  • Size of remote file: 183 kB
assets/logo.png ADDED

Git LFS Details

  • SHA256: eaa9bf292a8d48bef0c71eecea4d1ecc38f79d7132d5b73f9271a38c1a956589
  • Pointer size: 131 Bytes
  • Size of remote file: 783 kB
assets/multiple_object_count_distribution.png ADDED

Git LFS Details

  • SHA256: fdf9872c3de4412662a36684d892a4b3ea743dc6b509f93910992687dd75c234
  • Pointer size: 130 Bytes
  • Size of remote file: 90.6 kB
assets/object_count_distribution.png ADDED

Git LFS Details

  • SHA256: 6df3b005032ca89e3e215485a0b1a30de17ea51a4a9ea8345b59391eb820906f
  • Pointer size: 131 Bytes
  • Size of remote file: 110 kB
assets/samples.png ADDED

Git LFS Details

  • SHA256: b75e8fe7222aba513fc9f5e916123b5d0d9a8284706d1a647f6a013b1d375a05
  • Pointer size: 132 Bytes
  • Size of remote file: 4.89 MB
test/images/batch_001.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7814e04e1f71507e81fa82c1d3ba81d329be4d1b74b516e03486fb61d1e9f66
3
+ size 905292666
test/labels/batch_001.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:acc23d50d24ff7b5f2ec212907e3b951451b8c94686234eae9b52379aed40350
3
+ size 1094291
train/images/batch_001.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77acad100d29009c5fd1da9576a82c104e4d20d9799eb1c8ab6d125f04f02eb0
3
+ size 2159276034
train/images/batch_002.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bb639b4b1cc4f8a9d3c73a9d49aa73d70200823e0b08316443f7f21aaf2fa5e3
3
+ size 2757860319
train/images/batch_003.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2cb7e04a7171d37ecd22f62fd94a30cd88c08a31c0dedbd49aa65c7e47f1f8a3
3
+ size 1553024795
train/images/batch_004.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:359015cb9be1378709ef7de3cb90ecfd28e2a1fc9105a4e4d77c0afac3b865a9
3
+ size 1743908201
train/labels/batch_001.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92118e616f1c27fd4ea1ea582606b7a19d2bb1925809f54d6994cfb2496c235b
3
+ size 9841636