The invention discloses a multi-category image counterfeiting detection method, device and equipment and a medium, and relates to the technical field of
image processing, and the method can realize the recognition of a real face, a counterfeited face, a real cartoon face, a counterfeited cartoon face, a real sketch face and a counterfeited sketch face. According to the multi-
branch network, through integrating characteristics of pre-training models such as the EfficientNet, the ResNet and the DenseNet, and combining a
feature fusion attention layer, the classification capability of complex class images is remarkably improved. In order to construct a high-quality counterfeited sketch
data set and realize a counterfeited
image generation framework based on CycleGAN, the diversity and robustness of the
data set are enhanced by optimizing the generation effect by using adversarial loss, cyclic consistency loss,
perception loss and the like. Experimental results show that the provided model shows excellent performance in a multi-category classification task, the average accuracy and the F1
score respectively reach 98.12%, and the model shows excellent generalization ability in classification of real and forged images.