Sketch foreground training script