CoolFace
Apppublic

SimulaMet-HOST/HockeyRink

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
App README

Hockey Rink Keypoint Detection

<div style="background-color:#f8f9fa; color:black; border-left: 6px solid #ff9800; padding: 10px; margin: 10px 0;">

๐Ÿ”— This interactive demo is powered by the <span style="color:red">HockeyRink</span> model and dataset.

  • โ€”๐Ÿ“‚ Download the dataset used in this project: <a href="https://huggingface.co/datasets/SimulaMet-HOST/HockeyRink" style="color:blue;">https://huggingface.co/datasets/SimulaMet-HOST/HockeyRink</a>
  • โ€”๐Ÿค– View details of the trained <span style="color:red">model</span>: <a href="https://huggingface.co/SimulaMet-HOST/HockeyRink" style="color:blue;">https://huggingface.co/SimulaMet-HOST/HockeyRink</a>

</div>

This repository contains a YOLOv8-based model for detecting and mapping keypoints on ice hockey rinks. The model is trained on the HockeyRink dataset, which comprises precise annotations of hockey rink landmarks.

Features

  • โ€”Accurate detection of 56 keypoint landmarks on hockey rinks
  • โ€”Real-time keypoint visualization with confidence scores
  • โ€”Support for various camera angles and lighting conditions
  • โ€”Handles player occlusions and dynamic game situations
  • โ€”Trained on diverse SHL (Swedish Hockey League) game footage

Model Details

  • โ€”Architecture: YOLOv8-Large pose estimation
  • โ€”Input: RGB images (any resolution)
  • โ€”Output: 56 keypoint coordinates with confidence scores
  • โ€”Average Performance:
  • โ€”mAP@0.5: 97.48%
  • โ€”mAP@0.5:0.95: 76.45%
  • โ€”Precision: 96.21%
  • โ€”Recall: 96.24%

Applications

  • โ€”Camera calibration and homography estimation
  • โ€”2D/3D scene mapping
  • โ€”Player tracking and analysis
  • โ€”Broadcast overlay generation
  • โ€”Game analytics and statistics
  • โ€”AR/VR applications

Usage

  1. 1.Upload an image containing a hockey rink view
  2. 2.The model will detect and visualize keypoints
  3. 3.Each keypoint is displayed with its ID and confidence score
  4. 4.Results can be used for further spatial analysis or visualization

Examples

The space includes example images demonstrating the model's performance in different scenarios:

  • โ€”Wide-angle rink views
  • โ€”Partially occluded scenes
  • โ€”Various lighting conditions
  • โ€”Dynamic game situations

Model Performance

  • โ€”Performance tested across different hardware setups
  • โ€”13.64 FPS on Tesla T4 GPU
  • โ€”6.4 FPS on M3 MacBook Pro
  • โ€”Handles varying lighting conditions and occlusions

<div style="background-color:#e7f3ff; color:black; border-left: 6px solid #0056b3; padding: 12px; margin: 10px 0;">

<span style="color:black; font-weight:bold;">๐Ÿ“ฉ For any questions regarding this project, or to discuss potential collaboration and joint research opportunities, please contact:</span>

<ul style="color:black;"> <li><span style="font-weight:bold; color:black;">Mehdi Houshmand</span>: <a href="mailto:mehdi@forzasys.com" style="color:blue; text-decoration:none;">mehdi@forzasys.com</a></li> <li><span style="font-weight:bold; color:black;">Cise Midoglu</span>: <a href="mailto:cisemidoglu@gmail.com" style="color:blue; text-decoration:none;">cisemidoglu@gmail.com</a></li> <li><span style="font-weight:bold; color:black;">Pรฅl Halvorsen</span>: <a href="mailto:paalh@simula.no" style="color:blue; text-decoration:none;">paalh@simula.no</a></li> </ul>

</div>