# Red-ink removal inference and training code