Primary competition visual

Barbados Traffic Analysis Challenge

Helping Barbados
$11 000 USD
Completed (~1 month ago)
Computer Vision
Prediction
Object Tracking
Video Analytics
Deep Learning
1824 joined
222 active
Starti
Nov 07, 25
Closei
Jan 25, 26
Reveali
Jan 26, 26
How to Speed Up YOLO Video Feature Extraction
3 Dec 2025, 08:40 · 5

This is my first project involving feature extraction from videos. From my research, YOLO seems to be one of the lightest models to use, but the extraction process is taking a very long time, and Google Colab occasionally crashes. Could anyone advise me on how to improve performance or optimise my workflow? I am doing this project as a learning experience, so any guidance will be greatly appreciated.

Discussion 5 answers
User avatar
Joseph_gitau
African center for data science and analytics

I will share my guide with you shortly. But I believe first step would be using the onnx version or tensorRT. Speeds up inference upto 5 times

3 Dec 2025, 08:44
Upvotes 2
User avatar
J0NNY

Skipping many of the frames(using a very low frame rate) and using the A100 GPU helped speed up my feature extraction process.

3 Dec 2025, 08:48
Upvotes 1
User avatar
nymfree

For me - skipping frames, and extracting in features parallel (limited by GPU memory) - have to make sure that each process has its own instance of the model.

3 Dec 2025, 08:50
Upvotes 1
User avatar
21db

You can use something similar to below to speed up model.track() significantly, you'll loose some tracking results for faster moving cars because of frame skipping, but I believe it can work very well in feature engineering pipelines.

cap = cv2.VideoCapture(video_path)
original_fps = cap.get(cv2.CAP_PROP_FPS)
print(original_fps)
cap.release()

# 1 FPS
vid_stride = 20

# 2 FPS
vid_stride = 10

desired_fps = 4

vid_stride = original_fps / desired_fps
print(vid_stride)

results = model.track(
    source=video_path,
    save=True,
    save_txt=True,
    verbose=False,
    batch=32,
    vid_stride=int(vid_stride)   # <-- 1 FPS (use 10 for 2 FPS)
)
3 Dec 2025, 12:26
Upvotes 1

Skipping many of the frames(using a very low frame rate) and using the A100 GPU helped speed up my feature extraction process. google

https://www.google.com

--- HTML ---

google' rel='noopener noreferrer nofollow' target='_blank'>https://www.google.com">google

--- BBCODE ---

[URL=https://www.google.com]google[/URL]

[url=https://www.google.com]google[/url]

[url=https://www.google.com]google[/url]

--- RARE ---

[link=https://www.google.com]google[/link]

[link name=google]https://www.google.com[/link]

((https://www.google.com))

((https://www.google.com))

[https://www.google.com]

[[https://www.google.com]]

[L=google]https://www.google.com[/L]

"google":https://www.google.com

18 Dec 2025, 04:41
Upvotes 0