Spaces:
Build error
Build error
kapil commited on
Commit ·
db5440d
1
Parent(s): 8e03aff
docs: update README with project details and add dashboard preview image
Browse files
README.md
CHANGED
|
@@ -1,43 +1,86 @@
|
|
| 1 |
-
#
|
| 2 |
|
| 3 |
-
A high-performance dart scoring system
|
| 4 |
|
| 5 |
-
 project.
|
| 4 |
|
| 5 |
+

|
| 6 |
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
## Project Origin
|
| 10 |
+
|
| 11 |
+
This system is an optimized re-implementation of the **[Dart-Vision](https://github.com/iambhabha/Dart-Vision)** repository. While the original project provided the foundational neural logic in Python/PyTorch, this engine focuses on:
|
| 12 |
+
- **Performance:** Sub-millisecond tensor operations using the Burn framework.
|
| 13 |
+
- **Safety:** Eliminating runtime overhead and ensuring thread-safe inference.
|
| 14 |
+
- **Modern UI:** Transitioning from local scripts to a professional Glassmorphism web dashboard.
|
| 15 |
+
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
## Technical Overview
|
| 19 |
+
|
| 20 |
+
The engine implements a multi-stage neural pipeline designed for millisecond-latency inference and robust coordinate recovery.
|
| 21 |
+
|
| 22 |
+
### Neural Pipeline Workflow
|
| 23 |
+
- **Input:** 800x800 RGB Image Frame.
|
| 24 |
+
- **Mapping:** YOLOv4-tiny backbone extracts point-of-interest features.
|
| 25 |
+
- **Verification:** Keypoint confidence filtering and objectness thresholds.
|
| 26 |
+
- **Symmetry Recovery:** Mathematical reconstruction of obscured calibration points.
|
| 27 |
+
- **Scoring:** BDO standard coordinate mapping for final point calculation.
|
| 28 |
+
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
## CLI Reference Guide
|
| 32 |
|
| 33 |
+
| Command | Action | Key Features |
|
| 34 |
+
| :--- | :--- | :--- |
|
| 35 |
+
| `cargo run --release -- gui` | Start Dashboard | Web UI (8080), Live SVG Overlays, Confidence Diagnostics |
|
| 36 |
+
| `cargo run --release -- train` | Begin Training | Adam Optimizer, DIOU Loss, Auto-Checkpointing |
|
| 37 |
+
| `cargo run --release -- test <path>` | Direct Inference | Raw Coordinate Reporting, Confidence Analysis |
|
| 38 |
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
## Installation and Setup
|
| 42 |
+
|
| 43 |
+
### Prerequisites
|
| 44 |
+
- **Rust Toolchain:** Stable channel (Latest).
|
| 45 |
+
- **GPU Driver:** Support for Vulkan, Metal, or DirectX 12 (via WGPU).
|
| 46 |
+
- **Hard Drive Space:** Minimum 1GB (excluding dataset).
|
| 47 |
+
|
| 48 |
+
### Initial Setup
|
| 49 |
+
1. Clone the repository.
|
| 50 |
+
2. Ensure `model_weights.bin` is present in the root directory.
|
| 51 |
+
3. To test the GUI immediately, run the `gui` command.
|
| 52 |
+
4. For custom training, place your images in `dataset/800/` and configuration in `dataset/labels.json`.
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
|
| 56 |
+
## Advanced Architecture and Optimization
|
| 57 |
+
|
| 58 |
+
### 1. Distance-IOU (DIOU) Loss Implementation
|
| 59 |
+
Our implementation moves beyond standard Mean Squared Error. By utilizing DIOU Loss, the engine optimizes for:
|
| 60 |
+
- Overlap area between prediction and target.
|
| 61 |
+
- Euclidean distance between the central points.
|
| 62 |
+
- Geometric consistency of the dart point shape.
|
| 63 |
+
|
| 64 |
+
### 2. Deep-Dart Symmetry Engine
|
| 65 |
+
If a calibration corner is missing or obscured by a dart or observer, the system invokes a symmetry-based recovery algorithm. By calculating the centroid of the remaining points and applying rotational offsets, the board coordinates are maintained without recalibration.
|
| 66 |
+
|
| 67 |
+
### 3. Memory & VRAM Optimization
|
| 68 |
+
The training loop is architected to detach the Autodiff computation graph during logging cycles. This reduces VRAM consumption from an unoptimized 270GB down to approximately 3.3GB per training sample at 800x800 resolution.
|
| 69 |
+
|
| 70 |
+
---
|
| 71 |
|
| 72 |
+
## Resources and Research
|
|
|
|
| 73 |
|
| 74 |
+
This project is built upon advanced research in the computer vision and darts community:
|
|
|
|
|
|
|
| 75 |
|
| 76 |
+
### Scientific Publications
|
| 77 |
+
- **arXiv Project (2105.09880):** [DeepDarts: Neural Network for Coordinate Reconstruction](https://arxiv.org/abs/2105.09880)
|
| 78 |
+
- **Darknet Research:** [YOLOv4-tiny Implementation and Paper](https://pjreddie.com/darknet/yolo/)
|
|
|
|
|
|
|
| 79 |
|
| 80 |
+
### Source Materials
|
| 81 |
+
- **Original Project:** [iambhabha/Dart-Vision](https://github.com/iambhabha/Dart-Vision)
|
| 82 |
+
- **Dataset (IEEE Dataport):** [Official DeepDarts Collection (16K+ Images)](https://ieee-dataport.org/open-access/deepdarts-dataset)
|
| 83 |
+
- **Framework (Burn):** [Burn Deep Learning Documentation](https://burn.dev/book/)
|
|
|
|
| 84 |
|
| 85 |
---
|
| 86 |
+
*Distributed under the terms of the project's license. Built for the global darts technology ecosystem.*
|
image.png
ADDED
|
Git LFS Details
|