Model training method for audio and video matching and audio and video matching method and device
Through the audio and video matching model trained through comparative learning, video and audio features are extracted, which solves the problem of incompatibility between audio recommendations and video content, improves the recommendation hit rate, and improves user experience.
Patent Information
- Application Number
- CN202310230025.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, when background music is recommended based on audio popularity, the recommended audio may not match the video content to be released by the user, resulting in a low recommendation hit rate.
By building an audio and video matching model, using the contrastive learning method to train the video feature extraction model and the audio feature extraction model, extract the feature information of the video and audio, and recommend background music based on the feature matching degree to improve the adaptability of the recommendation.
The hit rate of background music recommendation is improved, ensuring a better match between recommended audio and video content, and improving user experience.
Smart Images

Figure CN118568290A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of artificial intelligence technology, and in particular to a model training method, an audio and video matching method and a device for audio and video matching. Background Art
[0002] With the popularity of video software such as short videos, user accounts can edit and publish videos by themselves. Generally speaking, when user accounts publish videos, they will also add bgm (background music) to the videos.
[0003] In the related art, bgm recommendations are made to videos of a user account based on the popularity of the bgm (number of times used / number of times played). For example, bgm recommendations are made to a user account based on the number of times an audio is played from large to small.
[0004] In the related art, recommending bgm to users based on popularity is likely to cause the bgm recommended to users to be incompatible with the content of the video to be released by the users, resulting in a low hit rate of the recommended bgm (the ratio of the number of videos with recommended bgm to the number of released videos with bgm). Summary of the invention
[0005] The embodiment of the present application provides a model training method, an audio and video matching method and a device for audio and video matching. The technical solution is as follows:
[0006] According to one aspect of an embodiment of the present application, a model training method for audio and video matching is provided, the method comprising:
[0007] Based on at least one video sample and at least one audio sample, construct a set of sample pairs, wherein the set of sample pairs includes at least one positive sample pair and at least one negative sample pair, wherein the positive sample pair includes a video sample and an audio sample having a matching relationship, and the negative sample pair includes a video sample and an audio sample not having a matching relationship;
[0008] For a video sample and an audio sample in the same sample pair, feature information corresponding to the video sample is extracted by a video feature extraction model, and feature information corresponding to the audio sample is extracted by an audio feature extraction model;
[0009] Determining a value of a contrast loss function according to feature information corresponding to the video sample and feature information corresponding to the audio sample in the same sample pair; wherein the contrast loss function is used to characterize the degree of matching of the sample pair;
[0010] According to the value of the contrast loss function, the parameters of the video feature extraction model and the audio feature extraction model are adjusted to obtain a trained video feature extraction model and a trained audio feature extraction model.
[0011] According to one aspect of an embodiment of the present application, a method for audio and video matching is provided, the method comprising:
[0012] Obtaining a first video to be matched;
[0013] Extracting feature information corresponding to the first video by using a video feature extraction model;
[0014] Determine the matching degree between the first video and each of the audios according to the feature information corresponding to the first video and the feature information corresponding to the n audios; wherein the feature information corresponding to the audios is obtained by an audio feature extraction model, the video feature extraction model and the audio feature extraction model are trained by contrastive learning, and n is an integer greater than 1;
[0015] At least one matching audio that matches the first video is determined from the n audios according to the matching degree between the first video and each of the audios.
[0016] According to one aspect of an embodiment of the present application, a model training device for audio and video matching is provided, the device comprising:
[0017] A set construction module, configured to construct a set of sample pairs based on at least one video sample and at least one audio sample, wherein the set of sample pairs includes at least one positive sample pair and at least one negative sample pair, wherein the positive sample pair includes a video sample and an audio sample having a matching relationship, and the negative sample pair includes a video sample and an audio sample not having a matching relationship;
[0018] An information extraction module, for extracting feature information corresponding to a video sample and an audio sample in the same sample pair through a video feature extraction model, and extracting feature information corresponding to the audio sample through an audio feature extraction model;
[0019] A loss determination module, used to determine the value of a contrast loss function according to feature information corresponding to the video sample and feature information corresponding to the audio sample in the same sample pair; wherein the contrast loss function is used to characterize the matching degree of the sample pair;
[0020] A parameter adjustment module is used to adjust the parameters of the video feature extraction model and the audio feature extraction model according to the value of the contrast loss function to obtain a trained video feature extraction model and a trained audio feature extraction model.
[0021] According to one aspect of an embodiment of the present application, there is provided an audio and video matching device, the device comprising:
[0022] A video acquisition module, used to acquire a first video to be matched;
[0023] An information extraction module, used to extract feature information corresponding to the first video through a video feature extraction model;
[0024] a matching degree determination module, configured to determine the matching degree between the first video and each of the audios according to the feature information corresponding to the first video and the feature information corresponding to the n audios; wherein the feature information corresponding to the audios is obtained by an audio feature extraction model, the video feature extraction model and the audio feature extraction model are trained by contrastive learning, and n is an integer greater than 1;
[0025] The audio determination module is used to determine at least one matching audio that matches the first video from the n audios according to the matching degree between the first video and each of the audios.
[0026] According to one aspect of an embodiment of the present application, a computer device is provided, the computer device comprising a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the above method.
[0027] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above method.
[0028] According to one aspect of the embodiments of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above method.
[0029] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0030] By using contrastive learning to jointly train the video feature extraction model and the audio feature extraction model, since both the video feature extraction model and the audio feature extraction model can learn the features of the video modality and the audio modality during joint training, and using contrastive learning to train, the video feature extraction capability of the video feature extraction model and the audio feature extraction capability of the audio feature extraction model can be improved. Therefore, the audio recommended to the video to be matched is determined based on the matching degree between the video features extracted by the video feature extraction model and the video features extracted by the audio feature extraction model, which can improve the BGM hit rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;
[0032] Figure 2 is a schematic diagram of an audio and video matching method provided by an embodiment of the present application;
[0033] Figure 3 is a flow chart of a model training method for audio and video matching provided by an embodiment of the present application;
[0034] Figure 4 is a flow chart of a model training method for audio and video matching provided by another embodiment of the present application;
[0035] Figure 5 is an expanded schematic diagram provided by an embodiment of the present application;
[0036] Figure 6 is a schematic diagram of a pre-training model provided by an embodiment of the present application;
[0037] Figure 7 is a flowchart of an audio and video matching method provided by an embodiment of the present application;
[0038] Figure 8 is a flowchart of an audio and video matching method provided by another embodiment of the present application;
[0039] Fig. 9 is a schematic diagram of a historical video determination method provided by an embodiment of the present application;
[0040] Fig.10 is a schematic diagram of an audio recommendation result provided by an embodiment of the present application;
[0041] Fig.11 is a block diagram of a model training device for audio and video matching provided by an embodiment of the present application;
[0042] Fig.12is a block diagram of a model training device for audio and video matching provided by another embodiment of the present application;
[0043] Fig.13 is a block diagram of an audio and video matching device provided by an embodiment of the present application;
[0044] Fig.14 is a block diagram of an audio and video matching device provided by another embodiment of the present application;
[0045] Fig.15 It is a structural block diagram of a computer device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0046] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0047] Before introducing the technical solution of this application, some background technical knowledge involved in this application is first introduced and explained. The following related technologies can be combined arbitrarily with the technical solution of the embodiment of this application as optional solutions, and they all belong to the protection scope of the embodiment of this application. The embodiment of this application includes at least part of the following contents.
[0048] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.
[0049] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes natural language processing technology, machine learning / deep learning and other major directions.
[0050] Machine Learning (ML) is a multi-disciplinary subject that involves probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize related knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and teaching learning.
[0051] Deep Learning (DL) is a new research direction in the field of Machine Learning (ML). It is introduced into machine learning to make it closer to its original goal - artificial intelligence. Deep learning is the internal laws and representation levels of learning sample data. The information obtained in the learning process is of great help in the interpretation of data such as text, images and sounds. Its ultimate goal is to enable machines to have analytical learning capabilities like humans and to recognize data such as text, images and sounds. Deep learning is a complex machine learning algorithm that has achieved results in speech and image recognition that far exceed previous related technologies. Deep learning has achieved many results in search technology, data mining, machine learning, machine translation, natural language processing, multimedia learning, speech, recommendation and personalization technology, and other related fields. Deep learning enables machines to imitate human activities such as seeing, hearing and thinking, solves many complex pattern recognition problems, and makes great progress in artificial intelligence related technologies.
[0052] Computer Vision (CV) is a science that studies how to make machines "see". To put it more specifically, it refers to using cameras and computers to replace human eyes to identify and measure targets, and further perform image processing so that the computer processes the images into images that are more suitable for human observation or transmission to instruments for detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain "information" from images or multidimensional data. The information here refers to information defined by Shannon that can be used to help make a "decision". Because perception can be seen as extracting information from sensory signals, computer vision can also be seen as a science that studies how to make artificial systems "perceive" from images or multidimensional data.
[0053] Natural Language Processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.
[0054] With the research and progress of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, driverless cars, autonomous driving, drones, robots, smart medical care, smart customer service, virtual reality (VR), augmented reality (AR), games, virtual humans, digital humans, etc. It is believed that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.
[0055] The solutions provided in the embodiments of the present application involve technologies such as artificial intelligence machine learning, computer vision, and natural language processing, which are specifically illustrated by the following embodiments.
[0056] It should be noted that before collecting the user's relevant data and during the process of collecting the user's relevant data, this application can display a prompt interface, pop-up window or output voice prompt information. The prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining the user's relevant data after obtaining the user's confirmation operation on the prompt interface or pop-up window, otherwise (that is, when the user's confirmation operation on the prompt interface or pop-up window is not obtained), the relevant steps of obtaining the user's relevant data are terminated, that is, the user's relevant data is not obtained. In other words, all user data collected by this application (including video data and audio data obtained by the publisher) are collected with the user's consent and authorization, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of relevant countries and regions.
[0057] Before introducing the technical solution of the present application, some terms involved in the present application are explained. The following related explanations can be combined arbitrarily with the technical solution of the embodiment of the present application as optional solutions, and they all belong to the protection scope of the embodiment of the present application. The embodiment of the present application includes at least part of the following contents.
[0058] Contrastive learning: It is a kind of self-supervised learning, that is, it does not rely on labeled data, but learns knowledge from unlabeled images. At present, contrastive learning seems to be in a state of "no clear definition, but with guiding principles". Its guiding principle is: by automatically constructing similar and dissimilar instances, it requires learning a representation learning model, through which similar instances are closer in the projected space, while dissimilar instances are farther apart in the projected space.
[0059] Augmentation: Data augmentation is one of the commonly used techniques in deep learning, which is mainly used to increase the training data set and make the data set as diverse as possible, so that the trained model has stronger generalization ability. The augmentation in the embodiments of the present application involves visual augmentation and temporal augmentation. Visual augmentation mainly includes horizontal / vertical flipping, rotation, scaling, cropping, shearing, translation, contrast, color jitter, noise, etc.
[0060] Recommended BGM (background music) hit rate: the ratio of the number of videos with recommended BGM to the number of videos with BGM released.
[0061] Proportion of videos released with music: the ratio of the number of videos released with BGM to the number of videos released.
[0062] TF-IDF (Term Fequency–Inverse Document Frequency): A commonly used weighting technique for information retrieval and data mining. TF stands for term frequency, and IDF stands for inverse document frequency.
[0063] MLP (Multi-Layer Perception): also called Artificial Neural Network (ANN), in addition to the input and output layers, it can have multiple hidden layers in the middle.
[0064] Please refer to Figure 1 , which shows a schematic diagram of a solution implementation environment provided by an embodiment of the present application. The solution implementation environment may include a model training device 10 and a model using device 20.
[0065] The model training device 10 may be an electronic device such as a personal computer, a computer, a tablet computer, a server, an intelligent robot, or other electronic devices with strong computing capabilities. The model training device 10 is used to jointly train the video feature extraction model 31 and the audio feature extraction model 32.
[0066] Optionally, a pre-trained model 30 is used to jointly train the video feature extraction model 31 and the audio feature extraction model 32.
[0067] In an embodiment of the present application, the pre-trained model 30 is a machine learning model for jointly training a video feature extraction model 31 and an audio feature extraction model 32. Optionally, the model training device 10 can train the pre-trained model 30 in a machine learning manner so that it has better performance. Exemplarily, the video feature extraction model 31 (which can be considered as a module or sub-model in the pre-trained model 30) in the trained pre-trained model 30 can perform feature extraction on the input video, and the audio feature extraction model 32 (which can be considered as a module or sub-model in the pre-trained model 30) in the trained pre-trained model 30 can perform feature extraction on the input audio.
[0068] The trained video feature extraction model 31 and audio feature extraction model 32 can be deployed in the model using device 20 for video or audio feature extraction, thereby achieving audio and video matching. The model using device 20 can be a terminal device such as a mobile phone, a computer, a smart TV, a multimedia playback device, a wearable device, a medical device, or a server, and this application does not limit this.
[0069] Optionally, the collected video samples and audio samples (including matched audio and video samples and unmatched audio and video samples, for specific explanations of unmatched audio and video samples, see the following embodiments) are augmented respectively to obtain augmented video samples and augmented audio samples.
[0070] In some embodiments, positive sample pairs and negative sample pairs are divided according to video samples, augmented video samples, audio samples and augmented audio samples. Optionally, the positive sample pairs include anchor samples and positive samples, and the negative sample pairs include anchor samples and negative samples. For the specific method of dividing positive sample pairs and negative sample pairs from video samples, augmented video samples, audio samples and augmented audio samples, refer to the following embodiments, which will not be repeated here. In some embodiments, the video samples in the positive sample pairs and the negative sample pairs are input into the video feature extraction model 31 to obtain video features, and the audio samples in the positive sample pairs and the negative sample pairs are input into the audio feature extraction model 32 to obtain audio features. Optionally, according to the video features and audio features corresponding to the positive sample pairs and the negative sample pairs, respectively, the contrast loss function value is determined, and with the goal of minimizing the contrast loss function value, the parameters of the video feature extraction model 31 and the audio feature extraction model 32 are adjusted to obtain the trained video feature extraction model 31 and the audio feature extraction model 32.
[0071] The execution subject of each step of the method provided in the embodiment of the present application may be a computer device, which refers to an electronic device with data calculation, processing and storage capabilities. The computer device may be a terminal such as a PC (Personal Computer), a tablet computer, a smart phone, a wearable device, an intelligent robot, etc.; it may also be a server. Among them, the server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. The computer device may be Figure 1 The model training device 10 may also be a model using device 20.
[0072] Please refer to Figure 2 , which shows a schematic diagram of an audio and video matching method provided by an embodiment of the present application.
[0073] For a video that has not been released, the user is likely to add a background music (BGM) to the video to be released, and at this time, it is necessary to recommend matching audio for the video to be released. Optionally, the video to be released is called a to-be-matched video.
[0074] The first step is to find at least one audio that matches the video tag from the music library according to the video tag of the video to be matched (hereinafter also referred to as the category tag). Optionally, the tag of the matching audio is the same as the tag of the video to be matched or has a high similarity.
[0075] The second step is to determine the historical video that matches each audio according to the historical matching situation. Optionally, the historical video that matches the audio can be determined according to the historical matching situation. For example, the video publisher records the video publishing and BGM usage of each user with the user's permission, and determines the historical video corresponding to the matching audio according to the situation recorded by the video publisher.
[0076] The third step is to extract the video features of the video to be matched through the trained video feature extraction model 31.
[0077] In the fourth step, the audio features of the matching audio are extracted through the trained audio feature extraction model 32.
[0078] For the target matching audio among the multiple matching audios, in the fifth step, the video features of the historical video corresponding to the target matching audio are extracted through the trained video feature extraction model 31.
[0079] In the sixth step, based on the feature information of the video to be matched and the feature information of the target matching audio, the feature similarity between the feature information of the video to be matched and the target matching audio is determined.
[0080] In the seventh step, based on the feature information of the video to be matched and the feature information of at least one historical video corresponding to the target matching audio, the interest similarity between the feature information of the video to be matched and the target matching audio is determined.
[0081] In the eighth step, the similarity between the video to be matched and the target matching audio is determined based on the feature similarity and interest similarity between the feature information of the video to be matched and the target matching audio.
[0082] In the ninth step, according to the similarities between the video to be matched and the multiple matching audios, the matching audios are sorted in order of similarity to determine an audio list recommended for the video to be matched.
[0083] In the related art, the video / music pre-trained feature extractor obtained through different training objectives is used to extract emb (features) for cross-modal matching. The embs obtained by the video feature extractors and audio feature extractors obtained through different pre-training objectives are difficult to match (the emb spaces are different). In the related art, the frame emb (feature average) is also used to represent the video emb (video feature), which loses the timing information. There is also a recommendation algorithm based on label / target detection, which does not make full use of the content information of the video, resulting in the richness of the recommended songs not being high enough. In addition, there is also a recommendation algorithm based on popular songs, but it does not use the content information of video / music, and cannot recommend bgm in a personalized way.
[0084] The technical solution provided in the embodiment of the present application uses a pre-trained model based on contrastive learning to obtain video features / audio features, and uses time series augmentation and corresponding training tasks to promote the model to learn temporal rhythm information. At the same time, the two-stage (two aspects) music recommendation process based on user interests captures user interests and realizes personalized recommendations. In addition, song tags (emotions / scenes) are obtained based on user interests (comments) to understand music from the user's perspective. Therefore, the technical solution provided in the embodiment of the present application can improve the hit rate of recommended audio (which can also be understood as the possibility of being selected by the user to be combined with the video to be released and released).
[0085] Please refer to Figure 3 , which shows a flow chart of a model training method for audio and video matching provided by an embodiment of the present application. The execution subject of each step of the method can be the model training device introduced above. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as a "computer device". The method may include at least one of the following steps (310-340):
[0086] Step 310, based on at least one video sample and at least one audio sample, construct a set of sample pairs, the set of sample pairs includes at least one positive sample pair and at least one negative sample pair, the positive sample pair includes a video sample and an audio sample with a matching relationship, and the negative sample pair includes a video sample and an audio sample without a matching relationship.
[0087] Video samples: Video samples are obtained from videos posted in the user account history. The embodiments of the present application are all authorized by the user when obtaining audio and video samples. For example, user A posted a video C on platform B. Video C includes video screen content, video and audio content corresponding to the video screen content (or there may not be any), and background music D of video C. At this time, the video screen content can be used as a video sample, and the background music D of video C can be considered as an audio sample that has a matching relationship with the video sample. Optionally, when user A posts video C, he selects audio for the video (that is, background music D of video C). Of course, when the user posts video C, he may not directly select background music D. He may also have auditioned many other audios, but did not select them as background music for video C. Optionally, the audio that these users auditioned but did not select as background music is regarded as an audio sample that does not have a matching relationship with the above-mentioned video sample.
[0088] Audio samples: obtain the audio corresponding to the video from the historically released videos (the audio in this case refers to the background music of the video, not the music of the video content itself) or the audio that was auditioned by the user when the video was released but was not determined as the background music of the released video.
[0089] In some embodiments, sample augmentation is performed on the at least one video sample and the at least one audio sample to obtain an augmented video sample and an augmented audio sample (for the specific augmentation method, see the following embodiment, which will not be described in detail here). Optionally, a set of sample pairs is constructed based on at least one video sample and at least one audio sample, or a set of sample pairs is constructed based on at least one video sample and at least one audio sample and at least one augmented video sample and at least one augmented audio sample.
[0090] Positive sample pair: considered to be two samples with a similar or matching relationship. Optionally, when the positive sample pair is two samples with a similar relationship, the two samples in the positive sample pair can be considered to be samples of the same type (for example, both are video samples). Optionally, when the positive sample pair is two samples with a matching relationship, the two samples in the positive sample pair can be considered to be a video sample and an audio sample, and the video sample and the audio sample are considered to belong to the same published video. Optionally, the positive sample pair includes anchor samples and positive samples.
[0091] Negative sample pair: considered to be two samples that do not have a similar or matching relationship. Optionally, when the negative sample pair is two samples that do not have a similar relationship, the two samples in the negative sample pair can be considered to be samples of the same type (for example, both are video samples). Optionally, when the negative sample pair is two samples that do not have a matching relationship, the two samples in the negative sample pair can be considered to be a video sample and an audio sample, and it is considered that the user of the published video corresponding to the video sample chose to audition when publishing the video but ultimately did not adopt the audio. Optionally, the negative sample pair includes anchor samples and negative samples.
[0092] Step 320: For the video sample and the audio sample in the same sample pair, feature information corresponding to the video sample is extracted by the video feature extraction model, and feature information corresponding to the audio sample is extracted by the audio feature extraction model.
[0093] In some embodiments, the video feature extraction model is a pre-trained machine learning model. In some embodiments, the video feature extraction model includes at least one feature extraction module. Optionally, the video feature extraction model includes a linear transformation module in addition to the feature extraction module. The embodiments of the present application do not limit the specific model architecture of the video feature extraction model.
[0094] In some embodiments, the audio feature extraction model is a pre-trained machine learning model. In some embodiments, the audio feature extraction model includes at least one feature extraction module. Optionally, the audio feature extraction model includes a linear transformation module in addition to the feature extraction module. The embodiments of the present application do not limit the specific model architecture of the audio feature extraction model.
[0095] In some embodiments, the video feature extraction model and the audio feature extraction model are jointly trained together.
[0096] In some embodiments, for a video, a video frame sequence is obtained by sampling and extracting frames, and then the feature information corresponding to the video is extracted by a video feature extraction model. Optionally, the sampling frequency is not limited. In some embodiments, taking the video as a 1-minute video as an example, the 1-minute video is framed at a frequency of sampling N frames per minute to obtain N frames of images. Optionally, according to the pixels of each frame of the image, the pixel matrix corresponding to the frame of the image is determined. Optionally, the matrix dimension corresponding to the N frames of the image is a matrix of 3*a*b*N, where 3 represents the value of the RGB three channels, a and b represent the number of pixels of the image in the horizontal and vertical directions respectively, N represents the number of images extracted, and N, a and b are positive integers. Optionally, the matrix of dimension 3*a*b*N (or considered as a video frame sequence) is used as the input of the video feature extraction model to obtain the corresponding feature information.
[0097] In some embodiments, for a segment of audio, a method of obtaining an audio frame sequence is performed by sampling and frame extraction, and then the feature information corresponding to the segment of video is extracted through a video feature extraction model. Optionally, the sampling frequency is not limited. In some embodiments, taking the audio as a 1-minute video as an example, the 1-minute audio file (optionally, the audio file is in wav format) is frame extracted at a frequency of sampling N frames per minute to obtain N frame extraction results. Optionally, the element size corresponding to the frame is determined according to the size of the beat (beat information of the audio) corresponding to each frame extraction result. Optionally, the matrix dimension corresponding to the N frame extraction results is a 1*N matrix. Optionally, the matrix with the dimension of 1*N is used as the input of the audio feature extraction model to obtain the corresponding feature information.
[0098] In some embodiments, the feature information is a feature vector. The embodiment of the present application does not limit the dimension of the feature vector output by the video feature extraction model or the audio feature extraction model, does not limit the specific model architecture in the video feature extraction model, and the video feature extraction model includes but is not limited to a convolution module, a pooling module, etc., and does not limit the specific model architecture in the audio feature extraction model, and the audio feature extraction model includes but is not limited to a convolution module, a pooling module, etc.
[0099] Step 330, determining the value of the contrast loss function according to the feature information corresponding to the video sample and the feature information corresponding to the audio sample in the same sample pair; wherein the contrast loss function is used to characterize the matching degree of the sample pair.
[0100] Contrastive loss function: a function used to characterize the matching degree of sample pairs. Optionally, the value of the contrastive loss function can reflect the matching degree of the positive sample pair and the matching degree of the negative sample pair. Optionally, by performing a gradient descent update on the value of the contrastive loss function, the matching degree of the positive sample pair can be improved and the matching degree of the negative sample pair can be reduced.
[0101] Step 340, adjusting the parameters of the video feature extraction model and the audio feature extraction model according to the value of the contrast loss function to obtain a trained video feature extraction model and a trained audio feature extraction model.
[0102] In some embodiments, with the goal of minimizing the value of the contrast loss function, the parameters of the video feature extraction model and the audio feature extraction model are adjusted to obtain a trained video feature extraction model and a trained audio feature extraction model.
[0103] Of course, the present application does not limit the method of adjusting the model parameters according to the value of the contrast loss function.
[0104] The technical solution provided by the embodiment of the present application is to jointly train the video feature extraction model and the audio feature extraction model by using contrastive learning. Since the video feature extraction model and the audio feature extraction model can learn the features of the video modality and the audio modality during the joint training, and the contrastive learning method is used for training, the video feature extraction capability of the video feature extraction model and the audio feature extraction capability of the audio feature extraction model can be improved. Therefore, the audio recommended to the video to be matched is determined according to the matching degree between the video features extracted by the video feature extraction model and the video features extracted by the audio feature extraction model, which can improve the BGM hit rate.
[0105] Please refer to Figure 4 , which shows a flow chart of a model training method for audio and video matching provided by another embodiment of the present application. The execution subject of each step of the method can be the model training device introduced above. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as a "computer device". The method can include at least one of the following steps (310-340):
[0106] Step 310, based on at least one video sample and at least one audio sample, construct a set of sample pairs, the set of sample pairs includes at least one positive sample pair and at least one negative sample pair, the positive sample pair includes a video sample and an audio sample with a matching relationship, and the negative sample pair includes a video sample and an audio sample without a matching relationship.
[0107] Step 320: For the video sample and the audio sample in the same sample pair, feature information corresponding to the video sample is extracted by the video feature extraction model, and feature information corresponding to the audio sample is extracted by the audio feature extraction model.
[0108] Step 321, for the video sample and the audio sample in the same sample pair, perform augmentation processing on the video sample to obtain an augmented video sample corresponding to the video sample; and perform augmentation processing on the audio sample to obtain an augmented audio sample corresponding to the audio sample.
[0109] In the embodiment of the present application, the augmentation methods for audio samples and video samples include time series augmentation, wherein time series augmentation includes order augmentation, speed augmentation and direction augmentation. The specific implementation methods of the three augmentations are shown in the following steps. The three augmentation methods can exist separately or in combination with each other. Of course, the three augmentations can also be performed on the same sample at the same time. The present application does not limit the specific combination of augmentations.
[0110] In the embodiment of the present application, the augmentation method for the video sample also includes visual augmentation. Of course, the present application does not limit the specific type of visual augmentation. Optionally, visual augmentation includes color conversion, random size change, cutout, horizontal flip, etc.
[0111] In the embodiment of the present application, the augmentation for the video sample includes at least one of the above-mentioned temporal augmentation and visual augmentation. The augmentation for the audio sample includes any one or more types of the above-mentioned temporal augmentation. The embodiment of the present application does not limit the specific augmentation method of the audio sample and the video sample.
[0112] In some embodiments, when the augmentation method is sequential augmentation, step 321 includes at least one step from step 321 - 1 to step 321 - 3 (not shown in the figure).
[0113] Step 321-1, segment the video sample to obtain multiple video clips; wherein, the feature information corresponding to the video sample is obtained by extracting the first video clip from the multiple video clips through a video feature extraction model, and the feature information corresponding to the first video clip is obtained; the feature information corresponding to the audio sample is obtained by extracting the first audio clip through an audio feature extraction model, and the feature information corresponding to the first audio clip is obtained, and the first audio clip is the audio clip corresponding to the first video clip.
[0114] In some embodiments, there is no limitation on the method for segmenting the video sample. Optionally, the segmentation is uniform segmentation or non-uniform segmentation. Of course, the present application does not limit the granularity of the segmentation. Optionally, a video sample is evenly divided into M segments, where M is a positive integer. Optionally, the first video segment is any segment of the M segments. Optionally, the first video segment is sampled and framed to obtain a video frame sequence that can be input into a video feature extraction model. Optionally, the first video segment is the mth segment of the M segments, where m is a positive integer not greater than M. Optionally, the first audio segment is the mth segment of the audio sample divided into M segments that matches the video sample.
[0115] Step 321-2, selecting a second video segment different from the first video segment from multiple video segments as an augmented video sample; wherein the feature information corresponding to the augmented video sample is obtained by extracting the second video segment through a video feature extraction model.
[0116] Optionally, the second video segment is any segment of the M video segments that is different from the first video segment. Optionally, the second video segment is sampled and framed to obtain a video frame sequence that can be input into the video feature extraction model. Optionally, the second video segment is the nth segment of the M segments, where n is a positive integer different from m and not greater than M.
[0117] Step 321-3, using the second audio segment as the augmented audio sample; wherein the second audio segment is the audio segment corresponding to the second video segment, and the feature information corresponding to the augmented audio sample is obtained by extracting the second audio segment through an audio feature extraction model.
[0118] Optionally, the second audio segment is the nth segment of the audio sample divided into M segments that matches the video sample.
[0119] In some embodiments, when the augmentation method is speed augmentation, step 321 includes at least one of steps 321 - 4 to 321 - 7 (not shown in the figure).
[0120] Step 321-4, select at least one frame from the video sample using the first sampling frequency to obtain a first video frame sequence; wherein, the feature information corresponding to the video sample is extracted from the first video frame sequence through a video feature extraction model to obtain the feature information corresponding to the first video frame sequence.
[0121] Optionally, the video sample in step 321-4 may be a video clip after the above-mentioned sequential augmentation. Optionally, the original video sample is a 4-minute matrix, which is divided into 4 1-minute video clips after the above-mentioned sequential augmentation, and step 321-4 may be a sampling of any of the video clips. Of course, the video sample in step 321-4 may also be considered as the original complete video that has not undergone the above-mentioned sequential augmentation, and this application does not limit this.
[0122] The first sampling frequency and the second sampling frequency can be considered as the frequency of extracting frames for the video. Optionally, the sampling frequency (frame extraction frequency) is 12 frames per minute, which means that for a one-minute video, 12 frames need to be sampled to obtain a video frame extraction sequence (video frame extraction graph). Optionally, based on the pixel points in each frame, the input for inputting into the video feature extraction model is determined. Optionally, the input is a 3*a*b*N matrix.
[0123] Step 321-5, select at least one frame from the video sample using a second sampling frequency to obtain a second video frame sequence as an augmented video sample; wherein the feature information corresponding to the augmented video sample is obtained by extracting the second video frame sequence through a video feature extraction model, and the feature information corresponding to the second video frame sequence is obtained; the second sampling frequency is different from the first sampling frequency.
[0124] Optionally, the second sampling frequency is the same as or different from the first sampling frequency. Optionally, the first sampling frequency is k1 frames per minute, and the second sampling frequency is k2 frames per minute, wherein k2 is a positive integer less than k1. Optionally, for a one-minute video, the pixel matrix corresponding to the first video frame sequence obtained using the first sampling frequency is 3*a*b*k1. Optionally, for a one-minute video, there are only k2 frames in the second video frame sequence obtained using the second sampling frequency, and the corresponding pixel matrix is 3*a*b*k2. At this time, the matrix dimensions of 3*a*b*k1 and 3*a*b*k2 are inconsistent. At this time, the second video frame sequence is supplemented, for example, blank images (the values of the three RGB channels are all 0) are used to fill k1-k2 frames, so that the pixel matrix corresponding to the supplemented second video frame sequence is also 3*a*b*k1.
[0125] Optionally, when the dimension of the pixel value matrix corresponding to the second video sequence is inconsistent with the dimension of the pixel value matrix corresponding to the first video sequence, 0 is used for padding so that the dimension of the pixel value matrix corresponding to the second video sequence after padding is consistent with the dimension of the pixel value matrix corresponding to the first video sequence.
[0126] Step 321-6, select at least one frame from the audio sample using a third sampling frequency to obtain a first audio frame sequence; wherein the feature information corresponding to the audio sample is extracted from the first audio frame sequence through an audio feature extraction model to obtain the feature information corresponding to the first audio frame sequence.
[0127] The third sampling frequency and the fourth sampling frequency can be considered as the frequency of extracting frames for audio. Optionally, the sampling frequency (frame extraction frequency) is 12 frames per minute, which means that for a one-minute audio, 12 frames need to be sampled to obtain an audio frame extraction sequence. Optionally, each frame of audio corresponds to a beat value, and a 1*12 matrix is obtained based on the beat values corresponding to the 12 frames to determine the input for input into the video feature extraction model. Optionally, the input is a 1*12 matrix.
[0128] Step 321-7, select at least one frame from the audio sample using a fourth sampling frequency to obtain a second audio frame sequence as an augmented audio sample; wherein the feature information corresponding to the augmented audio sample is obtained by extracting the second audio frame sequence through an audio feature extraction model, and the feature information corresponding to the second audio frame sequence is obtained; the fourth sampling frequency is different from the third sampling frequency.
[0129] Optionally, the fourth sampling frequency is the same as or different from the third sampling frequency. Optionally, the third sampling frequency is k3 frames per minute, and the fourth sampling frequency is k4 frames per minute, wherein k4 is a positive integer less than k3. Optionally, for a one-minute audio, the matrix corresponding to the first audio frame extraction sequence obtained using the third sampling frequency is 1*k3. Optionally, for a one-minute audio, there are only k4 frames in the second audio frame extraction sequence obtained using the fourth sampling frequency, and the corresponding matrix is 1*k4. At this time, the matrix dimensions of 1*k4 and 1*k3 are inconsistent. At this time, the second audio frame extraction sequence is supplemented, for example, k3-k4 frames are filled with blanks (beat value is 0), so that the matrix corresponding to the supplemented second audio frame extraction sequence is also 1*k3.
[0130] In some embodiments, when the augmentation method is directional augmentation, step 321 includes at least one step from step 321 - 8 to step 321 - 11 (not shown in the figure).
[0131] Step 321-8, sampling at least one frame from the video sample in positive order to obtain a third video frame sequence; wherein, the feature information corresponding to the video sample is extracted from the third video frame sequence through a video feature extraction model, and the feature information corresponding to the third video frame sequence is obtained.
[0132] Optionally, the video sample in step 321-8 may be a video clip after the above-mentioned sequential augmentation. Optionally, the original video sample is a 4-minute video, which is divided into 4 1-minute video clips after the above-mentioned sequential augmentation, and step 321-8 may be a sampling of any of the video clips. Of course, the video sample in step 321-4 may also be considered as the original complete video that has not undergone the above-mentioned sequential augmentation, and this application does not limit this.
[0133] Optionally, in the case where the sampling frequency and the sampling direction are consistent, the third video frame sampling sequence and the first video frame sampling sequence may be the same sequence.
[0134] Of course, in the case where there is any inconsistency between the sampling frequency and the sampling direction, the third video frame extraction sequence and the first video frame extraction sequence are different sequences.
[0135] Step 321-9, reversely sample at least one frame from the video sample to obtain a fourth video frame sequence as an augmented video sample; wherein the feature information corresponding to the augmented video sample is obtained by extracting the fourth video frame sequence through a video feature extraction model.
[0136] Optionally, for a one-minute video clip, assuming that the sampling frequencies of the forward and reverse sampling are the same, the third video frame sequence and the fourth video frame sequence are essentially the same pictures, but arranged differently. Assuming that 12 frames of pictures are sampled and numbered 1 to 12, the third video frame sequence is pictures 1 to 12, and the fourth video frame sequence corresponds to pictures 12 to 1.
[0137] Step 321-10, sampling at least one frame from the audio sample in positive order to obtain a third audio frame sequence; wherein the feature information corresponding to the audio sample is extracted from the third audio frame sequence through an audio feature extraction model to obtain the feature information corresponding to the third audio frame sequence.
[0138] Optionally, the audio sample in step 321-10 may be an audio segment after the above-mentioned sequential augmentation. Optionally, the original audio sample is a 4-minute audio, which is divided into 4 1-minute video segments after the above-mentioned sequential augmentation, and step 321-10 may be a sampling of any of the audio segments. Of course, the audio sample in step 321-10 may also be considered as the original complete video that has not undergone the above-mentioned sequential augmentation, and this application does not limit this.
[0139] Optionally, when the sampling frequency and the sampling direction are consistent, the third audio frame extraction sequence and the first audio frame extraction sequence may be the same sequence.
[0140] Of course, in the case where there is any inconsistency between the sampling frequency and the sampling direction, the third audio frame extraction sequence and the first audio frame extraction sequence are different sequences.
[0141] Step 321-11, reversely sample at least one frame from the audio sample to obtain a fourth audio frame sequence as an augmented audio sample; wherein the feature information corresponding to the augmented audio sample is obtained by extracting the fourth audio frame sequence through an audio feature extraction model.
[0142] Optionally, for a one-minute audio clip, assuming that the sampling frequencies of the forward and reverse sampling are the same, the third audio frame sequence and the fourth audio frame sequence have essentially the same beat values, but are arranged in different ways. Assuming that 12 beat values are sampled and numbered 1 to 12, the third audio frame sequence is the beat values 1 to 12, and the fourth audio frame sequence corresponds to the beat values 12 to 1.
[0143] Step 322: extract feature information corresponding to the augmented video sample using a video feature extraction model, and extract feature information corresponding to the augmented audio sample using an audio feature extraction model.
[0144] After randomly combining and generating augmented video samples and augmented audio samples, it is necessary to reconstruct positive sample pairs and negative samples. Step 322 and step 320 are performed.
[0145] Optionally, refer to Figure 5 , which shows an augmented schematic diagram. 51 represents a video sample, and 52 represents a corresponding matching audio sample.
[0146] Step 331 , determining the value of the contrast loss function according to the feature information corresponding to the video sample and the feature information corresponding to the audio sample in the same sample pair, and the feature information corresponding to the augmented video sample and the feature information corresponding to the augmented audio sample.
[0147] Optionally, the feature information corresponding to the video samples and the feature information corresponding to the audio samples used to calculate the contrast loss function value, as well as the feature information corresponding to the augmented video samples and the feature information corresponding to the augmented audio samples are feature information obtained after passing through the video feature extraction model and the audio feature extraction model and then passing through the MLP layer.
[0148] In the embodiment of the present application, there are at least three ways to construct positive and negative sample pairs for video samples, audio samples, augmented video samples, and augmented audio samples. Anchor point samples and positive samples constitute positive sample pairs, and anchor point samples and negative samples constitute negative sample pairs.
[0149] Optionally, the augmented video sample is used as the first anchor sample, the original video sample corresponding to the augmented video sample is used as the first positive sample, and the other video samples are used as the first negative sample. Optionally, the augmented video sample corresponding to the i-th video of video A is used as the first anchor sample, the i-th video of video A is used as the first positive sample, and the i-th video of video B is used as the first negative sample, where i is a positive integer. Optionally, the first anchor sample and the first positive sample constitute a first positive sample pair, and the first anchor sample and the first negative sample constitute a first negative sample pair.
[0150] Optionally, the augmented video sample is used as the second anchor sample, the audio sample matching the original video sample corresponding to the augmented video sample is used as the second positive sample, and the other audio samples are used as the second negative sample. Optionally, the augmented video sample corresponding to the i-th video of video A is used as the second anchor sample, the i-th audio of audio C matched by video A is used as the second positive sample, i is a positive integer, and the i-th audio of other audio that does not match video A is used as the second negative sample. Optionally, the second anchor sample and the second positive sample constitute a second positive sample pair, and the second anchor sample and the second negative sample constitute a second negative sample pair.
[0151] Optionally, the augmented audio sample is used as the third anchor sample, the video sample matching the original audio sample corresponding to the augmented audio sample is used as the third positive sample, and the other video samples are used as the third negative sample. Optionally, the augmented audio sample corresponding to the i-th audio segment of audio A is used as the third anchor sample, the i-th video segment of video C matching audio A is used as the third positive sample, i is a positive integer, and the i-th video segment of other videos not matching audio A is used as the third negative sample. Optionally, the third anchor sample and the third positive sample constitute a third positive sample pair, and the third anchor sample and the third negative sample constitute a third negative sample pair.
[0152] The embodiment of the present application does not limit the method for constructing the positive and negative sample pairs.
[0153] In some embodiments, step 331 includes at least one of steps 331 - 1 to 331 - 4 (not shown in the figure).
[0154] Step 331 - 1 : Determine a first contrast loss according to feature information corresponding to the video sample and feature information corresponding to the augmented video sample.
[0155] Optionally, the first contrast loss is determined using feature information corresponding to the first positive sample pair and the first negative sample respectively.
[0156] Step 331 - 2 : Determine a second contrast loss according to feature information corresponding to the video sample and feature information corresponding to the augmented audio sample.
[0157] In some embodiments, the second contrast loss is determined using feature information corresponding to the second positive sample pair and the second negative sample.
[0158] Step 331 - 3 , determining a third contrast loss according to the feature information corresponding to the augmented video sample and the feature information corresponding to the audio sample.
[0159] In some embodiments, the second contrast loss is determined using feature information corresponding to the third positive sample pair and the third negative sample.
[0160] Step 331 - 4 , determining a value of the contrast loss function according to the first contrast loss, the second contrast loss, and the third contrast loss.
[0161] In some embodiments, a weighted sum is performed on the first contrast loss, the second contrast loss, and the third contrast loss to determine a value of the contrast loss function.
[0162] In some embodiments, the first contrast loss, the second contrast loss, and the third contrast loss are directly summed to determine the value of the contrast loss function.
[0163] Optionally, in, cRL represents the value of the contrast loss function. Optionally, is the first contrast loss, is the second contrastive loss, is the third contrast loss, and E represents expectation. v represents the video sample, a represents the audio sample, I represents the position of the segment in the complete video, and r represents the value of the augmentation function. The augmentation corresponding to different methods is different. P represents the positive sample, and N represents the negative sample.
[0164] Optionally, and, P is a positive sample, n is a negative sample, and w represents the weight, which is a learnable parameter in the model.
[0165] In some embodiments, when the augmentation method is sequential augmentation, the above method further includes at least one step from step 332 to step 335 (not shown in the figure).
[0166] Step 332: Determine the sequence of the first video segment and the second video segment according to the feature information corresponding to the first video segment and the feature information corresponding to the second video segment by using a first sequence classifier.
[0167] The first order classifier is a binary classifier. Optionally, the classification results are 0 and 1, where 1 represents the front-to-back order and 0 represents the back-to-front order. Optionally, the first video clip is the first segment in the complete video, and the second video clip is the second segment in the complete video. The first order classifier is used to determine the order of the first video clip and the second video clip based on the feature information corresponding to the first video clip and the feature information corresponding to the second video clip, that is, the first video clip is in front and the second video clip is in the back, that is, the front-to-back order. At this time, the output of the first order classifier should be 1.
[0168] Step 333: Determine the sequence of the first audio segment and the second audio segment according to the feature information corresponding to the first audio segment and the feature information corresponding to the second audio segment by using a second sequence classifier.
[0169] The second order classifier is a binary classifier. Optionally, the classification results are 0 and 1, where 1 represents the front-to-back order and 0 represents the back-to-front order. Optionally, the first audio segment is the first segment in the complete audio, and the second audio segment is the second segment in the complete audio. The second order classifier is used to determine the order of the first audio segment and the second audio segment based on the feature information corresponding to the first audio segment and the feature information corresponding to the second audio segment, that is, the first audio segment is in front and the second audio segment is in the back, that is, the front-to-back order. At this time, the output of the second order classifier should be 1.
[0170] Step 334: Determine the sequence of the first video segment and the second audio segment according to the feature information corresponding to the second video segment and the feature information corresponding to the second audio segment through a third sequence classifier.
[0171] The third order classifier is a binary classifier. Optionally, the classification results are 0 and 1, where 1 represents the front-to-back order and 0 represents the back-to-front order. Optionally, the second video clip is the first segment in the complete video, and the second audio clip is the second segment in the complete audio. The complete video and the complete audio match. The third order classifier is used to determine the order of the second video clip and the second audio clip based on the feature information corresponding to the second video clip and the feature information corresponding to the second audio clip. The order should be that the second video clip is in front and the second audio clip is in the back, that is, the front-to-back order. At this time, the output of the third order classifier should be 1.
[0172] Optionally, the first order classifier, the second order classifier and the third order classifier are different classifiers.
[0173] Step 335, determine the sequence classification loss according to the sequence determined by the first sequence classifier, the second sequence classifier, and the third sequence classifier. The sequence classification loss is used to reflect the prediction accuracy of the sequence, and the sequence classification loss is used to adjust the model parameters in combination with the value of the contrast loss function.
[0174] Optionally, a weighted sum is performed on the losses corresponding to the order determined by the first order classifier, the second order classifier, and the third order classifier to determine the order classification loss.
[0175] Optionally, the sequential order corresponding losses determined by the first sequential classifier, the second sequential classifier, and the third sequential classifier are summed to determine the sequential classification loss.
[0176] Optionally, a sequential classification loss is determined by unsupervised learning.
[0177] In some embodiments, when the augmentation method is speed augmentation, the above method further includes at least one step from step 336 to step 338 (not shown in the figure).
[0178] Step 336, using the first speed classifier to determine the predicted sampling frequency of the first video frame sequence according to the feature information corresponding to the first video frame sequence; and using the first speed classifier to determine the predicted sampling frequency of the second video frame sequence according to the feature information corresponding to the second video frame sequence.
[0179] The first speed classifier is a 4-class classifier. Optionally, the classification results are 1, 2, 4 and 8, where 1 represents 1x sampling, 2 represents 2x sampling, 3 represents 3x sampling, and 4 represents 4x sampling. Optionally, if the first video frame sequence is 1x sampling, the predicted sampling frequency of the first video frame sequence is determined to be 1 by using the first speed classifier according to the feature information corresponding to the first video frame sequence. The corresponding second video frame sequence is the same as the first video frame sequence.
[0180] Step 337, using a second speed classifier to determine the predicted sampling frequency of the first audio frame sequence according to the feature information corresponding to the first audio frame sequence; and using a second speed classifier to determine the predicted sampling frequency of the second audio frame sequence according to the feature information corresponding to the second audio frame sequence.
[0181] The second speed classifier is a 4-class classifier. Optionally, the classification results are 1, 2, 4 and 8, where 1 represents 1x sampling, 2 represents 2x sampling, 3 represents 3x sampling, and 4 represents 4x sampling. Optionally, if the first audio frame sequence is 1x sampling, the predicted sampling frequency of the first audio frame sequence is determined to be 1 by using the first speed classifier according to the feature information corresponding to the first audio frame sequence. The second audio frame sequence is the same as the first audio frame sequence.
[0182] Optionally, the first speed classifier and the second speed classifier are the same classifier.
[0183] Step 338, determining a speed classification loss based on the predicted sampling frequency determined by the first speed classifier and the second speed classifier, wherein the speed classification loss is used to reflect the prediction accuracy of the sampling frequency, and the speed classification loss is used to adjust the model parameters in combination with the value of the contrast loss function.
[0184] Optionally, a speed classification loss is determined by unsupervised learning.
[0185] In some embodiments, when the augmentation method is directional augmentation, the above method further includes at least one step from step 339 to step 339 - 2 (not shown in the figure).
[0186] Step 339, using the first direction classifier to determine the sampling direction of the third video frame sequence according to the feature information corresponding to the third video frame sequence; and using the first direction classifier to determine the sampling direction of the fourth video frame sequence according to the feature information corresponding to the fourth video frame sequence.
[0187] The first direction classifier is a binary classifier. Optionally, the classification results are 0 and 1, where 1 represents positive order and 0 represents reverse order. Optionally, if the third video frame sequence is sampled in positive order, the first direction classifier determines that the sampling direction of the third video frame sequence should be positive order based on the feature information corresponding to the third video frame sequence, and the output of the first direction classifier should be 1. The fourth video frame sequence is the same as the third video frame sequence.
[0188] Step 339-1, using a second direction classifier to determine the sampling direction of the third audio frame sequence according to the feature information corresponding to the third audio frame sequence; and using a second direction classifier to determine the sampling direction of the fourth audio frame sequence according to the feature information corresponding to the fourth audio frame sequence.
[0189] The second direction classifier is a binary classifier. Optionally, the classification results are 0 and 1, where 1 represents positive order and 0 represents reverse order. Optionally, if the third audio frame sequence is sampled in positive order, the second direction classifier determines that the sampling direction of the third audio frame sequence should be positive order based on the feature information corresponding to the third audio frame sequence, and the output of the second direction classifier should be 1. The fourth audio frame sequence is the same as the third audio frame sequence.
[0190] Optionally, the first direction classifier and the second direction classifier are the same classifier.
[0191] Step 339-2, determine the direction classification loss according to the sampling directions determined by the first direction classifier and the second direction classifier, the direction classification loss is used to reflect the prediction accuracy of the sampling direction, and the direction classification loss is used to adjust the model parameters in combination with the value of the contrast loss function.
[0192] Optionally, the direction classification loss is determined by unsupervised learning.
[0193] Step 340, adjusting the parameters of the video feature extraction model and the audio feature extraction model according to the value of the contrast loss function to obtain a trained video feature extraction model and a trained audio feature extraction model.
[0194] Optionally, according to the value of the contrast loss function, as well as the above-mentioned order classification loss, direction classification loss, and speed classification loss, the parameters of the video feature extraction model and the audio feature extraction model are adjusted to obtain a trained video feature extraction model and a trained audio feature extraction model.
[0195] Optionally, L TEMP =L speed +L direction +L order , where L order is the sequential classification loss. L speed is the speed classification loss, L direction is the direction classification loss. L TEMP is the total loss of time augmentation.
[0196] Optionally, L SSL =L CRL +λ LTEMP , where L SSL represents the total loss, L CRL Represents the value of the contrast loss function. λ is the default parameter 0.5.
[0197] refer to Figure 6, which shows a schematic diagram of the pre-trained model. Optionally, the pre-trained model includes a video feature extraction model, an audio feature extraction model, a speed classifier, a direction classifier, a VV sequential classifier (first sequential classifier), an AA sequential classifier (second sequential classifier), and a VA sequential classifier (third sequential classifier). Optionally, the video feature extraction model includes CMT (pre-trained video feature extractor) and X-linear (linear module). Optionally, the audio feature extraction model includes Yamnet (pre-trained audio feature extractor) and audio-linear (linear module). Optionally, the block labeled 1 in the figure represents the feature information obtained by the video sample through the video feature extraction model, the block labeled 2 in the figure represents the feature information obtained by the augmented video sample through the video feature extraction model, the block labeled 3 in the figure represents the feature information obtained by the audio sample through the audio feature extraction model, and the block labeled 4 in the figure represents the feature information obtained by the augmented audio sample through the audio feature extraction model. Optionally, the block labeled 5 in the figure represents the feature information obtained by the video sample after passing through the video feature extraction model and then the output features obtained by passing through MLP, the block labeled 6 in the figure represents the feature information obtained by the augmented video sample after passing through the video feature extraction model and then the output features obtained by passing through MLP, the block labeled 7 in the figure represents the feature information obtained by the audio sample after passing through the audio feature extraction model and then the output features obtained by passing through MLP, and the block labeled 8 in the figure represents the feature information obtained by the augmented audio sample after passing through the audio feature extraction model and then the output features obtained by passing through MLP. Optionally, the block numbered 9 in the figure represents the result obtained by the speed classifier of the feature information obtained by the video sample or the augmented video sample through the video feature extraction model, the block numbered 10 in the figure represents the result obtained by the direction classifier of the feature information obtained by the video sample or the augmented video sample through the video feature extraction model, the block numbered 11 in the figure represents the result obtained by the speed classifier of the feature information obtained by the audio sample or the augmented audio sample through the audio feature extraction model, and the block numbered 12 in the figure represents the result obtained by the direction classifier of the feature information obtained by the audio sample and the augmented audio sample through the audio feature extraction model. Optionally, the first contrast loss is calculated according to the block numbered 5 and the block numbered 6, the second contrast loss is calculated according to the block numbered 5 and the block numbered 8, and the third contrast loss is calculated according to the block numbered 7 and the block numbered 6. Optionally, the first order loss is calculated according to the block numbered 1 and the block numbered 2. The second order loss is calculated according to the block numbered 3 and the block numbered 4, and the third order loss is calculated according to the block numbered 2 and the block numbered 4. Optionally, the speed classification loss is calculated according to the block numbered 9 or the block numbered 11. Optionally, the speed classification loss is calculated according to the block numbered 10 or the block numbered 12.
[0198] The technical solution provided in the embodiment of the present application combines sample augmentation with contrastive learning, so that both the video feature extraction model and the audio feature extraction model can learn more features, which is beneficial to the downstream audio and video matching tasks.
[0199] In addition, during augmentation, in addition to visual augmentation, temporal augmentation is also introduced, so that the video feature extraction model and the audio feature extraction model can learn more temporal features, which is conducive to enriching the feature extraction of the video feature extraction model and the audio feature extraction model.
[0200] Specifically, when calculating the contrastive loss, three different contrastive losses were constructed to learn the features between positive and negative sample pairs from different dimensions, which can make the feature distance between positive sample pairs of the video feature extraction model and the audio feature extraction model closer, and the feature distance between negative sample pairs farther. This enriches the feature extraction capabilities of the video feature extraction model and the audio feature extraction model, which is beneficial to improving the performance of model representation.
[0201] Please refer to Figure 7 , which shows a flow chart of an audio and video matching method provided by an embodiment of the present application. The execution subject of each step of the method can be the model using device introduced above. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as a "computer device". The method can include at least one of the following steps (710-740):
[0202] Step 710: Obtain a first video to be matched.
[0203] In some embodiments, the video to be matched is a video whose audio has not yet been determined to be matched. The application does not limit the type of the first video, and the first video can be an original video shot by the user account, or a video recorded from other videos, etc.
[0204] Step 720: extract feature information corresponding to the first video using a video feature extraction model.
[0205] Optionally, the trained video feature extraction model in the above embodiment is used to extract feature information corresponding to the first video.
[0206] In some embodiments, the first video is frame extracted to obtain a video frame sequence, and a pixel value matrix corresponding to the video frame sequence is determined. Optionally, the pixel value matrix is input into a video feature extraction model to obtain feature information corresponding to the first video.
[0207] In some embodiments, the feature information is a feature vector. Optionally, the dimension of the feature information is not limited.
[0208] Step 730, determining the degree of match between the first video and each audio according to the feature information corresponding to the first video and the feature information corresponding to the n audios; wherein the feature information corresponding to the audio is obtained through an audio feature extraction model, and the video feature extraction model and the audio feature extraction model are trained using contrastive learning, and n is an integer greater than 1.
[0209] In some embodiments, the n audios are all the audios in the music library, and no screening is performed. Optionally, the first video is matched with all the audios in the music library.
[0210] In some other embodiments, the n audios are audios in a music library that match the first video. Optionally, the first video is matched with the audios in a music library that match the first video.
[0211] Optionally, feature information corresponding to the n audios is extracted by an audio feature extraction model. Optionally, the trained audio feature extraction model in the above embodiment is used to extract feature information corresponding to the n audios.
[0212] In some embodiments, the audio is framed to obtain an audio frame sequence, and a beat value matrix corresponding to the audio frame sequence is determined. Optionally, the beat value matrix is input into an audio feature extraction model to obtain feature information corresponding to the audio.
[0213] Step 740: Determine at least one matching audio that matches the first video from the n audios based on the matching degree between the first video and each audio.
[0214] In some embodiments, at least one matching audio that matches the first video is determined from the n audios based on the similarity between the feature information of the first video and the feature information corresponding to each audio. Optionally, the similarity between the feature information of the first video and the feature information corresponding to each audio is determined based on the cosine distance between the feature information corresponding to the video and the feature information corresponding to the audio.
[0215] In some embodiments, at least one matching audio is sorted according to the degree of matching to obtain a recommended audio list, wherein the audio located at the front of the recommended audio list has a higher degree of matching with the first video, and the audio located at the back of the recommended audio list has a lower degree of matching with the first video.
[0216] The technical solution provided in the embodiment of the present application uses a pre-trained video feature extraction model and an audio feature extraction model to extract audio and video features when determining the audio that matches the video to be matched. Since the video feature extraction model and the audio feature extraction model are jointly trained using contrastive learning, and since both the video feature extraction model and the audio feature extraction model can learn the features of the video modality and the audio modality during the joint training, and are trained using contrastive learning, the video feature extraction model's ability to extract features from the video and the audio feature extraction model's ability to extract features from the audio can be improved. Therefore, the audio recommended to the video to be matched can be determined based on the degree of match between the audio and video features, which can improve the BGM hit rate.
[0217] Please refer to Figure 8 , which shows a flow chart of an audio and video matching method provided by another embodiment of the present application. The execution subject of each step of the method can be the model using device introduced above. In the following method embodiment, for the convenience of description, only the execution subject of each step is introduced as a "computer device". The method can include at least one of the following steps (710-740):
[0218] Step 710: Obtain a first video to be matched.
[0219] In some embodiments, step 710 further includes at least one of steps 710 - 1 to 710 - 2 (not shown in the figure).
[0220] Step 710 - 1 , determining a category label of a first video.
[0221] In some embodiments, the category label of the first video is determined by a video labeling model. Optionally, the video labeling model is a machine learning model, such as a video labeling model trained by an autonomous learning method. Optionally, when training the video labeling model, the input is a video sample and the output is a label corresponding to the video sample. Optionally, the video sample is used as a training sample, and the manually annotated video label corresponding to the video sample is used as a training label, and the video labeling model is trained by using the difference between the output video sample label and the manually annotated video label.
[0222] In some embodiments, the category labels of the video samples include at least two categories. Optionally, one is an emotion category and the other is a scene category. Optionally, the category labels under the emotion category include at least joy, sadness, etc. Optionally, the category labels under the scene category include at least interaction, cartoon, parent-child, etc. Optionally, this application does not limit the category labels. Optionally, the number of category labels corresponding to the video is not limited.
[0223] Step 710-2: According to the category labels of the audios contained in the audio library, select the audios that match the category label of the first video from the audio library to obtain n audios.
[0224] In some embodiments, each audio also corresponds to an audio tag. In some embodiments, the category label of the audio is determined by an audio tagging model. Optionally, the audio tagging model is a machine learning model, such as an audio tagging model trained by an autonomous learning method. Optionally, when training the audio tagging model, the input is an audio sample and the output is a label corresponding to the audio sample. Optionally, the audio sample is used as a training sample, and the manually annotated audio label corresponding to the audio sample is used as a training label, and the audio tagging model is trained using the difference between the label of the output audio sample and the manually annotated audio label.
[0225] In some embodiments, the category labels of the audio samples include at least two categories. Optionally, one is an emotion category and the other is a scene category. Optionally, the category labels under the emotion category include at least joy, sadness, etc. Optionally, the category labels under the scene category include at least interaction, cartoon, parent-child, etc. Optionally, this application does not limit the category labels. Optionally, the number of category labels corresponding to the audio is not limited.
[0226] Optionally, when the category label of the audio is completely consistent with the category label of the video, the audio is determined as the audio matching the first video.
[0227] Optionally, when the ratio of the number of labels whose category labels of the audio and the video are consistent to the total number of labels of the video category labels is greater than a first threshold, the audio is determined as audio matching the first video.
[0228] In some embodiments, determining the category label of the audio includes at least one of steps 710 - 3 to 710 - 5 (not shown in the figure).
[0229] Step 710 - 3 , obtaining first information corresponding to the target audio from among the audios, where the first information includes comment information of the target audio.
[0230] In some embodiments, the target audio is any one of the various audios.
[0231] In some embodiments, the first information is comment information of the target audio. Optionally, the comment information of the user account under the target audio is collected. Each comment is used as the first information.
[0232] In some embodiments, the first information is the name information of the audio list where the target audio is located. Optionally, the name of the audio list where the target audio is located is collected.
[0233] Step 710 - 4 , obtaining feature information corresponding to the first information, and classifying the feature information to obtain a classification result.
[0234] In some embodiments, the input first information is classified by a text classification model to obtain a category label of the audio. Optionally, the text classification model is a machine learning model. Since the text classification model is a relatively mature model, it is not described here.
[0235] In other embodiments, the video tag is mapped to the audio through the TF-IDF algorithm according to the historical audio and video pairing relationship, and the details are not repeated here.
[0236] Specifically, feature information corresponding to the first information is extracted, and after being processed by convolution, pooling, etc., classification is performed to obtain various classification results and their corresponding confidence levels.
[0237] Optionally, the classification targets are various words of the emotion category, such as sadness, joy, pride, etc., and each emotion is a classification target. Optionally, for the feature information corresponding to the first information, each classification target has a corresponding confidence level.
[0238] Step 710 - 5 : Determine the classification result whose confidence level is greater than a threshold as the category label of the target audio.
[0239] Optionally, the result with the highest confidence is determined as the category label of the target audio. Optionally, joy has the highest confidence, and joy is used as the category label of the target audio.
[0240] Step 720: extract feature information corresponding to the first video using a video feature extraction model.
[0241] Step 731: for the i-th audio among the n audios, a first similarity is obtained according to the similarity between the feature information corresponding to the first video and the feature information corresponding to the i-th audio, where i is an integer less than or equal to n.
[0242] In some embodiments, the similarity between the feature information corresponding to the first video and the feature information corresponding to the i-th audio is the cosine distance between the feature information corresponding to the first video and the feature information corresponding to the i-th audio. Optionally, the first similarity may also be referred to as feature similarity.
[0243] Step 732, obtaining a second similarity based on the similarity between the feature information corresponding to the first video and the feature information corresponding to the m associated videos of the ith audio; wherein the associated video of the ith audio refers to the video matching the ith audio, and m is a positive integer.
[0244] Optionally, the m associated videos of the ith audio are videos that have historically used the ith audio as background music. Optionally, the m associated videos of the ith audio may be determined by querying historical data of the publisher.
[0245] In some embodiments, step 732 includes at least one of steps 732-1 to 732-2 (not shown).
[0246] Step 732-1, respectively determine the similarity between the feature information corresponding to the first video and the feature information corresponding to each associated video, and obtain m similarities.
[0247] Step 732-2: Select the maximum value from the m similarities as the second similarity.
[0248] Optionally, the second similarity is determined based on the m similarities. Optionally, the second similarity may also be referred to as user interest similarity (or the above interest similarity).
[0249] like Fig. 9 As shown, based on the query video 91 (the first video to be matched), the tag (including tag1, tag2, tag3 and tag4) of the query video is determined. Optionally, based on tag1, tag2, tag3 and tag4, matching audio is determined from the music library, such as candidate music i to candidate music m in the figure. Optionally, for candidate music i, based on historical pairing conditions or historical user data, historical videos i1 and i10 that have matched candidate music i are determined. Optionally, for candidate music m, based on historical pairing conditions or historical user data, historical videos m1 and m10 that have matched candidate music m are determined.
[0250] Of course, in the embodiment of the present application, the maximum value is selected from the m similarities as the second similarity, so that the video most similar to the first video can be distinguished from the m related videos, and the matching video is selected for the first video based on the audio selected by the most similar video, which has a high reference value.
[0251] In some embodiments, the m similarities are averaged to obtain an average similarity as the second similarity.
[0252] Step 733: Determine the matching degree between the first video and the i-th audio according to the first similarity and the second similarity.
[0253] Optionally, a weighted sum is performed on the first similarity and the second similarity to determine a matching degree between the first video and the i-th audio.
[0254] Step 740: Determine at least one matching audio that matches the first video from the n audios based on the matching degree between the first video and each audio.
[0255] Optionally, sim_va=sim_emb+sim_interest, wherein sim_va represents the matching degree between the audio and the video, sim_emb represents the first similarity between the audio and the video, and sim_interest represents the second similarity between the audio and the video.
[0256] Optionally, the matching degree between the first video and each audio is arranged in descending order, and the first K audios are taken to determine at least one matching audio, where K is a positive integer. Optionally, based on the K audios, an audio recommendation list is generated for the user to select. In some embodiments, the audio recommendation list is as follows: Fig.10 As shown, sub-image a is an audio recommendation list for videos of funny category, sub-image b is an audio recommendation list for videos of games category, and sub-image c is an audio recommendation list for videos of cute pets category.
[0257] In some embodiments, the training process of the video feature extraction model and the audio feature extraction model is as follows: based on at least one video sample and at least one audio sample, a set of sample pairs is constructed, the set of sample pairs includes at least one positive sample pair and at least one negative sample pair, the positive sample pair includes a video sample and an audio sample with a matching relationship, and the negative sample pair includes a video sample and an audio sample without a matching relationship; for the video sample and the audio sample in the same sample pair, the feature information corresponding to the video sample is extracted by the video feature extraction model, and the feature information corresponding to the audio sample is extracted by the audio feature extraction model; according to the feature information corresponding to the video sample and the feature information corresponding to the audio sample in the same sample pair, the value of the contrast loss function is determined; wherein the contrast loss function is used to characterize the degree of matching of the sample pair; according to the value of the contrast loss function, the parameters of the video feature extraction model and the audio feature extraction model are adjusted to obtain a trained video feature extraction model and a trained audio feature extraction model.
[0258] Optionally, the specific training process of the video feature extraction model and the audio feature extraction model can be found in the above embodiments and will not be described in detail here.
[0259] The technical solution provided by the embodiment of the present application improves the user experience of the small world publisher. After a small traffic experiment, the recommended BGM hit rate (+12%) and the proportion of music released (+4%) are both positive and significant. It has been launched in the mobile QQ small world publisher and has achieved good results in the small world publisher scenario. In addition, it also improves the quality of the small world UGC video. Improving BGM can promote the emotional expression of the video, thereby increasing its attractiveness to the audience.
[0260] In addition, when determining the audio that matches the first video based on similarity, the embodiment of the present application introduces interest similarity due to user interests (historical paired videos) in addition to the feature similarity brought by the features of the audio itself. This allows not only the features of the audio itself to be considered when recommending audio, but also the impact of the audio recommendation brought by the user's historical behavior (user interests). This is beneficial to improving the accuracy of the recommended audio and increasing the audio hit rate.
[0261] Of course, since the video is not matched with every audio in the music library, but the audio with the same category label is selected to perform the next similarity calculation, it is helpful to reduce the resource overhead brought by determining the matching audio.
[0262] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0263] Please refer to Fig.11 , which shows a block diagram of a model training device for audio and video matching provided by an embodiment of the present application. The device 1100 may include: a set construction module 1110, an information extraction module 1120, a loss determination module 1130 and a parameter adjustment module 1140.
[0264] The set construction module 1110 is used to construct a set of sample pairs based on at least one video sample and at least one audio sample, wherein the set of sample pairs includes at least one positive sample pair and at least one negative sample pair, wherein the positive sample pair includes a video sample and an audio sample having a matching relationship, and the negative sample pair includes a video sample and an audio sample not having a matching relationship.
[0265] The information extraction module 1120 is used to extract feature information corresponding to the video sample and the audio sample in the same sample pair through the video feature extraction model, and to extract feature information corresponding to the audio sample through the audio feature extraction model.
[0266] The loss determination module 1130 is used to determine the value of the contrast loss function according to the feature information corresponding to the video sample and the feature information corresponding to the audio sample in the same sample pair; wherein the contrast loss function is used to characterize the matching degree of the sample pair.
[0267] The parameter adjustment module 1140 is used to adjust the parameters of the video feature extraction model and the audio feature extraction model according to the value of the contrast loss function to obtain a trained video feature extraction model and a trained audio feature extraction model.
[0268] In some embodiments, Fig.12 As shown, the apparatus further includes an augmentation module 1150 .
[0269] The augmentation module 1150 is used for augmenting the video sample and the audio sample in the same sample pair to obtain an augmented video sample corresponding to the video sample; and augmenting the audio sample to obtain an augmented audio sample corresponding to the audio sample.
[0270] The information extraction module 1120 is further used to extract feature information corresponding to the augmented video sample through a video feature extraction model, and to extract feature information corresponding to the augmented audio sample through an audio feature extraction model.
[0271] The loss determination module 1130 is used to determine the value of the contrast loss function based on the feature information corresponding to the video sample and the feature information corresponding to the audio sample in the same sample pair, as well as the feature information corresponding to the augmented video sample and the feature information corresponding to the augmented audio sample.
[0272] In some embodiments, the loss determination module 1130 is used to determine the first contrast loss according to the feature information corresponding to the video sample and the feature information corresponding to the augmented video sample.
[0273] The loss determination module 1130 is further configured to determine a second comparison loss according to feature information corresponding to the video sample and feature information corresponding to the augmented audio sample.
[0274] The loss determination module 1130 is further configured to determine a third comparison loss according to feature information corresponding to the augmented video sample and feature information corresponding to the audio sample.
[0275] The loss determination module 1130 is further configured to determine a value of a contrast loss function according to the first contrast loss, the second contrast loss, and the third contrast loss.
[0276] In some embodiments, Fig.12 As shown, the augmentation module 1150 includes a segmentation unit 1151 , a segment selection unit 1152 , and a segment determination unit 1153 .
[0277] The segmentation unit 1151 is used to segment the video sample to obtain multiple video segments; wherein the feature information corresponding to the video sample is obtained by extracting the first video segment from the multiple video segments through a video feature extraction model, and the feature information corresponding to the first video segment is obtained; the feature information corresponding to the audio sample is obtained by extracting the first audio segment through an audio feature extraction model, and the feature information corresponding to the first audio segment is obtained, and the first audio segment is the audio segment corresponding to the first video segment.
[0278] The segment selection unit 1152 is used to select a second video segment different from the first video segment from multiple video segments as an augmented video sample; wherein the feature information corresponding to the augmented video sample is obtained by extracting the second video segment through a video feature extraction model.
[0279] The segment determination unit 1153 uses the second audio segment as the augmented audio sample; wherein the second audio segment is the audio segment corresponding to the second video segment, and the feature information corresponding to the augmented audio sample is obtained by extracting the second audio segment through an audio feature extraction model.
[0280] In some embodiments, Fig.12 As shown, the loss determination module 1130 also includes a sequence determination unit 1131 and a loss determination unit 1132 .
[0281] The sequence determining unit 1131 is used to determine the sequence of the first video segment and the second video segment according to the feature information corresponding to the first video segment and the feature information corresponding to the second video segment through a first sequence classifier.
[0282] The sequence determining unit 1131 is further configured to determine the sequence of the first audio segment and the second audio segment according to the feature information corresponding to the first audio segment and the feature information corresponding to the second audio segment through a second sequence classifier.
[0283] The sequence determination unit 1131 is further configured to determine the sequence of the first video segment and the second audio segment according to feature information corresponding to the second video segment and feature information corresponding to the second audio segment through a third sequence classifier.
[0284] The loss determination unit 1132 is used to determine the sequence classification loss according to the sequence determined by the first sequence classifier, the second sequence classifier, and the third sequence classifier. The sequence classification loss is used to reflect the prediction accuracy of the sequence, and the sequence classification loss is used to adjust the model parameters in combination with the value of the contrast loss function.
[0285] In some embodiments, Fig.12 As shown, the augmentation module 1150 further includes a sampling unit 1154 .
[0286] The sampling unit 1154 is used to select at least one frame from the video sample using a first sampling frequency to obtain a first video frame sequence; wherein the feature information corresponding to the video sample is extracted from the first video frame sequence through a video feature extraction model to obtain the feature information corresponding to the first video frame sequence.
[0287] The sampling unit 1154 is also used to select at least one frame from the video sample using a second sampling frequency to obtain a second video frame sequence as an augmented video sample; wherein the feature information corresponding to the augmented video sample is obtained by extracting the second video frame sequence through a video feature extraction model, and the feature information corresponding to the second video frame sequence is obtained; the second sampling frequency is different from the first sampling frequency.
[0288] The sampling unit 1154 is also used to select at least one frame from the audio sample using a third sampling frequency to obtain a first audio frame sequence; wherein the feature information corresponding to the audio sample is extracted from the first audio frame sequence through an audio feature extraction model to obtain the feature information corresponding to the first audio frame sequence.
[0289] The sampling unit 1154 is further used to select at least one frame from the audio sample using a fourth sampling frequency to obtain a second audio frame sequence as an augmented audio sample; wherein the feature information corresponding to the augmented audio sample is obtained by extracting the second audio frame sequence through an audio feature extraction model, and the feature information corresponding to the second audio frame sequence is obtained; the fourth sampling frequency is different from the third sampling frequency.
[0290] In some embodiments, Fig.12 As shown, the loss determination module 1130 also includes a sampling frequency determination unit 1133.
[0291] The sampling frequency determination unit 1133 is used to determine the predicted sampling frequency of the first video frame sequence according to the feature information corresponding to the first video frame sequence using the first speed classifier; and to determine the predicted sampling frequency of the second video frame sequence according to the feature information corresponding to the second video frame sequence using the first speed classifier.
[0292] The sampling frequency determination unit 1133 is further used to determine the predicted sampling frequency of the first audio frame sequence according to the feature information corresponding to the first audio frame sequence using a second speed classifier; and to determine the predicted sampling frequency of the second audio frame sequence according to the feature information corresponding to the second audio frame sequence using a second speed classifier.
[0293] The loss determination unit 1132 is also used to determine the speed classification loss according to the predicted sampling frequency determined by the first speed classifier and the second speed classifier. The speed classification loss is used to reflect the prediction accuracy of the sampling frequency, and the speed classification loss is used to adjust the model parameters in combination with the value of the contrast loss function.
[0294] In some embodiments, the sampling unit 1154 is also used to sample at least one frame in positive sequence from the video sample to obtain a third video frame sequence; wherein, the feature information corresponding to the video sample is extracted from the third video frame sequence through a video feature extraction model to obtain the feature information corresponding to the third video frame sequence.
[0295] The sampling unit 1154 is also used to reversely sample at least one frame from the video sample to obtain a fourth video frame sequence as an augmented video sample; wherein the feature information corresponding to the augmented video sample is obtained by extracting the fourth video frame sequence through a video feature extraction model.
[0296] The sampling unit 1154 is also used to sample at least one frame in order from the audio sample to obtain a third audio frame sequence; wherein the feature information corresponding to the audio sample is extracted from the third audio frame sequence through an audio feature extraction model to obtain the feature information corresponding to the third audio frame sequence.
[0297] The sampling unit 1154 is also used to reversely sample at least one frame from the audio sample to obtain a fourth audio frame sequence as an augmented audio sample; wherein the feature information corresponding to the augmented audio sample is obtained by extracting the fourth audio frame sequence through an audio feature extraction model.
[0298] In some embodiments, Fig.12 As shown, the loss determination module 1130 also includes a sampling direction determination unit 1134 .
[0299] The sampling direction determination unit 1134 is used to determine the sampling direction of the third video frame sequence according to the feature information corresponding to the third video frame sequence using the first direction classifier; and to determine the sampling direction of the fourth video frame sequence according to the feature information corresponding to the fourth video frame sequence using the first direction classifier.
[0300] The sampling direction determination unit 1134 is used to determine the sampling direction of the third audio frame sequence according to the feature information corresponding to the third audio frame sequence using the second direction classifier; and to determine the sampling direction of the fourth audio frame sequence according to the feature information corresponding to the fourth audio frame sequence using the second direction classifier.
[0301] The loss determination unit 1132 is also used to determine the direction classification loss according to the sampling direction determined by the first direction classifier and the second direction classifier. The direction classification loss is used to reflect the prediction accuracy of the sampling direction, and the direction classification loss is used to adjust the model parameters in combination with the value of the contrast loss function.
[0302] Please refer to Fig.13, which shows a block diagram of an audio and video matching device provided by an embodiment of the present application. The device 1300 may include: a video acquisition module 1310, an information extraction module 1320, a matching degree determination module 1330 and an audio determination module 1340.
[0303] The video acquisition module 1310 is used to acquire a first video to be matched.
[0304] The information extraction module 1320 is used to extract feature information corresponding to the first video through a video feature extraction model.
[0305] The matching degree determination module 1330 is used to determine the matching degree between the first video and each audio according to the feature information corresponding to the first video and the feature information corresponding to the n audios; wherein the feature information corresponding to the audio is obtained through an audio feature extraction model, and the video feature extraction model and the audio feature extraction model are trained using contrastive learning, and n is an integer greater than 1.
[0306] The audio determination module 1340 is used to determine at least one matching audio that matches the first video from the n audios according to the matching degree between the first video and each audio.
[0307] In some embodiments, Fig.14 As shown, the matching degree determination module 1330 includes a similarity determination unit 1331 and a matching degree determination unit 1332 .
[0308] The similarity determination unit 1331 is used to obtain a first similarity for the i-th audio among the n audios according to the similarity between the feature information corresponding to the first video and the feature information corresponding to the i-th audio, where i is an integer less than or equal to n.
[0309] The similarity determination unit 1331 is also used to obtain a second similarity based on the similarity between the feature information corresponding to the first video and the feature information corresponding to the m associated videos of the i-th audio; wherein the associated video of the i-th audio refers to the video matching the i-th audio, and m is a positive integer.
[0310] The matching degree determining unit 1332 is used to determine the matching degree between the first video and the i-th audio according to the first similarity and the second similarity.
[0311] In some embodiments, the similarity determination unit 1331 is further used to respectively determine the similarity between the feature information corresponding to the first video and the feature information corresponding to each associated video, to obtain m similarities.
[0312] The similarity determination unit 1331 is further configured to select a maximum value from the m similarities as a second similarity.
[0313] In some embodiments, Fig.14 As shown, the device also includes a tag determination module 1350 and an audio determination module 1360.
[0314] The label determination module 1350 is used to determine the category label of the first video.
[0315] The audio determination module 1360 is used to select audio that matches the category label of the first video from the audio library according to the category labels of the audios contained in the audio library, so as to obtain n audios.
[0316] In some embodiments, the label determination module 1350 is further used to obtain first information corresponding to the target audio in each audio, the first information including comment information of the target audio. Obtain feature information corresponding to the first information, and classify the feature information to obtain a classification result. The result with a confidence greater than a threshold in the classification result is determined as the category label of the target audio.
[0317] In some embodiments, the training process of the video feature extraction model and the audio feature extraction model is as follows: based on at least one video sample and at least one audio sample, a set of sample pairs is constructed, the set of sample pairs includes at least one positive sample pair and at least one negative sample pair, the positive sample pair includes a video sample and an audio sample with a matching relationship, and the negative sample pair includes a video sample and an audio sample without a matching relationship; for the video sample and the audio sample in the same sample pair, the feature information corresponding to the video sample is extracted by the video feature extraction model, and the feature information corresponding to the audio sample is extracted by the audio feature extraction model; according to the feature information corresponding to the video sample and the feature information corresponding to the audio sample in the same sample pair, the value of the contrast loss function is determined; wherein the contrast loss function is used to characterize the degree of matching of the sample pair; according to the value of the contrast loss function, the parameters of the video feature extraction model and the audio feature extraction model are adjusted to obtain a trained video feature extraction model and a trained audio feature extraction model.
[0318] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0319] Fig.15 A structural block diagram of a computer device provided by another exemplary embodiment of the present application is shown.
[0320] Typically, the computer device 1500 includes a processor 1501 and a memory 1502 .
[0321] Processor 1501 may include one or more processing cores, such as a 4-core processor, a 15-core processor, etc. Processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, processor 1501 may also include an AI processor, which is used to process computing operations related to machine learning.
[0322] The memory 1502 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1502 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1502 stores a computer program, which is loaded and executed by the processor 1501 to implement the above-mentioned model training method for audio and video matching or the above-mentioned audio and video matching method.
[0323] Those skilled in the art will understand that Fig.15 The structure shown in the figure does not constitute a limitation on the computer device 1500, and the computer device 1500 may include more or less components than shown in the figure, or combine some components, or adopt a different arrangement of components.
[0324] In an exemplary embodiment, a computer-readable storage medium is further provided, in which a computer program is stored. When the computer program is executed by a processor, the above method is implemented.
[0325] Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random Access Memory), SSD (Solid State Drives) or an optical disk, etc. Among them, the random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0326] In an exemplary embodiment, a computer program product is also provided, the computer program product includes a computer program, and the computer program is stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the above-mentioned model training method for audio and video matching or the above-mentioned audio and video matching method.
[0327] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.
[0328] The above are merely exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A model training method for audio and video matching, characterized in that: The method comprises: Based on at least one video sample and at least one audio sample, construct a set of sample pairs, wherein the set of sample pairs includes at least one positive sample pair and at least one negative sample pair, wherein the positive sample pair includes a video sample and an audio sample having a matching relationship, and the negative sample pair includes a video sample and an audio sample not having a matching relationship; For a video sample and an audio sample in the same sample pair, feature information corresponding to the video sample is extracted by a video feature extraction model, and feature information corresponding to the audio sample is extracted by an audio feature extraction model; Determining a value of a contrast loss function according to feature information corresponding to the video sample and feature information corresponding to the audio sample in the same sample pair; wherein the contrast loss function is used to characterize the degree of matching of the sample pair; According to the value of the contrast loss function, the parameters of the video feature extraction model and the audio feature extraction model are adjusted to obtain a trained video feature extraction model and a trained audio feature extraction model.
2. The method according to claim 1, characterized in that The method further comprises: For a video sample and an audio sample in the same sample pair, performing augmentation processing on the video sample to obtain an augmented video sample corresponding to the video sample; and performing augmentation processing on the audio sample to obtain an augmented audio sample corresponding to the audio sample; Extracting feature information corresponding to the augmented video sample by using the video feature extraction model, and extracting feature information corresponding to the augmented audio sample by using the audio feature extraction model; The determining the value of the contrast loss function according to the feature information corresponding to the video sample and the feature information corresponding to the audio sample in the same sample pair includes: The value of the contrast loss function is determined according to the feature information corresponding to the video sample and the feature information corresponding to the audio sample in the same sample pair, and the feature information corresponding to the augmented video sample and the feature information corresponding to the augmented audio sample.
3. The method according to claim 2, characterized in that The determining the value of the contrast loss function according to the feature information corresponding to the video sample and the feature information corresponding to the audio sample in the same sample pair, and the feature information corresponding to the augmented video sample and the feature information corresponding to the augmented audio sample, comprises: Determining a first contrast loss according to the feature information corresponding to the video sample and the feature information corresponding to the augmented video sample; Determining a second contrast loss according to the feature information corresponding to the video sample and the feature information corresponding to the augmented audio sample; determining a third contrast loss according to the feature information corresponding to the augmented video sample and the feature information corresponding to the audio sample; A value of the contrast loss function is determined according to the first contrast loss, the second contrast loss, and the third contrast loss.
4. The method according to claim 2, characterized in that: performing augmentation processing on the video sample to obtain an augmented video sample corresponding to the video sample; And, performing augmentation processing on the audio sample to obtain an augmented audio sample corresponding to the audio sample, including: The video sample is segmented to obtain a plurality of video segments; wherein the feature information corresponding to the video sample is feature information corresponding to a first video segment obtained by extracting the first video segment from the plurality of video segments through the video feature extraction model; the feature information corresponding to the audio sample is feature information corresponding to a first audio segment obtained by extracting the first audio segment through the audio feature extraction model, and the first audio segment is an audio segment corresponding to the first video segment; Selecting a second video segment different from the first video segment from the multiple video segments as the augmented video sample; wherein the feature information corresponding to the augmented video sample is obtained by extracting the second video segment through the video feature extraction model; The second audio segment is used as the augmented audio sample; wherein the second audio segment is the audio segment corresponding to the second video segment, and the feature information corresponding to the augmented audio sample is obtained by extracting the second audio segment through the audio feature extraction model.
5. The method according to claim 4, characterized in that The method further comprises: Determining, by a first sequence classifier, a sequence of the first video segment and the second video segment according to feature information corresponding to the first video segment and feature information corresponding to the second video segment; determining, by a second sequence classifier, a sequence of the first audio segment and the second audio segment according to feature information corresponding to the first audio segment and feature information corresponding to the second audio segment; Determining, by a third order classifier, a sequence of the first video segment and the second audio segment according to feature information corresponding to the second video segment and feature information corresponding to the second audio segment; According to the sequence determined by the first sequence classifier, the second sequence classifier, and the third sequence classifier, a sequence classification loss is determined, the sequence classification loss is used to reflect the prediction accuracy of the sequence, and the sequence classification loss is used to adjust the model parameters in combination with the value of the contrast loss function.
6. The method according to claim 2, characterized in that performing augmentation processing on the video sample to obtain an augmented video sample corresponding to the video sample; And, performing augmentation processing on the audio sample to obtain an augmented audio sample corresponding to the audio sample, including: At least one frame is selected from the video sample using a first sampling frequency to obtain a first video frame sequence; wherein the feature information corresponding to the video sample is extracted from the first video frame sequence using the video feature extraction model, and the feature information corresponding to the first video frame sequence is obtained; At least one frame is selected from the video sample using a second sampling frequency to obtain a second video frame sequence as the augmented video sample; wherein the feature information corresponding to the augmented video sample is extracted from the second video frame sequence using the video feature extraction model, and the feature information corresponding to the second video frame sequence is obtained; the second sampling frequency is different from the first sampling frequency; At least one frame is selected from the audio sample using a third sampling frequency to obtain a first audio frame sequence; wherein the feature information corresponding to the audio sample is extracted from the first audio frame sequence using the audio feature extraction model, and the feature information corresponding to the first audio frame sequence is obtained; At least one frame is selected from the audio sample using a fourth sampling frequency to obtain a second audio frame sequence as the augmented audio sample; wherein the feature information corresponding to the augmented audio sample is obtained by extracting the second audio frame sequence through the audio feature extraction model, and the feature information corresponding to the second audio frame sequence is obtained; the fourth sampling frequency is different from the third sampling frequency.
7. The method according to claim 6, characterized in that The method further comprises: Determine the predicted sampling frequency of the first video frame sequence according to the feature information corresponding to the first video frame sequence using the first speed classifier; and determine the predicted sampling frequency of the second video frame sequence according to the feature information corresponding to the second video frame sequence using the first speed classifier; Determining the predicted sampling frequency of the first audio frame sequence using a second speed classifier according to feature information corresponding to the first audio frame sequence; and determining the predicted sampling frequency of the second audio frame sequence using the second speed classifier according to feature information corresponding to the second audio frame sequence; A speed classification loss is determined according to the predicted sampling frequency determined by the first speed classifier and the second speed classifier, wherein the speed classification loss is used to reflect the prediction accuracy of the sampling frequency, and the speed classification loss is used to adjust the model parameters in combination with the value of the contrast loss function.
8. The method according to claim 2, characterized in that: performing augmentation processing on the video sample to obtain an augmented video sample corresponding to the video sample; And, performing augmentation processing on the audio sample to obtain an augmented audio sample corresponding to the audio sample, including: At least one frame is sampled in positive order from the video sample to obtain a third video frame sequence; wherein the feature information corresponding to the video sample is extracted from the third video frame sequence by the video feature extraction model to obtain the feature information corresponding to the third video frame sequence; At least one frame is sampled in reverse order from the video sample to obtain a fourth video frame sequence as the augmented video sample; wherein the feature information corresponding to the augmented video sample is extracted from the fourth video frame sequence by the video feature extraction model, and the feature information corresponding to the fourth video frame sequence is obtained; At least one frame is sampled in positive order from the audio sample to obtain a third audio frame sequence; wherein the feature information corresponding to the audio sample is extracted from the third audio frame sequence by the audio feature extraction model to obtain the feature information corresponding to the third audio frame sequence; At least one frame is sampled in reverse order from the audio sample to obtain a fourth audio frame sequence as the augmented audio sample; wherein the feature information corresponding to the augmented audio sample is extracted from the fourth audio frame sequence by the audio feature extraction model to obtain the feature information corresponding to the fourth audio frame sequence.
9. The method according to claim 8, characterized in that The method further comprises: Determine the sampling direction of the third video frame extraction sequence using the first direction classifier according to the feature information corresponding to the third video frame extraction sequence; and determine the sampling direction of the fourth video frame extraction sequence using the first direction classifier according to the feature information corresponding to the fourth video frame extraction sequence; Determine the sampling direction of the third audio frame-drawing sequence using a second direction classifier according to feature information corresponding to the third audio frame-drawing sequence; and determine the sampling direction of the fourth audio frame-drawing sequence using the second direction classifier according to feature information corresponding to the fourth audio frame-drawing sequence; According to the sampling directions determined by the first direction classifier and the second direction classifier, a direction classification loss is determined, the direction classification loss is used to reflect the prediction accuracy of the sampling direction, and the direction classification loss is used to adjust the model parameters in combination with the value of the contrast loss function.
10. An audio and video matching method, characterized in that: The method comprises: Obtaining a first video to be matched; Extracting feature information corresponding to the first video by using a video feature extraction model; Determine the matching degree between the first video and each of the audios according to the feature information corresponding to the first video and the feature information corresponding to the n audios; wherein the feature information corresponding to the audios is obtained by an audio feature extraction model, the video feature extraction model and the audio feature extraction model are trained by contrastive learning, and n is an integer greater than 1; At least one matching audio that matches the first video is determined from the n audios according to the matching degree between the first video and each of the audios.
11. The method according to claim 10, characterized in that The determining, according to the feature information corresponding to the first video and the feature information corresponding to the n audios, the matching degree between the first video and each of the audios includes: For an i-th audio of the n audios, a first similarity is obtained according to a similarity between feature information corresponding to the first video and feature information corresponding to the i-th audio, where i is an integer less than or equal to n; A second similarity is obtained according to the similarity between the feature information corresponding to the first video and the feature information corresponding to the m associated videos of the i-th audio; wherein the associated video of the i-th audio refers to a video matching the i-th audio, and m is a positive integer; A matching degree between the first video and the i-th audio is determined according to the first similarity and the second similarity.
12. The method according to claim 11, characterized in that The obtaining a second similarity according to the similarity between the feature information corresponding to the first video and the feature information corresponding to the m associated videos of the i-th audio, comprises: Respectively determine the similarity between the feature information corresponding to the first video and the feature information corresponding to each of the associated videos to obtain m similarities; A maximum value is selected from the m similarities as the second similarity.
13. The method according to claim 10, characterized in that After obtaining the first video to be matched, the method further includes: Determining a category label of the first video; According to the category labels of the respective audios contained in the audio library, audios matching the category label of the first video are selected from the audio library to obtain the n audios.
14. The method according to claim 13, characterized in that The method further comprises: Acquire first information corresponding to a target audio from among the audios, where the first information includes comment information of the target audio; Acquiring feature information corresponding to the first information, and classifying the feature information to obtain a classification result; The classification result having a confidence level greater than a threshold is determined as a category label of the target audio.
15. The method according to any one of claims 10 to 14, characterized in that The training process of the video feature extraction model and the audio feature extraction model is as follows: Based on at least one video sample and at least one audio sample, construct a set of sample pairs, wherein the set of sample pairs includes at least one positive sample pair and at least one negative sample pair, wherein the positive sample pair includes a video sample and an audio sample having a matching relationship, and the negative sample pair includes a video sample and an audio sample not having a matching relationship; For a video sample and an audio sample in the same sample pair, feature information corresponding to the video sample is extracted by a video feature extraction model, and feature information corresponding to the audio sample is extracted by an audio feature extraction model; Determining a value of a contrast loss function according to feature information corresponding to the video sample and feature information corresponding to the audio sample in the same sample pair; wherein the contrast loss function is used to characterize the degree of matching of the sample pair; According to the value of the contrast loss function, the parameters of the video feature extraction model and the audio feature extraction model are adjusted to obtain a trained video feature extraction model and a trained audio feature extraction model.
16. A model training device for audio and video matching, characterized in that: The device comprises: A set construction module, configured to construct a set of sample pairs based on at least one video sample and at least one audio sample, wherein the set of sample pairs includes at least one positive sample pair and at least one negative sample pair, wherein the positive sample pair includes a video sample and an audio sample having a matching relationship, and the negative sample pair includes a video sample and an audio sample not having a matching relationship; An information extraction module, for extracting feature information corresponding to a video sample and an audio sample in the same sample pair through a video feature extraction model, and extracting feature information corresponding to the audio sample through an audio feature extraction model; A loss determination module, used to determine the value of a contrast loss function according to feature information corresponding to the video sample and feature information corresponding to the audio sample in the same sample pair; wherein the contrast loss function is used to characterize the matching degree of the sample pair; The parameter adjustment module is used to adjust the parameters of the video feature extraction model and the audio feature extraction model according to the value of the contrast loss function to obtain a trained video feature extraction model and a trained audio feature extraction model.
17. An audio and video matching device, characterized in that: The device comprises: A video acquisition module, used to acquire a first video to be matched; An information extraction module, used to extract feature information corresponding to the first video through a video feature extraction model; a matching degree determination module, configured to determine the matching degree between the first video and each of the audios according to the feature information corresponding to the first video and the feature information corresponding to the n audios; wherein the feature information corresponding to the audios is obtained by an audio feature extraction model, the video feature extraction model and the audio feature extraction model are trained by contrastive learning, and n is an integer greater than 1; The audio determination module is used to determine at least one matching audio that matches the first video from the n audios according to the matching degree between the first video and each of the audios.
18. A computer device, characterized in that: The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the method as described in any one of claims 1 to 9 above, or to implement the method as described in any one of claims 10 to 15 above.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the method as described in any one of claims 1 to 9 above, or to implement the method as described in any one of claims 10 to 15 above.
20. A computer program product, characterized in that The computer program product comprises a computer program, which is stored in a computer-readable storage medium. The processor reads and executes the computer program from the computer-readable storage medium to implement the method as described in any one of claims 1 to 9 above, or implements the method as described in any one of claims 10 to 15 above.
Citation Information
Cited By
Audio-driven facial animation generation method, system, equipment and medium
CN120259503A
