-
Notifications
You must be signed in to change notification settings - Fork 0
Models
Gaurav14cs17 edited this page Jun 21, 2026
·
1 revision
FlashTrack uses a three-stage architecture for ReID feature extraction:
- Backbone — ShuffleNetV2 (0.5x, 1.0x, or 1.5x)
- Feature Encoder — Lightweight CNN that compresses backbone features
- ReID Head — BN neck + FC for embedding, optional classifier for training
| Model | Backbone | ReID Dim | Encoder Ch | Params | FP16 Size |
|---|---|---|---|---|---|
| FlashTrack-m-0.5x | ShuffleNetV2 0.5x | 128 | 128 | ~0.3M | ~0.6 MB |
| FlashTrack-m | ShuffleNetV2 1.0x | 128 | 256 | ~0.8M | ~1.6 MB |
| FlashTrack-m-1.5x | ShuffleNetV2 1.5x | 256 | 384 | ~1.5M | ~3.0 MB |
from flashtrack.cfg import get_config
from flashtrack.models import build_model
cfg = get_config(model_size="m", input_size=(128, 64), num_ids=500)
model = build_model(cfg)
# Or directly
from flashtrack.models.tracker import FlashTracker
model = FlashTracker(
backbone_size="1.0x",
reid_dim=128,
encoder_channels=256,
num_ids=500,
)import torch
model.eval()
crops = torch.randn(4, 3, 128, 64)
embeddings = model.extract_features(crops) # [4, 128]info = model.get_model_info()
print(f"Parameters: {info['total_params']:,}")
print(f"FP16 size: {info['fp16_mb']:.2f} MB")FlashTrack — Multi-object tracking | PyPI | MIT License