Sketch foreground training script. Fix some typos.