Problem
Users of a real-estate classifieds site browse dozens of apartments, and the state of the renovation matters to them. Listings carry no such attribute, so buyers cannot filter out old interiors. No public dataset of such photos exists, and the notion of "grandma's renovation" is subjective: different people label the same photo differently. A first random sample of 1000 photos also held too few positives to train on.
Example from the article: a listing with a carpet on the bedroom wall, Soviet-style finishing, an old kitchen set and worn wall tiles is a typical positive.
Solution in brief
Train a CNN (EfficientNet-B4) on room photos from the site's own database, labeled by a crowd against a fixed list of criteria. Grow and balance the set with a weak first model, then add augmentation. Serve it on CPU through ONNX and OpenVINO, with a high threshold so only the clearest cases are tagged.
Questions this case answers
- How to build a real-time image classifier for a subjective visual attribute when no labeled data exists and the positive class is rare
- How to serve a GPU-trained image model on CPU at low latency while keeping predictions identical to the training framework
- How to add a search filter for a subjective visual attribute, such as the age of a renovation, when no labeled dataset exists?
- How to build and balance a training set for a rare image class using a weak first model and crowd labeling?
Tools and methods
- EfficientNet-B4 — image classifier; beat ResNet on the team's data and fit the speed and resource limits
- PyTorch — training on GPU, export to ONNX
- ONNX, ONNX Runtime — intermediate format on the way to OpenVINO
- OpenVINO — fast CPU inference on Intel processors, with asynchronous requests
- OpenCV — default resize in the inference examples; replaced to match training
- Toloka — crowd labeling of photos
- Data augmentation — small rotation, horizontal flip, brightness and contrast changes
Google or a one-time email code. No password.
