A fabric defect classification method and
system fusing multi-scale dynamic
convolution and
graph embedding constraints, aiming at the problems that existing methods are difficult to model irregular defects, similar defects are easy to confuse, and
small sample generalization is weak, hierarchical multi-scale features are extracted through Swin
Transformer; then a dynamic multi-scale refining module is designed, different
receptive field features are fused through context-aware dynamic
convolution, scale-dependent is modeled through cross-scale collaborative attention, and high discriminative features are output; the refined features are input into an integrated deep random vector functional connection network, and a boundary-aware
graph embedding constraint based on local Fisher
discriminant analysis is innovatively introduced in the optimization target, the feature manifold structure is explicitly modeled by constructing same-class intrinsic graph and different-class penalty graph, and the intra-class compactness and inter-class separation degree are strengthened. The present invention significantly reduces the misjudgment rate of similar defects, and meets the needs of industrial real-time detection.