Classification of Defective Fabrics Using Capsule Networks