Skip to content
ModelListedExternal
Download

VideoMaev2 Giant Nexar Solution

This repository contains a pretrained VideoMAEv2-giant model fine-tuned for the Nexar Safe Driving Video Analysis competition. The model is designed to predict collision and near-miss risks in driving videos.

KindOtherBase modelOpenGVLab/VideoMAEv2-giantVersionRevision c92cc86

Model source

Kind
Other
File size
11.3 GB
Base model
OpenGVLab/VideoMAEv2-giant
Version
vRevision c92cc86
Updated
Sep 25, 2026
Downloads
0
Source
Hugging Face

Source description

VideoMAE-based Vehicle Collision Prediction Solution

Model Description

This repository contains a pretrained VideoMAEv2-giant model fine-tuned for the Nexar Safe Driving Video Analysis competition. The model is designed to predict collision and near-miss risks in driving videos.

Performance: 4th place on the Kaggle public leaderboard with a score of 0.886.

Usage

The model takes video frames as input and outputs a probability score indicating the likelihood of an imminent collision or near-miss event.

# Example usage (pseudo-code)
from transformers import VideoMAEForVideoClassification
import torch

model = VideoMAEForVideoClassification.from_pretrained("zhiyaowang/VideoMaev2-giant-nexar-solution")
# Process video frames (16 frames recommended)
frames = preprocess_video(video_path)  # Shape: [1, 16, 3, 224, 224]
with torch.no_grad():
    outputs = model(frames)
probability = torch.softmax(outputs.logits / 2.0, dim=1)  # Temperature scaling T=2.0

Model Training

Data Processing

  • Frame Extraction & Timestamps: Extract frame sequences and timestamps from each video.
  • Sliding Window: Applied a sliding window approach with 16 frames (window size) and 2 frames (stride).
  • Label Assignment: Windows with their last frame within 1.5 seconds before a collision/near-miss event were labeled positive.
  • Data Balancing: Randomly undersampled negative

Sources

1 source
Hugging FacePrimaryVersion c92cc860b5cf5f18df218f5c945bd2ca326a78bd
huggingface.co/zhiyaowang/VideoMaev2-giant-nexar-solution/tree/c92cc860b5cf5f18df218f5c945bd2ca326a78bd

Verified Sep 12

Model artifacts

1 artifact

best.pth

pth · 11.3 GB · SHA-256 dbf68c391c33…9af7 · Hugging Face

Download file

Source excerpts

2 excerpts

--- language: en license: mit tags: - video - video-classification - videomae - collision-prediction - kaggle datasets: - nexar - nexar-ai/nexar_collision_prediction base_model: - OpenGVLab/VideoMAEv2-giant --- # VideoMAE-based Vehicle Collision Prediction Solution ## Model Description This repository contains a pretrained VideoMAEv2-giant model fine-tuned for the Nexar Safe Driving Video Analysis competition. The model is designed to predict collision and near-miss risks in driving videos. **Performance**: 4th place on the Kaggle public leaderboard with a score of 0.886. ## Usage The model takes video frames as input and outputs a probability score indicating the likelihood of an imminent collision or near-miss event. ```python # Example usage (pseudo-code) from transformers import VideoMAEForVideoClassification import torch model = VideoMAEForVideoClassification.from_pretrained("zhiyaowang/VideoMaev2-giant-nexar-solution") # Process video frames (16 frames recommended) frames = preprocess_video(video_path) # Shape: [1, 16, 3, 224, 224] with torch.no_grad(): outputs = model(frames) probability = torch.softmax(outputs.logits / 2.0, dim=1) # Temperature scaling T=2.0 ``` ## Model Training ### Data Processing - **Frame Extraction & Timestamps**: Extract frame sequences and timestamps from each video. - **Sliding Window**: Applied a sliding window approach with 16 frames (window size) and 2 frames (stride). - **Label Assignment**: Windows with their last frame within 1.5 seconds before a collision/near-miss event were labeled positive. - **Data Balancing**: Randomly undersampled negative

Source context: 0 downloads · 2 likes · Pipeline video-classification · Repo zhiyaowang/VideoMaev2-giant-nexar-solution