Upload configs/default.yaml with huggingface_hub
Browse files- configs/default.yaml +47 -0
configs/default.yaml
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Roboflow Model Configuration
|
| 2 |
+
roboflow:
|
| 3 |
+
model_id: "" # Set your RF-DETR model ID here
|
| 4 |
+
api_key_env: "ROBOFLOW_API_KEY"
|
| 5 |
+
|
| 6 |
+
# Detection Settings
|
| 7 |
+
detection:
|
| 8 |
+
confidence_threshold: 0.5
|
| 9 |
+
player_class_id: 0
|
| 10 |
+
ball_class_id: 1
|
| 11 |
+
|
| 12 |
+
# Tracker Settings (ByteTrack)
|
| 13 |
+
tracker:
|
| 14 |
+
track_thresh: 0.5
|
| 15 |
+
high_thresh: 0.6
|
| 16 |
+
track_buffer: 30
|
| 17 |
+
match_thresh: 0.8
|
| 18 |
+
frame_rate: 30
|
| 19 |
+
|
| 20 |
+
# Team Assignment
|
| 21 |
+
team_assignment:
|
| 22 |
+
kmeans_clusters: 2
|
| 23 |
+
color_space: "RGB"
|
| 24 |
+
|
| 25 |
+
# Coordinate Mapping
|
| 26 |
+
mapping:
|
| 27 |
+
pitch_length: 105.0 # meters
|
| 28 |
+
pitch_width: 68.0 # meters
|
| 29 |
+
homography_method: "manual" # or "auto"
|
| 30 |
+
|
| 31 |
+
# Event Detection
|
| 32 |
+
events:
|
| 33 |
+
pass_velocity_threshold: 5.0 # m/s
|
| 34 |
+
dribble_distance_threshold: 2.0 # meters
|
| 35 |
+
shot_velocity_threshold: 15.0 # m/s
|
| 36 |
+
recovery_proximity: 1.0 # meters
|
| 37 |
+
|
| 38 |
+
# Checkpoint Settings
|
| 39 |
+
checkpoint:
|
| 40 |
+
interval_frames: 300 # Save every N frames
|
| 41 |
+
output_dir: "data/output/checkpoints"
|
| 42 |
+
|
| 43 |
+
# Output Settings
|
| 44 |
+
output:
|
| 45 |
+
csv_path: "data/output/events.csv"
|
| 46 |
+
json_path: "data/output/events.json"
|
| 47 |
+
frame_data_path: "data/output/frame_data.csv"
|