# 5.1. Freeze a model

The trained neural network is extracted from a checkpoint and dumped into a database. This process is called “freezing” a model. The idea and part of our code are from Morgan. To freeze a model, typically one does

\$ dp freeze -o graph.pb


in the folder where the model is trained. The output database is called graph.pb.