In modern knitted garment production, accurate identification of fabric texture is crucial for enabling automation and ensuring consistent quality control. Traditional manual recognition methods not only demand considerable human effort but also suffer from inefficiencies and are prone to subjective errors. Although machine learning-based approaches have made notable advancements, they typically rely on manual feature extraction. This dependency is time-consuming and often limits recognition accuracy. To address these limitations, this paper introduces a novel model, called the Differentiated Leaning Weighted DenseNet (DLW-DenseNet), which builds upon the DenseNet architecture. Specifically, DLW-DenseNet introduces a learnable weight mechanism that utilizes channel attention to enhance the selection of relevant channels. The proposed mechanism reduces information redundancy and expands the feature search space of the model. To maintain the effectiveness of channel selection in the later stages of training, DLW-DenseNet incorportes a differentiated learning strategy. By assigning distinct learning rates to the learnable weights, the model ensures continuous and efficient channel selection throughout the training process, thus facilitating effective model pruning. Furthermore, in response to the absence of publicly available datasets for fabric texture recognition, we construct a new dataset named KF9 (knitted fabric). Compared to the fabric recognition network based on the improved ResNet, the recognition accuracy has increased by five percentage points, achieving a higher recognition rate. Experimental results demonstrate that DLW-DenseNet significantly outperforms other representative methods in terms of recognition accuracy on the KF9 dataset.
17 April 2026 in Journal of King Saud University Computer and Information Sciences
Fabric defect detection is critical for ensuring textile quality in industrial manufacturing. However, existing methods face significant challenges when dealing with complex texture backgrounds, high similarity between defects and normal patterns, extreme aspect ratios, and small defect sizes. To address these issues, we propose ASCR-DETR, an enhanced Detection Transformer specifically designed for fabric defect detection. First, we propose an Adaptive Spatial Geometric Convolution (ASGC) module, which dynamically adjusts sampling locations and modulation parameters through a Tri-Dimensional Cooperative Attention (TDCA) mechanism, enabling effective modeling and accurate capture of irregular defect geometries. Second, we design a Context-Guided Spatial Reconstruction Feature Pyramid Fusion Network (CSRFPN) that implements a progressive three-stage "calibration-reconstruction-fusion" framework. This network establishes cross-scale semantic correlations by aggregating multi-resolution contextual information, performs fine-grained spatial reconstruction to enhance local discriminability at each pyramid level, and achieves progressive top-down feature aggregation through dynamic interpolation and gated fusion mechanisms, effectively preserving small defect details while suppressing background interference across multiple scales. Third, we incorporate Coordinate Attention (CA) mechanisms to enhance global contextual representation, and introduce Dynamic Range Histogram Self-Attention (DRHS-AIFI) for intra-scale feature interaction, effectively suppressing background interference through value-domain statistical modeling. Extensive experiments on public and industrial datasets demonstrate that ASCR-DETR achieves 85.3% mAP@50(+7.1%) and 45.9% mAP@50:95(4.9%), outperforming state-of-the-art CNN-based and Transformer-based detectors while maintaining real-time performance, validating its effectiveness and deployment potential for industrial fabric inspection systems. The source code is available at:https://github.com/justDo000/ASCR-DETR.
Recognizing oracle bone scripts plays an important role in Chinese archaeology and philology. However, a significant challenge remains because of the scarcity of oracle character images. To overcome this issue, we propose Diff-Oracle, a novel multi-modal conditional diffusion model that generates a diverse range of controllable oracle characters by inputting random combinations of references. Given the challenge of accurately describing oracle character styles using natural language, Diff-Oracle departs from traditional diffusion models that rely primarily on text prompts by introducing a style encoder. This encoder extracts style prompts from existing oracle character images, where style details are converted into a text embedding format via a pre-trained language-vision model. Additionally, given the lack of explicit content information for oracle characters, ensuring that generated characters accurately represent the intended glyphs is challenging. Therefore, we pre-generate pixel-level paired oracle character images (i.e., style and content images) by an image-to-image translation model, providing content information for the generation process. Meanwhile, Diff-Oracle integrates a content encoder designed to capture specific content details from content reference images. Extensive experiments on Oracle-241 and OBC306 datasets demonstrate that Diff-Oracle significantly outperforms existing generative methods in image quality and diversity. Moreover, Diff-Oracle substantially benefits downstream recognition tasks, outperforming all existing state-of-the-art methods by a large margin. In particular, on the challenging OBC306 dataset, Diff-Oracle achieves a 7.70% accuracy gain in the zero-shot setting and reaches 84.62% accuracy for unseen oracle characters, setting a new benchmark for oracle character recognition. The code is available at https://github.com/JJJingLi/Diff-Oracle .
Generative Artificial Intelligence has shown immense potential in industrial design. However, applying Diffusion Transformers to precision manufacturing faces a critical bottleneck: the trade-off between flexible multi-task editing and high-fidelity texture preservation. Existing methods often suffer from “texture collapse” when merging multiple adapters, failing to maintain the intricate topological structures required for industrial standards. To address this, we present Knit-Edit, a unified framework for high-precision knitted garment editing. Our core contribution is EditLoRI, a novel task decoupling mechanism utilizing orthogonal Low-Rank Adaptation. By projecting task-specific gradients into orthogonal subspaces, EditLoRI enables the interference-free composition of multiple editing capabilities within a single lightweight model. Furthermore, we introduce a structure-preserving spatial guidance strategy using Bounding Boxes to resolve the localization ambiguity of text prompts. Validated on our constructed KnitEdit dataset, the proposed method significantly outperforms state-of-the-art baselines in controllability and structural fidelity, offering a robust solution for intelligent generative manufacturing.