Using a neural net to instantiate a deformable model