Code Monkey home page Code Monkey logo

e2e-spot-mbs's Introduction

A Metric Boosting Strategy for Model Ensembling for Action Spotting in Videos

This is the Python code used to implement the E2E-Spot-MBS method as described in the technical report

Abstract

This technical report presents our solution to the Ball Action Spotting task submitted to the CVPR'23 SoccerNet Challenge. Details of this challenge can be found at https://www.soccer-net.org/tasks/ball-action-spotting. Our solution achieved a mean Average Precision (mAP@1) of 86.37% in the test phase and 83.47% in the challenge phase. Our approach is developed based on a baseline model termed E2E-Spot [3], which was provided by the organizers of this challenge. We first generated several variants of the E2E-Spot model, resulting in a candidate model set. We then proposed a strategy for selecting appropriate model members from this set and assigning an appropriate weight to each model. The aim of this strategy is to boost the performance metric of the resulting model ensemble. Therefore, we call our approach the metric boosting strategy (MBS).

Dataset

The dataset download can follow here.

Requirements

  • moviepy==1.0.3
  • natsort==8.3.1
  • numpy==1.21.5
  • opencv_contrib_python==4.2.0.32
  • SoccerNet==0.1.51
  • tabulate==0.8.10
  • timm==0.4.12
  • torch==1.12.1
  • torchvision==0.13.1
  • tqdm==4.64.0

Setup

Download the dataset based on the description of the link above.

Framing all the video data by running frames_as_jpg_soccernet_ball.py and storing corresponding results in ./match-jpg.

Install all the required packages.

Sub-model candidates preparasion

sub-model training: execute python train_e2e.py after setting following specific hyperparameters of each sub-model dilate_len, stride, feature_arch, swa, swa_start_epoch.

sub-model inference: execute python test_e2e.py for each trained sub-model.

Metric Boosting Strategy

  • execute python metric_boost_ensemble.py to achieve the information of selecting sub-model and corresponding weight.

  • execute python ensemble.py to achieve the ensembled result based on above achieved information.

Disclaimer

Please only use the code and dataset for research purposes.

Contact

Luping Wang
Zhejiang Lab, Research Center for Applied Mathematics and Machine Intelligence
[email protected]

Hao Guo
Zhejiang Lab, Research Center for Applied Mathematics and Machine Intelligence
[email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.