Neural inverse procedural modeling of knitting yarns from images