Minus-v0.3: TV ad detection on streaming sticks without an external card
2 min read
The Minus-v0.3 model is designed for the Minus hardware block, which blocks TV commercials by analyzing the screen image. Built on the LiquidAI/d1-omni-600M architecture (0.59B parameters), it answers two questions for each frame: whether it is an ad and what the screen state is (playback, pause, menu, etc.). Unlike the previous version, this model has been moved from the Axera auxiliary board to the built-in NPU of the RK3588 chip in the Rock 5B+. It will be useful for embedded computer vision developers and custom media center enthusiasts.
Key features
- Hardware optimization: runs on the built-in Rock 5B+ (RK3588) NPU without additional boards.
- Dual task: classifies ads and determines screen state in a single pass.
- Compactness: input resolution reduced to 320×320 pixels for high processing speed.
- Dataset: trained on over 100,000 frames from a real device.
What you can do
- TV box integration: set up automatic ad detection and blocking during viewing.
- Run via Transformers: test the model on a GPU using the transformers library and PyTorch.
- Export to RKNN: use ready-made fp16 graphs for deployment on ARM boards.
Example
import torch
from PIL import Image
from transformers import AutoModel
m = AutoModel.from_pretrained("TheGarageDev/Minus-v0.3", trust_remote_code=True, dtype=torch.float16).to("cuda").eval()
img = Image.open("frame.png").convert("RGB").resize((320, 320), Image.BILINEAR)
q = {"ad": {"type": "noul", "instructions": "Is this TV frame an advertisement?"}}
p_ad = m.system_one(None, q, images=[img])["answers"]["ad"]["noul"]
Read more
DetailsAccuracy on a test set of 800 images is 98.6% (99.5% for ad recognition).
Requires about 2.8 GB of RAM on the device.
Processing time per frame on the hardware is about 0.8 seconds.
Distributed under the terms of Liquid's LFM Open License v1.0.










Comments