A robust wood material crack detection algorithm, sensitive to small targets, is indispensable for production and building protection. However, the precise identification and localization of cracks in wooden materials present challenges owing to significant scale variations among cracks and the irregular quality of existing data. In response, we propose a crack detection algorithm tailored to wooden materials, leveraging advancements in the YOLOv8 model, named ICDW-YOLO (improved crack detection for wooden material-YOLO). The ICDW-YOLO model introduces novel designs for the neck network and layer structure, along with an anchor algorithm, which features a dual-layer attention mechanism and dynamic gradient gain characteristics to optimize and enhance the original model. Initially, a new layer structure was crafted using GSConv and GS bottleneck, improving the model’s recognition accuracy by maximizing the preservation of hidden channel connections. Subsequently, enhancements to the network are achieved through the gather–distribute mechanism, aimed at augmenting the fusion capability of multi-scale features and introducing a higher-resolution input layer to enhance small target recognition. Empirical results obtained from a customized wooden material crack detection dataset demonstrate the efficacy of the proposed ICDW-YOLO algorithm in effectively detecting targets. Without significant augmentation in model complexity, the mAP50–95 metric attains 79.018%, marking a 1.869% improvement over YOLOv8. Further validation of our algorithm’s effectiveness is conducted through experiments on fire and smoke detection datasets, aerial remote sensing image datasets, and the coco128 dataset. The results showcase that ICDW-YOLO achieves a mAP50 of 69.226% and a mAP50–95 of 44.210%, indicating robust generalization and competitiveness vis-à-vis state-of-the-art detectors.
The vastness of gaming plots and variety of environments in computer games require large amount of labors in soundtrack compositions. Current technologies have good performances at improvisations in short melody compositions, but face great challenges in industrial level automatic compositions of highly structured tracks for games. In this work, the overall structure specifying transitions and repetitions of melodies is given by human, and detailed contents like notes and rhythms are completed with a Gaussian mixture model (GMM) and generative adversarial nets (GAN). GMM can be arbitrarily controlled to form structures because its latent space is often similar to the data space. A layered framework is devised where the basic layer composes melodies and high-level layers organize melodies according to long term structures. In each layer, a Gaussian mixture generative model with constraints is constructed to compose candidate tracks, while another GMM network is trained in competition with the generator, such that optimal tracks from the generator are identified. Experiments show that the proposed framework has a high rate of composing acceptable soundtracks. Entropy curves calculated show that the composed tracks are more similar to game soundtracks than recurrent neural networks.