Skip to content

Glossary: Computer Vision Basics

eval mode and train mode

Also written: eval(), train(), model.eval(), model.train()

Switches that change how some layers behave: in `train()` mode batch normalization uses each batch's statistics, while `eval()` mode uses its running averages. Use `eval()` for validation, testing and inference.

Where the book teaches it

Related terms

batch normalizationinference