Table 2: Samples and their distribution.

SamplesSample sizeSamples used in trainingSamples used in testing

Color yarn651
Vertical missing yarn1688
Horizontal missing yarn1688
Hole1183
Spot1899
Defect-free331518

Total1005347