Unsupervised textile defect detection using convolutional neural networks