Code that speeds up labeling with rectlabel with machine learning assisted labeling (performed offline).