Knitting Robots: A Deep Learning Approach for Reverse-Engineering Fabric Patterns