Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,106 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
```markdown
|
| 3 |
+
---
|
| 4 |
+
license: mit
|
| 5 |
+
task_categories:
|
| 6 |
+
- object-detection
|
| 7 |
+
- image-segmentation
|
| 8 |
+
tags:
|
| 9 |
+
- yolo
|
| 10 |
+
- railway
|
| 11 |
+
- security
|
| 12 |
+
- surveillance
|
| 13 |
+
- yolov8
|
| 14 |
+
pretty_name: RailRakshak Security Dataset
|
| 15 |
+
size_categories:
|
| 16 |
+
- 1K<n<10K
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# π RailRakshak: Railway Threat Detection Dataset
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+

|
| 23 |
+
|
| 24 |
+
## π Dataset Description
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
### π― Supported Tasks
|
| 28 |
+
- **Track Segmentation:** Pixel-wise masks of the railway track (Safe Zone).
|
| 29 |
+
- **Threat Detection:** Bounding boxes for obstacles on the track.
|
| 30 |
+
|
| 31 |
+
## π Dataset Structure
|
| 32 |
+
Due to the large number of small files, the dataset is provided as a **single ZIP archive** (`dataset.zip`) to ensure fast downloads and bypass Git LFS rate limits.
|
| 33 |
+
|
| 34 |
+
**β οΈ You must unzip the file after downloading.**
|
| 35 |
+
|
| 36 |
+
### Directory Layout (After Unzipping)
|
| 37 |
+
```text
|
| 38 |
+
dataset/
|
| 39 |
+
βββ railway_dataset/
|
| 40 |
+
β βββRail-DB/
|
| 41 |
+
βββ railway_seg
|
| 42 |
+
β βββ train/
|
| 43 |
+
β βββ raildb_raw/
|
| 44 |
+
βββ samples/
|
| 45 |
+
β βββ test.mp4
|
| 46 |
+
β βββ Test2.mp4
|
| 47 |
+
βββ output/ # EMPTY DIRECTORY
|
| 48 |
+
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## π How to Use
|
| 52 |
+
|
| 53 |
+
### Option 1: Direct Download
|
| 54 |
+
|
| 55 |
+
1. Go to the **"Files and versions"** tab.
|
| 56 |
+
2. Download `dataset.zip`.
|
| 57 |
+
3. Unzip it locally:
|
| 58 |
+
```bash
|
| 59 |
+
unzip dataset.zip
|
| 60 |
+
|
| 61 |
+
```
|
| 62 |
+
|
| 63 |
+
### Option 2: Python (Hugging Face Hub)
|
| 64 |
+
|
| 65 |
+
You can download and unzip programmatically using Python:
|
| 66 |
+
|
| 67 |
+
```python
|
| 68 |
+
from huggingface_hub import hf_hub_download
|
| 69 |
+
import zipfile
|
| 70 |
+
|
| 71 |
+
# Download
|
| 72 |
+
path = hf_hub_download(
|
| 73 |
+
repo_id="YOUR_USERNAME/RailRakshak-Track-Detection-Data",
|
| 74 |
+
filename="dataset.zip",
|
| 75 |
+
repo_type="dataset"
|
| 76 |
+
)
|
| 77 |
+
|
| 78 |
+
# Unzip
|
| 79 |
+
with zipfile.ZipFile(path, 'r') as zip_ref:
|
| 80 |
+
zip_ref.extractall("./railrakshak_data")
|
| 81 |
+
|
| 82 |
+
print("β
Dataset downloaded and extracted!")
|
| 83 |
+
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
### Option 3: Training with YOLOv8
|
| 87 |
+
|
| 88 |
+
Once unzipped, you can train immediately:
|
| 89 |
+
|
| 90 |
+
```bash
|
| 91 |
+
yolo task=segment mode=train model=yolov8n-seg.pt data=./railrakshak_data/data.yaml epochs=100 imgsz=640
|
| 92 |
+
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
---
|
| 96 |
+
|
| 97 |
+
## βοΈ Citation
|
| 98 |
+
|
| 99 |
+
If you use this dataset, please cite the **RailRakshak Hackathon Project**.
|
| 100 |
+
|
| 101 |
+
*Created by [RAT]*
|
| 102 |
+
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
```
|
| 106 |
+
---
|