sleepysaurus commited on
Commit
1cec2a4
Β·
verified Β·
1 Parent(s): a7fe8ca

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +106 -3
README.md CHANGED
@@ -1,3 +1,106 @@
1
- ---
2
- license: mit
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
+ ![YOLOv8](https://img.shields.io/badge/Format-YOLOv8-blue)
22
+ ![Task](https://img.shields.io/badge/Task-Object%20Detection%20%26%20Segmentation-green)
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
+ ---