General image aesthetic evaluation method based on state space model

Through the multi-modal feature extraction and fusion method based on the state space model, combined with the cross-attention layer and the adapter module, the problem of difficulty in combining local and global information and multi-task learning imbalance in the image aesthetic evaluation method in the existing technology is solved. Efficient and flexible prediction of image aesthetic scores and adaptability of personalized aesthetic evaluation are achieved.

CN118822992AActive Publication Date: 2024-10-22XIDIAN UNIV +1

Patent Information

Application Number
CN202410927851.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-22
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

Existing image aesthetic evaluation methods are difficult to effectively combine local and global information, and there is an imbalance in multi-task learning. The model design and deployment are not flexible enough to meet the needs of personalized aesthetic evaluation.

Method used

A universal image aesthetics evaluation method based on the state space model is adopted. Through multi-modal feature extraction and fusion of images, text information and user information, combined with cross-attention layers and adapter modules, a flexible aesthetics evaluation framework is constructed that is suitable for different image aesthetics. Evaluation tasks.

Benefits of technology

It achieves efficient and flexible prediction of image aesthetic scores, improves the stability and adaptability of the model, and can show competitive and even optimal results on a variety of data sets and tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118822992A_ABST
    Figure CN118822992A_ABST
Patent Text Reader

Abstract

The invention discloses a general image aesthetic evaluation method based on a state space model. The method comprises the following steps of: 1, acquiring a training sample set Strain and a test set Stest according to a data set and a task type; step 2, constructing sub-modules of a general image aesthetic evaluation framework; step 3, performing construction from different sub-modules in the step 2, and constructing a specific general or personalized aesthetic evaluation model M in combination with specific tasks; step 4, carrying out iterative training on the network model M; and step 5, passing through the model subjected to iterative training in the step 4. And obtaining an aesthetic quality evaluation score prediction result. The method effectively solves the problems that an existing image aesthetics evaluation model is difficult to combine with local and global image features, the multi-task training of the model is unbalanced, and the model is difficult to efficiently and flexibly design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image aesthetics evaluation, and in particular relates to a general image aesthetics evaluation method based on a state space model. Background Art

[0002] Image aesthetic evaluation aims to predict the quality of an image from the perspective of aesthetics. It has wide applications in the fields of image editing, generation, and photography. However, a person's aesthetic judgment is highly dependent on different visual attributes (e.g., color, composition, and content) as well as multiple personal roles. It remains challenging to develop an efficient and effective method that comprehensively considers all this information during reasoning.

[0003] In this field, researchers have carried out a lot of work and proposed a large number of algorithms. Most of the existing works focus on Generic Image Aesthetic Assessment (GIAA), which aims to predict the average aesthetic evaluation scored by multiple individuals. In the field of general aesthetic quality evaluation, domestic and foreign researchers have conducted extensive and in-depth research. These studies can be mainly summarized into three categories of algorithms: Aesthetic quality evaluation algorithms based on manual features refer to researchers manually designing features closely related to aesthetics. However, the selection process of manual features requires extremely high precision and meticulous observation, which leads to the relative limitation of feature dimensions. Image aesthetic quality evaluation algorithms based on visual features, in order to more comprehensively capture the aesthetic characteristics of images, many studies have designed two-stream networks or multiple sub-network structures to focus on the global and local features of images at the same time. Multimodal aesthetic quality evaluation algorithms based on user comments focus on images accompanied by massive user comments. These comments are not only expressions of user emotions, but also contain rich semantic content, which provides powerful assistance for the aesthetic quality evaluation of images. The research results in this field have opened up new development directions for the field of aesthetic quality evaluation and provided valuable reference and inspiration for future research.

[0004] Recently, researchers have begun to explore Personalized Image Aesthetic Assessment (PIAA), which learns a specific model for each individual to predict personal aesthetic preferences. The training of the model is usually divided into two stages. In the first stage, supervised training is performed using a popular image aesthetic assessment dataset to obtain an aesthetic prior knowledge model. This model is able to learn general aesthetic rules and patterns, providing a basis for subsequent personalized fine-tuning. In the second stage, the aesthetic prior knowledge model is fine-tuned using the PIAA dataset of a specific user to address the subjective issues in the user's visual aesthetic experience. In addition, there have been many attempts to develop fine-grained aesthetic assessment (FIAA), which evaluates the quality or subjective preferences of multiple visual attributes.

[0005] In view of the above three directions, there are mainly three modal features in the field of aesthetic quality evaluation: images, image description text, and user portrait text. How to design a general method to integrate the above modal information and predict more relevant aesthetic scores is a challenge faced by the algorithm. Existing methods usually focus on a single task and strive to improve feature representation, information fusion mechanism, reasoning architecture, learning strategy and data set.

[0006] The patent application with the application publication number CN115272203A and the name “A general image aesthetic evaluation method based on state space model” discloses a general method that can be used in various image aesthetic evaluation tasks and can process multi-modal input for aesthetic evaluation;

[0007] However, the shortcomings of this method are: First, the introduction of balanced cross entropy loss requires manual classification of score categories, which makes training preparation cumbersome. Second, for the PIAA task, different user information processing requires dynamic and real-time construction of text templates, and training must be carried out again. In summary, the defects of the existing technology are:

[0008] First, most existing image quality assessment methods cannot efficiently model image feature representations that combine local and global information. The subjective judgment of image aesthetics is based on the integration of multiple visual information, from local details such as noise and color to overall perception such as composition and semantics. Both local and global perception are essential for IAA. Currently, IAA methods mainly use Convolutional Neural Networks (CNN) or attention-based visual encoders (Vision Transformer, ViT) to learn visual representations. However, these models cannot effectively combine local and global information.

[0009] Second: It cannot effectively balance the imbalance of multi-task learning. Prediction of multi-attribute evaluation is a kind of multi-task learning. During the learning process, attribute evaluation tasks may interfere with each other, reducing the stability or effectiveness of representation learning. In addition, the distribution scores of aesthetics or attributes in existing datasets are seriously unbalanced. The IAA model will be biased towards lower errors, exceeding the limited instances occupied by the tail labels.

[0010] Third: It is not possible to achieve efficient and flexible model design, deployment, and reasoning. Existing PIAA methods ignore the semantic information of the subject. In addition, it is difficult to flexibly modify the role to improve the flexibility and accuracy of PIAA. Summary of the invention

[0011] In order to overcome the deficiencies of the above-mentioned prior art, the purpose of the present invention is to provide a general image aesthetic evaluation method based on a state-space model, which utilizes multiple modalities such as images, text information, and user information to perform feature extraction, and then integrates and evaluates multi-attribute aesthetic scores. Through the combination of various basic modules, it is flexibly applied to different (Image Aesthetic Assessment, IAA) tasks, and is a general framework suitable for various image aesthetic evaluation tasks. It effectively solves the problems that the existing image aesthetic evaluation model is difficult to combine local and global image features, the imbalance of multi-task training of the model, and the difficulty of efficient and flexible design of the model. In order to achieve the above purpose, the technical solution adopted by the present invention is:

[0012] A general image aesthetic evaluation method based on a state space model comprises the following steps;

[0013] Step 1: Get the training sample set S according to the data set and task type train and the test set S test ;

[0014] Step 2: Construct submodules of the general image aesthetic evaluation framework:

[0015] Step 3: Build from different sub-modules in step 2 and combine with specific tasks to build a specific general or personalized aesthetic evaluation model M;

[0016] Step 4: Iteratively train the network model M:

[0017] Step 5: Iterate the trained model through step 4 to obtain the aesthetic quality evaluation score prediction result.

[0018] The data in step 1 are:

[0019] Experiments were conducted on the following benchmark datasets, namely, AVA, TAD66K, PARA, AADB, and Photo.Net datasets;

[0020] AVA and Photo.Net include a distribution of aesthetic scores for each image;

[0021] While PARA and AADB include average scores;

[0022] The PARA dataset contains images, image text information, user portrait information, and user ratings of images;

[0023] The dataset does not have a fixed task type. Based on the differences in data and content, the following experiments are conducted:

[0024] For the AADB dataset, only VIAA experiments were conducted;

[0025] For the TAD66K dataset, only VIAA experiments were performed;

[0026] For the AVA dataset, VIAA and MIAA experiments were conducted;

[0027] For the PARA dataset, VIAA, MIAA, FIAA, and PIAA experiments were conducted;

[0028] For the PhotoNet dataset, VIAA and MIAA experiments are carried out.

[0029] Select the official training and testing data division method for GIAA related tasks VIAA, FIAA and Multimodal Image Aesthetic Assessment (MIAA);

[0030] In the PIAA task, users are first randomly selected from the annotators as experimental subjects, experiments are conducted multiple times, and the average value of the evaluation indicators is calculated as the final experimental result. Subsequently, the aesthetic score prediction model is fine-tuned.

[0031] The aesthetic score prediction model was tested on the PARA dataset using VIAA, MIAA, FIAA, and PIAA.

[0032] in:

[0033] GIAA’s common aesthetic quality assessments include VIAA, MIAA, and FIAA;

[0034] VIAA, a purely visual aesthetic evaluation task, where the model processes the input image and predicts the aesthetic quality score of the corresponding image;

[0035] MIAA, a multimodal aesthetic assessment task, the model processes the input image and the text information related to the image (such as the description of the image, the appreciation and comments of the image), and predicts the aesthetic quality score of the corresponding image;

[0036] FIAA is a purely visual aesthetic evaluation task. The model processes the input image and predicts the multi-attribute quality scores of the corresponding image, including aesthetics, composition, color, and depth of field scores.

[0037] PIAA personalized aesthetic quality evaluation, user information, and the model processes the input image and image-related text information (optional) to predict the user's aesthetic quality score for the image.

[0038] For different tasks, the sample set elements are different. The training sample set and the test sample set have the following three types of input: image, image description, and user information;

[0039] For images: In the fine-grained aesthetic evaluation experiment, a unified data preprocessing method was implemented for the images in the PARA dataset; different preprocessing strategies were used in the training and testing stages. In the training stage, data augmentation technology was used. First, the size of each image was adjusted using the bicubic interpolation method, and uniform resampling was performed. Then, image blocks of pixels were randomly cropped from them to adapt to the input requirements of the model, and the images were randomly flipped horizontally;

[0040] For image description: select the image description information contained in the PARA dataset;

[0041] For user information: SMP (Subject Multi-character Prompts), the Chinese definition is as follows: User multi-character prompts, build a text template based on user information.

[0042] Make full use of the three user information provided in the PARA dataset: artistic experience, photographic experience, and personality. Specifically, both aesthetic experience and photographic experience contain four levels: “beginner”, “competent”, “skilled”, and “expert”;

[0043] Design corresponding text prompts to incorporate this information into the model;

[0044] "My artistic experience is{art_exp}." and "My Photographic experience is{photo_exp}."

[0045] Among them, art_exp and photo_exp represent the user's corresponding experience level. Personality traits include five aspects, namely "responsibility O", "affinity C", "extraversion E", "openness A", and "spirit N". Given a user, the corresponding text prompt information follows the following template:

[0046] "In the Big-Five personality traits test, my scores are as follows: openness score is {O}, conscientiousness score is {C}, extroversion score is {E}, agreeableness score is {A}, and Neuroticism score is {N}."

[0047] All the above text templates can be integrated together to represent the user's personal information. The PARA dataset is used for the VIAA task. The input information of the training set and the test set is only pictures, and the output is the aesthetic score.

[0048] The step 2 is specifically as follows:

[0049] Step (1). SSM-based visual encoder E v ,Vmamba-Tiny is used as the backbone network, and the output image features are obtained after the output layer of the model's classification head, and the output features are averaged and pooled;

[0050] Step (2). Text encoder E of user information t First, use (Word Piece Tokenizer, WPT) to perform refined word segmentation on the input comments to generate a word sequence of length n, then add a special tag [cls] at the beginning of the sequence to represent the global feature, add the corresponding position code to it, and convert it into an embedded vector through linear mapping. These embedded vectors are then input into a (Bidirectional Encoder Representations from Transformers, BERT) model containing 12 Transformer modules, and finally output a vector with a variable sequence length dimension n, where n represents the word length, and the feature cls of the output 0th dimension is intercepted as the output;

[0051] Step (3). Adaptive average pooling AAP, compressing the input sequence dimension to 1 dimension through average pooling;

[0052] Step (4). The cross-information fusion module CMF uses the visual features f extracted from the image and text encoders respectively v and text features f t ;

[0053] Step (5). Feature Adapter First, feature f is received. For a specific i-th task, f is nonlinearly mapped to reduce the dimension. After passing through the GELU activation function, it is mapped back to the dimensional feature at the time of reception and residually connected with the previous image feature to obtain the output feature. The multi-scale adapter is called the global branch;

[0054]

[0055] Step (6). Task adapter φ: In the feature adapter On this basis, several local branches are added to form a task adapter.

[0056] In the step (4), during the information fusion process, the visual features and text features are firstly subjected to layer normalization, and then the normalized visual features are input into the cross attention layer CA, where f v After mapping, we get vector Q, f t After linear mapping, we get vectors K and V. The calculation of cross attention is as follows:

[0057]

[0058] The output of the cross attention CA is residually connected with the original visual features to obtain the intermediate feature f v , then the intermediate features are normalized again, and then passed through the fully connected layer to obtain the features, which are residually connected with the intermediate features to obtain the cross-information fusion output feature f;

[0059]

[0060]

[0061] The feature adapter Output features require different heads to adapt to the learning process. There are three main local branches:

[0062] Score regression branch (score prediction head): the input feature map is then nonlinearly mapped through the relu activation function to obtain the predicted score;

[0063] Attribute prediction branch (classification head): The input feature map is then nonlinearly mapped through the relu activation function to obtain a 4-dimensional score feature, which is then normalized through softmax to obtain the predicted category.

[0064] Distribution prediction branch (distribution prediction head): The input feature map is then linearly mapped through the relu activation function to obtain the score distribution feature, and then normalized through softmax to obtain the predicted distribution.

[0065] Select different branches according to the data provided by the specific data set. The specific settings are as follows:

[0066] Using distribution prediction branch, you need to increase L EMD ;

[0067] Using attribute prediction branching requires increasing L Ba1-CE ;

[0068] Using the fractional regression branch, you need to increase L MSE ;

[0069] L dst =L EMD +γL MSE +λL Ba1-CE ,

[0070] L reg =L MSE +λL Ba1-CE ,

[0071] There are two deployment methods. For PARA, AADB, and TAD66K datasets, L reg Way;

[0072] For AVA and PHOTONET, L dst Way.

[0073] The step 3 is specifically as follows:

[0074] The model receives three types of inputs: images, image description text information, and user information. Depending on the specific task, the model will be constructed in different ways. Depending on the prediction attributes, the model will use different adapters.

[0075] Further, specific model selection:

[0076] AesMmba-V model: Carry out pure visual aesthetic evaluation task VIAA, with image as input and aesthetic score as output, using image encoder E v , a single global branch and several local branches;

[0077] AesMmba-M model: Carry out the aesthetic evaluation task MIAA of visual text fusion, with the input of pictures and text information related to image description, and the output is the aesthetic score, using the image encoder E v, text encoder E t , information fusion module CMF, single global branch and several local branches;

[0078] AesMmba-F model: Carry out pure visual fine-grained image aesthetic evaluation task FIAA. The input is a picture. It is necessary to predict the scores of multiple attributes. The image encoder E is used. v , multiple global branches and several local branches;

[0079] AesMmba-P model: Carry out personalized visual aesthetic evaluation task PIAA, with input as pictures and user description information, using image encoder E v , text encoder E t , information fusion module CMF, multiple global branches and several local branches;

[0080] The number of global branches i depends on the number of attributes in the dataset, and the type of local branches depends on the type of single attribute scores, distribution type or average type. Different aesthetic evaluation tasks are carried out and the model M is constructed in the above way.

[0081] The step 4 is specifically as follows:

[0082] Step 4.1, initializing the model during the training phase;

[0083] The number of initial iterations is t, the maximum number of iterations is T, and for the different models selected in step 3, the current no-reference image quality evaluation network model based on multi-granularity network is set to M t , M is the model for carrying out VIAA tasks, initialized with t = 1, M t =M;

[0084] Step 4.2, training phase, set the training sample set S train Randomly select batch_size training samples without replacement as the network model M t Input;

[0085] Step 4.3, construct the loss function: There are three types of loss functions:

[0086] Mean square error loss function: in represents the prediction score, s i represents the true score, n represents the number of samples;

[0087] Balanced cross entropy loss function: where n l represents the number of instances, C irepresents the category label, K represents the number of tasks;

[0088] Global moving distance loss function:

[0089] Where a is the predicted label, p is the correct label of the dataset, CDF is the combined distribution function, Len is the number of interval blocks, and in the inference stage, the aesthetic evaluation score is calculated based on the predicted distribution;

[0090] Different training strategies are required for different datasets: AVA and Photo.Net datasets including the distribution of aesthetic scores for each image use L dst Distribution loss is carried out. For AADB and PARA datasets containing true scores, L reg Perform regression loss.

[0091] L dst =L EMD +γL MSE +λL Ba1-CE ,

[0092] L reg =L MSE +λL Ba1-CE ,

[0093] First, calculate the predicted score and the score label corresponding to each training sample, and calculate the above loss function according to different data sets. t Update the weight parameters of each layer;

[0094] Step 4.4: Determine whether the training sample set S has been traversed train , if yes, go to step 4.5, otherwise, go to steps 4.2 and 4.3;

[0095] Step 4.5, determine whether t = T is established. If so, obtain the trained multi-granularity network-based reference-free image quality assessment network model M * =M t , otherwise, let t = t + 1 and execute steps 4.3 and 4.4.

[0096] The step 5 is specifically as follows:

[0097] The test sample set S test As the trained network model M * The input is used for forward reasoning to obtain the quality prediction score of each test sample. For the regression prediction dataset, the prediction output is the score regression branch output; for the distribution prediction dataset, the prediction output is the weighted combination of the distribution prediction output. For the PIAA task, the prediction output is the weighted combination of the distribution prediction output. iPerform forward reasoning and take the average value of the final evaluation index to verify the model effect.

[0098] Beneficial effects of the present invention:

[0099] The present invention utilizes multimodal information of images and texts to flexibly construct models for specific aesthetic evaluation tasks, and can achieve very competitive or even optimal results in each task.

[0100] The present invention has the advantages that the model's predicted aesthetic scores are highly consistent with human visual aesthetic perception, the model is adaptable to various aesthetic evaluation tasks, and the model training and reasoning are convenient and efficient.

[0101] The present invention proposes a universal aesthetic evaluation framework that can flexibly handle multiple modalities such as image input, image description, and user text input. For specific aesthetic evaluation tasks, an adaptive model can be constructed by combining various adaptive modules. Multi-attribute aesthetic score prediction is carried out on multiple data sets and multiple related tasks. The score prediction performance on GIAA and PIAA is very effective. BRIEF DESCRIPTION OF THE DRAWINGS

[0102] Figure 1 It is a schematic diagram of the structure of the cross-information fusion module CMF and the adapter φ of the present invention.

[0103] Figure 2 Schematic diagram of the universal IAA framework of the present invention.

[0104] Figure 3 Schematic diagram of the model structure of different tasks of the present invention.

[0105] Figure 4 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0106] The present invention will be further described in detail below in conjunction with the accompanying drawings.

[0107] like Figure 4 As shown: A general image aesthetic evaluation method based on a state space model comprises the following steps;

[0108] Step 1: Get the training sample set S according to the data set and task type train and the test set S test .

[0109] The data set in step 1 is:

[0110] Experiments were conducted on the following benchmark datasets, namely, AVA, TAD66K, PARA, AADB, and Photo.Net datasets, which contain about 255K, 66K, 20K, 31K, and 10K images, respectively;

[0111] AVA and Photo.Net include the distribution of aesthetic scores for each image; while PARA and AADB include average scores; the PARA dataset contains images, image text information, user portrait information, and user ratings of images.

[0112] In the GIAA-related tasks VIAA, FIAA and Multimodal Image Aesthetic Assessment (MIAA), the official training and testing data division method is selected. This operation ensures that there are no image data with the same image scenes and contents in the training set and the test set, and the distribution of the training and test data is similar.

[0113] In the PIAA task, 40 users are randomly selected from the annotators as experimental subjects, and the experiment is carried out multiple times. In this embodiment, the number of experiments for each user is 10, and the average value of the evaluation index is calculated as the final experimental result. Then, the aesthetic score prediction model is fine-tuned in two ways. They are:

[0114] 1. Specify 10 images for user training and randomly select 50 images from the remaining images for testing.

[0115] 2. Specify 100 images for user training and randomly select 50 images from the remaining images for testing. Model training is performed based on the above two experimental configurations.

[0116] This model conducted VIAA, MIAA, FIAA and PIAA experiments on the PARA dataset;

[0117] in:

[0118] GIAA’s common aesthetic quality assessments include VIAA, MIAA, and FIAA;

[0119] VIAA, a purely visual aesthetic evaluation task, where the model processes the input image and predicts the aesthetic quality score of the corresponding image;

[0120] MIAA, a multimodal aesthetic assessment task, the model processes the input image and the text information related to the image (such as the description of the image, the appreciation and comments of the image), and predicts the aesthetic quality score of the corresponding image;

[0121] FIAA is a purely visual aesthetic evaluation task. The model processes the input image and predicts the multi-attribute quality scores of the corresponding image, including aesthetics, composition, color, and depth of field scores.

[0122] PIAA personalized aesthetic quality evaluation, user information, and the model processes the input image and image-related text information (optional) to predict the user's aesthetic quality score for the image.

[0123] The quality score is a distribution; for example, 1, 4, 7, 24, 15, 3; 1. The physical meaning is: 1 user gave 1 point, 2 users gave 4 points to the picture, 7 users gave 3 points to the pictures, and so on;

[0124] Or it may be an average value, such as 3.54, indicating that the average score of this image is 3.54.

[0125] This model has conducted VIAA, MIAA, FIAA and PIAA experiments on the PARA dataset. For different tasks, the sample set elements are different. The training sample set and the test sample set have the following three types of input: image, image description, and user information.

[0126] For images: During the fine-grained aesthetic evaluation experiment, a unified data preprocessing method was implemented for the images in the PARA dataset. Different preprocessing strategies were used in the training and testing stages. In the training stage, data augmentation technology was used. First, the size of each image was adjusted using the bicubic interpolation method and uniformly resampled to 256×256 pixels. Then, 224×224 pixel image blocks were randomly cropped from them to adapt to the input requirements of the model, and the images were randomly flipped horizontally, and the flip probability was set to 0.5. For image description: The image description information with the PARA dataset was selected.

[0127] Regarding user information, the SMP of the present invention makes full use of three user information provided in the PARA dataset: artistic experience, photographic experience, and personality. Specifically, both aesthetic experience and photographic experience contain four levels: "beginner", "competent", "skilled", and "expert". In order to incorporate this information into the model, the present invention designs the corresponding text prompts as follows:

[0128] "My artistic experience is{art_exp}." and "My Photographic experience is{photo_exp}."

[0129] Among them, art_exp and photo_exp represent the user's corresponding experience level. Personality traits include five aspects, namely "responsibility O", "affinity C", "extroversion E", "openness A", and "spirit N". Given a user, the corresponding text prompt information follows the following template:

[0130] "In the Big-Five personality traits test, my scores are as follows: openness score is {O}, conscientiousness score is {C}, extroversion score is {E}, agreeableness score is {A}, and Neuroticism score is {N}."

[0131] All the above text templates can be integrated together to represent the user's personal information. In addition, the present invention has great flexibility in attribute selection and expansion.

[0132] In this embodiment, the PARA dataset is used to perform the VIAA task. The input information of the training set and the test set is only pictures, and the output is the aesthetic score.

[0133] In the training set and test set in step 1;

[0134] When carrying out PIAA tasks: text template data needs to be constructed manually. For example, in the PIAA task, text template information needs to be constructed based on various user attributes and included in the training set and test set.

[0135] In addition, the categories are divided according to the aesthetic score. For example, if the aesthetic score is 1 to 2 points, it belongs to category 0, 2 to 3 points belong to category 1, and so on. It depends on the score range of the dataset.

[0136] The content of each dataset in step 1 is different;

[0137] For the VIAA task: there is an scv file that stores the image path of the training data, the aesthetic score, and the category to which the aesthetic score belongs;

[0138] For the MIAA task: there is an scv file that stores the image path of the training data and the corresponding image text description information, the score of the aesthetic score, and the category to which the aesthetic score belongs;

[0139] For the FIAA task: there is an scv file that stores the image path of the training data, the scores for the aesthetic scores and other attributes, and the categories to which the aesthetic scores and other scores belong;

[0140] For the PIAA task, there are 40 users and 80 csv files (train and test). Take train as an example: it includes the paths of 100 training images, the corresponding text information constructed in the SMP way, the user's score on the aesthetic score, and the category to which the aesthetic score belongs.

[0141] In step 1, the method of conducting IAA training by combining multimodal learning of user information and multi-character prompts is based on the construction method of the text template proposed by the SMP of the present invention, wherein the text template specifically includes five personality traits.

[0142] Because the original CSV file does not contain text data in the PIAA task, we need to construct a text template SMP and use the text template as a component of the training data. This process is also part of building the training set and test set.

[0143] Step 2: Construct submodules of the general image aesthetic evaluation framework:

[0144] 1. SSM-based visual encoder E v ,Vmamba-Tiny is used as the backbone network. After the output layer of the model's classification head, the output image feature of 768×49 dimensions is obtained. The output feature is averaged and pooled to obtain a 768-dimensional feature.

[0145] 2. Text encoder E of user information t First, use (Word Piece Tokenizer, WPT) to perform refined word segmentation on the input comments to generate a word sequence of length n. Then add a special tag [cls] at the beginning of the sequence to represent the global feature. Add the corresponding position encoding to it and convert it into an embedding vector through linear mapping. These embedding vectors are then input into a (BidirectionalEncoder Representations from Transformers, BERT) model containing 12 Transformer modules, and finally output a variable-sized 768×n dimensional vector, where n represents the word length. The output feature cls of dimension 768 is intercepted as the output.

[0146] 3. Adaptive average pooling AAP, which compresses the input sequence dimension to 1 dimension through average pooling.

[0147] 4. Cross-information fusion module CMF, using the visual features f extracted from the image and text encoders respectively v and text features f t The specific structure is as follows Figure 1 As shown:

[0148] Fv [batch, 768, 49] After pooling, we get f v

batch,768

[0149] In information fusion (which is just a term for f t and f v In the process of feature fusion through cross attention, the visual features and text features are first normalized. Then, the normalized visual features are input into the cross attention layer CA, where f v After mapping, we get a 768-dimensional vector Q, f t After linear mapping, we get a vector K, V of 768×49 dimensions. The calculation of cross attention is as follows:

[0150]

[0151] Perform a residual connection between the output of the cross-attention CA and the original visual features to obtain the intermediate features The intermediate features are then normalized again and passed through a fully connected layer to obtain a 768-dimensional feature, which is then residually connected with the intermediate features to obtain a 768-dimensional cross-information fusion output feature f.

[0152]

[0153] 5. Feature Adapter First, we receive the 768-dimensional feature f. For the specific i-th task, we perform nonlinear mapping on f to obtain a 192-dimensional feature. After the GELU activation function, we map it back to a 768-dimensional feature and perform a residual connection with the previous image feature to obtain the output feature. Since the multi-scale adapter output features of the model during training must pass through the local branch adapter head for regression prediction, the multi-scale adapter is called the global branch.

[0154]

[0155] 6. Task adapter φ: Based on the MBA of the present invention, in order to fully balance the learning between attributes, in the feature adapter Based on the feature adapter, several local branches are added to form a task adapter. The output feature f is 768-dimensional, and different heads are needed to adapt the learning process. There are three main local branches:

[0156] Score regression branch (score prediction head): maps the input features into 256-dimensional features, and then nonlinearly maps them through the relu activation function to obtain the predicted score.

[0157] Attribute prediction branch (classification head): The input features are mapped into 256-dimensional features, and then nonlinearly mapped through the relu activation function to obtain 4-dimensional score features, which are then normalized through softmax to obtain the predicted category.

[0158] Distribution prediction branch (distribution prediction head): The input features are mapped into 256-dimensional features, and then linearly mapped through the relu activation function to obtain 10-dimensional score features, which are then normalized through softmax to obtain the predicted distribution.

[0159] Select different branches according to the data provided by the specific data set. The specific settings are as follows:

[0160] Using distribution prediction branch, you need to increase L EMD ;

[0161] Using attribute prediction branching requires increasing L Ba1-CE ;

[0162] Using the fractional regression branch, you need to increase L MSE ;

[0163] L dst =L EMD +γL MSE +λL Ba1-CE ,

[0164] L reg =L MSE +λL Ba1-CE ,

[0165] There are two deployment methods. For PARA, AADB, and TAD66K datasets, L reg Way;

[0166] For AVA and PHOTONET, L dst Way.

[0167] The construction method of the module in step 2 includes realizing efficient combination of global features and local features on the IAA task, and using the Vmamba encoder for the first time, adopting the cross-attention cross-information fusion module CMF; a multi-task-based balanced adapter φ and a combination of multiple prediction heads corresponding to each adapter.

[0168] The state-space based Vmamba encoder can effectively balance the global and local information of the image, which is an efficient image encoder.

[0169] The balancing adapter φ can effectively balance the progress of different task learning (different prediction heads), allowing the model to learn efficiently.

[0170] The cross-information fusion module CMF can effectively fuse user features and image features.

[0171] Step 3: Construct a specific general or personalized aesthetic evaluation model based on specific tasks.

[0172] The general framework of the IAA task proposed in this invention is shown in Figure 2:

[0173] The image is passed through the image encoder to obtain the vector F v , the text is passed through the bert encoder to get F t , in VIAA and FIAA tasks v

batch, 768, 49

[0174] Figure 2 The adapter part in the middle right half is already in Figure 1 There is a specific structure in . Single-task learning is adopted by VIAA, MIAA, and PIAA, while multi-task learning is only adopted by FIAA.

[0175] The model receives three types of inputs: images, image description text, and user information. Depending on the specific task, the model will be constructed in different ways. Depending on the prediction attribute, the model will use different adapters.

[0176] Specific model selection is as follows Figure 3 shown.

[0177] AesMmba-V model: It carries out pure visual aesthetic evaluation task VIAA, with image as input and aesthetic score as output. v , a single global branch and several local branches.

[0178] AesMmba-M model: It carries out the MIAA task of visual text fusion aesthetic evaluation. The input is the image and the text information related to the image description, and the output is the aesthetic score. v , text encoder Et , information fusion module CMF, single global branch and several local branches.

[0179] AesMmba-F model: Carry out pure visual fine-grained image aesthetic evaluation task FIAA. The input is a picture. It is necessary to predict the scores of multiple attributes. The image encoder E is used. v , multiple global branches and several local branches.

[0180] AesMmba-P model: Carry out personalized visual aesthetic evaluation task PIAA, with input as pictures and user description information, using image encoder E v , text encoder E t , information fusion module CMF, multiple global branches and several local branches.

[0181] The number of global branches i depends on the number of attributes in the dataset, and the type of local branches depends on the type of single attribute scores, distribution type or average type. Different aesthetic evaluation tasks are carried out and the model M is constructed in the above way.

[0182] The specific construction method varies according to the task type and dataset type. Specific example: When the AVA dataset is used to carry out the MIAA task, the AesMmba-M model framework is adopted;

[0183] More detailed structure:

[0184] Adopt cross-information fusion module CMF, because it is a MIAA task

[0185] Single-task learning mode, because the AVA dataset only has one score, aesthetics

[0186] The classification head, regression head and distribution prediction head are used because the aesthetic score of the AVA dataset is a distribution, and it also has an average score and categories.

[0187] In this embodiment, the PARA dataset is used to carry out the VIAA task, and the model uses an image encoder E v , a single global branch and several local branches. The number of global branches is 1, and the local branches select the score prediction branch and the attribute prediction branch.

[0188] In step 3, a method for constructing a universal or personalized aesthetic evaluation model for a specific task is described. There are four types of methods: module composition of pure visual aesthetic evaluation, module composition of visual-textual multimodal aesthetic evaluation, module composition of pure visual multi-attribute aesthetic evaluation, and module composition of user personalized aesthetic evaluation.

[0189] Currently, there is no framework in the IAA field that can handle all VIAA, MIAA, FIAA, and PIAA tasks at the same time. This method achieves this by flexibly calling various modules involved in step 2 and constructing the model in step 3 according to different tasks and data sets.

[0190] Step 4: Iteratively train the network model M:

[0191] Step 4.1, initialize the model in the training phase.

[0192] The number of initial iterations is t, the maximum number of iterations is T, and for the different models selected in step 3, the current no-reference image quality evaluation network model based on multi-granularity network is set to M t In this embodiment, T = 50. M is the model for carrying out the VIAA task. Initialization t = 1, M t =M.

[0193] Step 4.2, training phase, set the training sample set S train Randomly select batch_size training samples without replacement as the network model M t In this embodiment, batch_size=64.

[0194] Step 4.3, constructing a loss function: There are three types of loss functions in the present invention:

[0195] Mean square error loss function: in represents the prediction score, s i represents the true score, and n represents the number of samples.

[0196] Balanced cross entropy loss function: where n l represents the number of instances, C i Represents the category label, and K represents the number of tasks. It increases the importance of rare categories in the learning process. Therefore, this auxiliary scale classification task can improve the model's ability to correctly evaluate long-tail data. i =0,1,2,3,K=1.

[0197] Global moving distance loss function: Where a is the predicted label, p is the correct label of the dataset, CDF is the combined distribution function, and Len is the number of interval blocks. In the inference phase, the aesthetic evaluation score is calculated based on the predicted distribution.

[0198] Different training strategies are required for different datasets: AVA and Photo.Net datasets including the distribution of aesthetic scores for each image use L dstFor datasets containing true scores such as AADB and PARA, L reg Perform regression loss.

[0199] L dst =L EMD +γL MSE +λL Ba1-CE ,

[0200] L reg =L MSE +λL Ba1-CE ,

[0201] First, calculate the predicted score and the score label corresponding to each training sample, and calculate the above loss function according to different data sets. t The weight parameters of each layer are updated.

[0202] In this example, the PARA dataset is used, γ and λ are set to 10 and 0.001 respectively, and L reg As the loss function. Adopt AdamW optimization algorithm, set β1 = 0.9, β2 = 0.99. Except for the learning rate, the rest of the parameters use the default values. In order to ensure the convergence speed of the model and the accuracy of learning, the learning rate strategy of cosine annealing update is adopted during the training process. In this embodiment, the initial learning rate is set to 1×10-4 and the batch size is 64.

[0203] In the PIAA task, the initial learning rate is set to 4×10-5, and the batch size is 10 or 50 under the training number setting of 10 or 100, respectively.

[0204] Step 4.4: Determine whether the training sample set S has been traversed train , if yes, go to step 4.5, otherwise, go to steps 4.2 and 4.3;

[0205] Step 4.5, determine whether t = T is established. If so, obtain the trained multi-granularity network-based reference-free image quality assessment network model M * =M t , otherwise, set t = t + 1 and execute steps 4.3 and 4.4. For the training of the PIAA task, a separate model is trained for each user. i = 1, j = 1, 2, ..., 40 (40 users are randomly selected) to obtain the training network M i,j , i=i+1. Continue to execute step 4.1 until the model M is obtained. 10,j End. A total of 400 models are trained. PIAA training is not performed in this embodiment.

[0206] Step 4 is the training phase. The training of GIAA (VIAA, FIAA, MIAA) follows the conventional process. In one epoch, training is performed first and then verification.

[0207] For PIAA, follow the official training method proposed in the para dataset paper:

[0208] There are 40 users, and each user trains a model, which means training 40 times.

[0209] For a specific user ID: frwet434adsa's training:

[0210] Each user is trained 10 times to obtain the final models M1, M2, and finally M10. For 40 users, each user is trained to obtain 10 final models, that is, 400 final models. The average value of the indicators PLCC and SRCC in the test phase is taken, and the standard deviation is used to report the final results.

[0211] Step 4: The loss function combination adopted by different data sets during training. For AVA and other data sets, L dist And PARA and other datasets use L reg In addition, in order to solve the imbalance problem in IAA, the MBA proposed in the present invention is specifically an adapter introduced in IAA multi-attribute prediction and a balanced cross entropy loss function.

[0212] Step 5: Get the prediction result of aesthetic quality evaluation score:

[0213] The test sample set S test As the trained network model M * Forward reasoning is performed on the input of M to obtain the quality prediction score of each test sample. For the regression prediction dataset, the prediction output is the score regression branch output; for the distribution prediction dataset, the prediction output is the weighted combination of the distribution prediction output. For the PIAA task, M i Perform forward reasoning and take the average value of the final evaluation index to verify the model effect.

[0214] This example carries out the VIAA task and selects M * The following is a description of the technical effect of the present invention in combination with simulation experiments:

[0215] 1. Simulation conditions and contents:

[0216] The hardware platform of the simulation experiment of the present invention is: the graphics card is NVIDIA GeForce RTX4090;

[0217] The software platform of the simulation experiment of the present invention is: Ubuntu 20.04, Pytorch1.13.1+cu117, Python3.8.19.

[0218] 2. Simulation experiment: The simulation experiment of the present invention uses three indicators, accuracy, Spearman Rank-order Correlation Coefficient (SRCC) and Pearson Linear Correlation Coefficient (PLCC), to judge the image aesthetic evaluation effects of the present invention and the prior art. Specifically, the prior art and the present invention are respectively from the test sample set S test Select n samples for image aesthetic evaluation, output the prediction score, and calculate the values ​​of ACC, SROCC and PLCC based on the prediction score of the sample and the label score corresponding to the sample. The above indicators are calculated according to the following formula:

[0219]

[0220] ACC∈[0,1]. The higher the value, the smaller the overall difference between the true score and the predicted score. In the calculation, the predicted and true scores are first normalized. TP means that the true score and predicted score of the corresponding image are both greater than or equal to 0.5, FP means that the true and predicted scores are both less than 0.5, and S represents the total number of test samples.

[0221]

[0222] SRCC∈[-1,1]. The higher the value, the more accurately the evaluation result of the aesthetic evaluation method can reflect the aesthetic quality of the image. e Represents the difference between the order of the aesthetic prediction score of the e-th image in the ranking of the prediction scores of n images and the order of its label score.

[0223]

[0224] PLCC∈[-1,1]. The higher the value, the closer the result of the aesthetic evaluation method is to the subjective aesthetic evaluation score of humans. r represents the quality prediction score of the rth image, represents the average quality prediction score of all images, p r represents the subjective evaluation score of the rth image, Represents the average of the subjective evaluation scores of all images.

[0225] In order to fully verify the performance of the present invention, the simulation results are not limited to the embodiments. Experiments are carried out on the AVA, PARA, TAN66K, AADB, and Photo.Net datasets on the GIAA and PIAA tasks, and compared with advanced methods in various fields. The final results are shown in Tables 1, 2, 3, and 4.

[0226]

[0227] Table 1. Comparison of the image aesthetic quality evaluation VIAA of the PARA single task of the present invention with other methods. * indicates the model trained using the external IAA dataset. Except for the learning rate, the rest of the parameters use the default values.

[0228] Table 1 shows the performance of Aesmamba-V on VIAA compared with existing algorithms. Note that some previous methods (denoted by *), such as TANet, use datasets related to external aesthetics (such as FLICKR-AES and LAION-5B) for pre-training. In contrast, all other methods only use the standard training set on each dataset separately. In all these datasets, our model achieves the best or highly competitive performance.

[0229]

[0230] Table 2. Multimodal input aesthetic quality assessment MIAA for AVA and Photo.Net single tasks

[0231] Table 2 shows that the AesMamba-M method achieves the best performance in all indicators. Compared with the previous best performance, AesMamba-M achieves 2.9, 0.037 and 0.040 performance improvements on AVA, ACC, PLCC and SRCC respectively, and 0.05 / 0.04 performance improvements on PLCC / SRCC on Photo.Net. In addition, on these two datasets. This obvious advantage proves the effectiveness of text templates in IAA and the cross-modal fusion CMF used in the integrated visual language representation of the present invention.

[0232]

[0233]

[0234] Table 3. Multi-task multi-attribute image aesthetic quality assessment FIAA

[0235] Table 3 shows the PLCC and SRCC for each attribute, as well as the average of the indicators for all attributes. Obviously, the model constructed by the present invention always achieves the best PLCC and SRCC values ​​in all attributes. In addition, the base model of the present invention, VMamba-Tiny, always outperforms all other high-level visual backbones, whether CNN or Transformer. This stable advantage proves the effectiveness of using VMamba to learn effective aesthetic representations.

[0236]

[0237]

[0238] Table 4. PIAA of single-task personalized aesthetic quality assessment

[0239] The mean and standard deviation of PLCC / SRCC are shown in Table 4. Obviously, AesMamba-P achieves the best performance in both the 10-image training and 100-image training tasks, and the average values ​​of PLCC and SRCC reach the best performance. This advantage proves the effectiveness of using multiple attributes of users to construct text templates for PIAA.

[0240] It can be seen from the above table that the method of the present application has shown outstanding advantages. Regardless of whether it is verified on various data sets or on multiple IAA tasks, the two indicators obtained have achieved very competitive results, which proves the effectiveness of the present invention on all IAA tasks.

[0241] Cross-dataset validation experiment:

[0242] The model trained on one data set is tested on other data sets to obtain results.

[0243] The final summary is shown in Figures 6 and 7.

[0244]

[0245]

[0246] Table 5. VIAA cross-dataset experiment, the vertical column represents the test dataset

[0247]

[0248] Table 6. MIAA cross-dataset experiments, the vertical columns represent the test datasets.

[0249] The present invention is used to solve the problem that the prior art is difficult to combine local and global image features. The present invention explores the use of Vmamba to effectively learn global visual representations. In addition, in order to reduce interference between tasks and balance the instability of multi-task training, the present invention proposes Multitask Balanced Adaptation (MBA). For multi-task learning, a variety of adapters are designed, an auxiliary classification task is used for each attribute score, and balanced cross entropy loss is used to carry out training to strengthen the learning focus on instances. Finally, in view of the problem that the model is difficult to design efficiently and flexibly. The present invention relates to various modules such as related adapters and cross-information fusion, which can be flexibly combined to adapt various IAA tasks. For PIAA, the present invention proposes User Multi-character Prompts (SMP), designs a text prompt template based on multiple subject characters of the user; and then predicts personalized aesthetic scores based on the image and text templates. In this way, PIAA is expressed as a multimodal learning task. In addition, text prompts allow flexible combinations.

Claims

1. A general image aesthetic evaluation method based on a state space model, characterized in that: The steps include: Step 1: Get the training sample set S according to the data set and task type train and the test set S test ; Step 2: Construct submodules of the general image aesthetic evaluation framework: Step 3: Build from different sub-modules in step 2 and combine with specific tasks to build a specific general or personalized aesthetic evaluation model M; Step 4: Iteratively train the network model M: Step 5: Iterate the trained model through step 4 to obtain the aesthetic quality evaluation score prediction result.

2. A general image aesthetic evaluation method based on a state space model according to claim 1, characterized in that: The data in step 1 are: Experiments were conducted on the following benchmark datasets, namely, AVA, TAD66K, PARA, AADB, and Photo.Net datasets; AVA and Photo.Net include a distribution of aesthetic scores for each image; While PARA and AADB include average scores; The PARA dataset contains images, image text information, user portrait information, and user ratings of images; The dataset does not have a fixed task type. Based on the differences in data and content, the following experiments are conducted: For the AADB dataset, only VIAA experiments were conducted; For the TAD66K dataset, only VIAA experiments were performed; For the AVA dataset, VIAA and MIAA experiments were conducted; For the PARA dataset, VIAA, MIAA, FIAA, and PIAA experiments were conducted; For the PhotoNet dataset, VIAA and MIAA experiments are carried out.

3. A general image aesthetic evaluation method based on a state space model according to claim 2, characterized in that: In the GIAA-related tasks VIAA, FIAA and multimodal image aesthetic evaluation, the official training and testing data division method is selected; In the PIAA task, users are first randomly selected from the annotators as experimental subjects, and multiple experiments are conducted. The average value of the evaluation index is calculated as the final experimental result. Then, the aesthetic score prediction model is fine-tuned; The aesthetic score prediction model was tested on the PARA dataset using VIAA, MIAA, FIAA, and PIAA. in: GIAA’s common aesthetic quality assessments include VIAA, MIAA, and FIAA; VIAA, a purely visual aesthetic evaluation task, where the model processes the input image and predicts the aesthetic quality score of the corresponding image; MIAA, a multimodal aesthetic assessment task, the model processes the input image and the text information related to the image, and predicts the aesthetic quality score of the corresponding image; FIAA is a purely visual aesthetic evaluation task. The model processes the input image and predicts the multi-attribute quality scores of the corresponding image, including aesthetics, composition, color, and depth of field scores. PIAA personalized aesthetic quality evaluation, user information, and the model processes the input image and image-related text information to predict the user's aesthetic quality score for the image.

4. The general image aesthetic evaluation method based on the state space model according to claim 3, characterized in that: For different tasks, the sample set elements are different. The training sample set and the test sample set have the following three types of input: image, image description, and user information; For images: In the fine-grained aesthetic evaluation experiment, a unified data preprocessing method was implemented for the images in the PARA dataset; different preprocessing strategies were used in the training and testing stages. In the training stage, data augmentation technology was used. First, the bicubic interpolation method was used to adjust the size of each image, and uniform resampling was performed. Then, image blocks of pixels were randomly cropped from them to adapt to the input requirements of the model, and the images were randomly flipped horizontally; For image description: select the image description information contained in the PARA dataset; For user information: SMP: User multi-character prompt, build text template based on user information; Make full use of the three user information provided in the PARA dataset: artistic experience, photographic experience, and personality. Specifically, both aesthetic experience and photographic experience contain four levels: "beginner", "competent", "skilled", and "expert"; Design corresponding text prompts to incorporate this information into the model; "My artistic experience is{art_exp}." and "My Photographic experience is{photo_exp}." Among them, art_exp and photo_exp represent the user's corresponding experience level. Personality traits include five aspects, namely "responsibility O", "affinity C", "extroversion E", "openness A", and "spirit N". Given a user, the corresponding text prompt information follows the following template: "In the Big-Five personality traits test, my scores are as follows: openness score is {O}, conscientiousness score is {C}, extroversion score is {E}, agreeableness score is {A}, and Neuroticism score is {N}." All of the above text templates can be integrated together to represent the user's personal information. The PARA dataset is used for the VIAA task. The input information of the training set and the test set is only pictures, and the output is the aesthetic score.

5. The general image aesthetic evaluation method based on the state space model according to claim 1, characterized in that: The step 2 is specifically as follows: Step (1). SSM-based visual encoder E v ,Vmamba-Tiny is used as the backbone network, and the output image features are obtained after the classification head output layer of the model, and the output features are averaged and pooled; Step (2). Text encoder E of user information t First, use (Word Piece Tokenizer, WPT) to perform refined word segmentation on the input comments to generate a word sequence of length n, then add a special tag [cls] at the beginning of the sequence to represent the global feature, add the corresponding position code to it, and convert it into an embedded vector through linear mapping. These embedded vectors are then input into a (Bidirectional Encoder Representations from Transformers, BERT) model containing 12 Transformer modules, and finally output a vector with a variable sequence length dimension n, where n represents the word length, and the feature cls of the output 0th dimension is intercepted as the output; Step (3). Adaptive average pooling AAP, compressing the input sequence dimension to 1 dimension through average pooling; Step (4). The cross-information fusion module CMF uses the visual features f extracted from the image and text encoders respectively v and text features f t ; Step (5). Feature Adapter First, feature f is received. For a specific i-th task, f is nonlinearly mapped to reduce the dimension. After passing through the GELU activation function, it is mapped back to the feature of the receiving dimension and residually connected with the previous image feature to obtain the output feature. The multi-scale adapter is called the global branch; Step (6). Task adapter φ: In the feature adapter On this basis, several local branches are added to form a task adapter.

6. The general image aesthetic evaluation method based on the state space model according to claim 1, characterized in that: In the step (4), during the information fusion process, the visual features and text features are firstly subjected to layer normalization, and then the normalized visual features are input into the cross attention layer CA, where f v After mapping, we get vector Q, f t After linear mapping, we get vectors K and V. The calculation of cross attention is as follows: Perform a residual connection between the output of the cross-attention CA and the original visual features to obtain the intermediate features The intermediate features are then normalized again, and then passed through the fully connected layer to obtain the features, which are then residually connected with the intermediate features to obtain the cross-information fusion output feature f; The feature adapter The output feature f requires different heads to adapt to the learning process. There are three main local branches: Score regression branch (score prediction head): the input feature map is then nonlinearly mapped through the relu activation function to obtain the predicted score; Attribute prediction branch (classification head): The input feature map is then nonlinearly mapped through the relu activation function to obtain a 4-dimensional score feature, which is then normalized through softmax to obtain the predicted category. Distribution prediction branch (distribution prediction head): The input feature map is then linearly mapped through the relu activation function to obtain the score distribution feature, and then normalized through softmax to obtain the predicted distribution.

7. A general image aesthetic evaluation method based on a state space model according to claim 6, characterized in that: Select different branches according to the data provided by the specific data set. The specific settings are as follows: Using distribution prediction branch, it is necessary to increase L EMD ; Using attribute prediction branch, you need to increase L Ba1-CE ; Using the fractional regression branch, we need to increase L MSE ; THE dst =L EMD +γL MSE +λL Ba1-CE , THE reg =L MSE +λL Ba1-CE , There are two deployment methods. For PARA, AADB, and TAD66K datasets, L reg Way; For AVA and PHOTONET, L dst Way.

8. The general image aesthetic evaluation method based on state space model according to claim 6, characterized in that: The step 3 is specifically as follows: The model receives three types of inputs: images, image description text, and user information. Depending on the specific task, the model will be constructed in different ways. Depending on the prediction attribute, the model will use different adapters. Specific model selection: AesMmba-V model: Carry out pure visual aesthetic evaluation task VIAA, with image input and aesthetic score output, using image encoder E v , a single global branch and several local branches; AesMmba-M model: Carry out the aesthetic evaluation task MIAA of visual text fusion, with the input of pictures and text information related to image description, and the output is the aesthetic score, using the image encoder E v , text encoder E t , information fusion module CMF, single global branch and several local branches; AesMmba-F model: Carry out pure visual fine-grained image aesthetic evaluation task FIAA. The input is a picture. It is necessary to predict the scores of multiple attributes. The image encoder E is used. v , multiple global branches and several local branches; AesMmba-P model: Carry out personalized visual aesthetic evaluation task PIAA, with input as pictures and user description information, using image encoder E v , text encoder E t , information fusion module CMF, multiple global branches and several local branches; Among them, the number of global branches i depends on the number of attributes in the data set, and the type of local branches depends on the type of single attribute score, distribution type or average type. Different aesthetic evaluation tasks are carried out and the model M is constructed in the above manner.

9. The general image aesthetic evaluation method based on the state space model according to claim 1, characterized in that: The step 4 is specifically as follows: Step 4.1, initializing the model during the training phase; The number of initial iterations is t, the maximum number of iterations is T, and for the different models selected in step 3, the current no-reference image quality evaluation network model based on multi-granularity network is set to M t , M is the model for carrying out VIAA tasks, initialized with t = 1, M t =M; Step 4.2, training phase, set the training sample set S train Randomly select batch_size training samples without replacement as the network model M t Input; Step 4.3, construct the loss function: There are three types of loss functions: Mean square error loss function: in represents the prediction score, s i represents the true score, n represents the number of samples; Balanced cross entropy loss function: where n l represents the number of instances, C i represents the category label, K represents the number of tasks; Global moving distance loss function: Where a is the predicted label, p is the correct label of the dataset, CDF is the combined distribution function, Len is the number of interval blocks, and in the inference stage, the aesthetic evaluation score is calculated based on the predicted distribution; Different training strategies are required for different datasets: AVA and Photo.Net datasets including the distribution of aesthetic scores for each image use L dst Distribution loss is carried out. For AADB and PARA datasets containing true scores, L reg Perform regression loss. THE dst =L EMD +γL MSE +λL Ba1-CE , THE reg =L MSE +λL Ba1-CE , First, calculate the predicted score and the score label corresponding to each training sample, and calculate the above loss function according to different data sets. t Update the weight parameters of each layer; Step 4.4: Determine whether the training sample set S has been traversed train , if yes, go to step 4.5, otherwise, go to steps 4.2 and 4.3; Step 4.5, determine whether t = T is established. If so, obtain the trained multi-granularity network-based reference-free image quality assessment network model M * =M t , otherwise, let t = t + 1 and execute steps 4.3 and 4.

4.

10. The general image aesthetic evaluation method based on state space model according to claim 1, characterized in that: The step 5 is specifically as follows: The test sample set S test As the trained network model M * The input is used for forward reasoning to obtain the quality prediction score of each test sample. For the regression prediction dataset, the prediction output is the score regression branch output; for the distribution prediction dataset, the prediction output is the weighted combination of the distribution prediction output. For the PIAA task, the prediction output is the weighted combination of the distribution prediction output. i Perform forward reasoning and take the average value of the final evaluation index to verify the model effect.

Citation Information

Patent Citations

  • A personalization image aesthetic evaluation method based on character characteristics

    CN109902912A

  • Multi-modal image aesthetic quality evaluation method for solving modal missing problem

    CN114549850A

  • Personalized image aesthetic evaluation method based on meta transfer learning

    CN116843609A

  • Construction of aesthetic score distribution prediction model and multi-modal image aesthetic evaluation method

    CN118069985A

  • Personalized Digital Image Aesthetics in a Digital Medium Environment

    US20190026609A1

Cited By

  • Efficient student Chinese painting appreciation system and appreciation method based on LLaVA model

    CN119784230A

  • An efficient student Chinese painting appreciation system and method based on the LLaVA model

    CN119784230B

  • Interface design specification evaluation-oriented image-text large model fine tuning method and related device

    CN119917095A

  • Blind light field image quality evaluation method based on dynamic expert selection

    CN120107181A

  • A Method for Blind Light Field Image Quality Assessment Based on Dynamic Expert Selection

    CN120107181B