The usual suspects are colour channel order, mismatched normalisation constants or pixel scaling, a different resize method or aspect ratio handling, ignored image orientation metadata, different compression or colour space, and tensor layout mistakes. Prevent them by sharing one preprocessing module between training and serving, writing parity tests that compare outputs on the same images, and checking predictions on known inputs after every deployment.
Why interviewers ask this
These bugs are mundane, extremely common and capable of quietly wrecking a good model, so interviewers use the question to find people who have shipped models. They listen for specific failure modes rather than a vague mention of preprocessing, and for prevention through shared code and automated parity tests. Candidates who have a story about one of these bugs usually remember exactly how long it took to find.
How to structure your answer
- List the specific mismatches you have seen.
- Explain why they degrade rather than break the model.
- Prevent them with shared preprocessing code.
- Add parity tests and checks after every deployment.
Example answer
The classic one is channel order. A popular imaging library loads images as BGR, most training code assumes RGB, and the model still produces plausible output, just worse, so nobody notices for weeks. Then normalisation: different mean and standard deviation values, or pixels scaled to between zero and one in training but left at full range in serving. Resizing is another, either a different interpolation method or stretching to a square in one place and padding in the other. Phone photos carry orientation metadata, so an image that looks upright in training arrives sideways in serving if one path respects the metadata and the other ignores it. The reason these are dangerous is that the model degrades instead of crashing. My prevention is one preprocessing module imported by both training and serving, plus a parity test in continuous integration that runs a fixed set of images through both paths and fails if the outputs differ beyond a tolerance. On one project, that test caught a channel order bug that was costing two points of accuracy.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- How would you design a parity test for an edge deployment?
- What tolerance would you allow between training and serving outputs?
- How do you handle preprocessing that has to run on a different device?
Related computer vision engineer questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions