[go: up one dir, main page]

WO2019242222A1 - Method and device for use in generating information - Google Patents

Method and device for use in generating information Download PDF

Info

Publication number
WO2019242222A1
WO2019242222A1 PCT/CN2018/116184 CN2018116184W WO2019242222A1 WO 2019242222 A1 WO2019242222 A1 WO 2019242222A1 CN 2018116184 W CN2018116184 W CN 2018116184W WO 2019242222 A1 WO2019242222 A1 WO 2019242222A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
recognition
sample
model
training
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2018/116184
Other languages
French (fr)
Chinese (zh)
Inventor
李伟健
李映虹
王长虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Publication of WO2019242222A1 publication Critical patent/WO2019242222A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/46Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/19Recognition using electronic means
    • G06V30/192Recognition using electronic means using simultaneous comparisons or correlations of the image signals with a plurality of references
    • G06V30/194References adjustable by an adaptive method, e.g. learning

Definitions

  • Embodiments of the present application relate to the field of computer technology, and in particular, to a method and an apparatus for generating information.
  • Video usually includes foreground and background.
  • the foreground may include the shooting content (such as people, animals, behaviors, etc.) corresponding to the captured video;
  • the background may include the shooting scene (such as the sky, stadium, forest, etc.) corresponding to the captured video.
  • video recognition usually only identifies the foreground of a video.
  • the embodiments of the present application provide a method and device for generating information.
  • an embodiment of the present application provides a method for generating information.
  • the method includes: obtaining a target video; inputting the target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video, wherein, The video recognition model is used to characterize the correspondence between the video and the recognition result pair.
  • the recognition result pair includes a first recognition result and a second recognition result.
  • the first recognition result is used to characterize the foreground included in the video
  • the second recognition result is used to characterize the video. Included background.
  • the video recognition model includes a first video recognition sub-model, a second video recognition sub-model, and a feature extraction network; and inputting a target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video,
  • the method includes: extracting a target video from a feature extraction network to obtain video features of the target video; and inputting the obtained video features to a first video recognition sub-model and a second video recognition sub-model, respectively, to obtain a target video corresponding to the first video recognition The result is a pair of recognition results with the second recognition result.
  • the video recognition model is obtained by training as follows: obtaining a training sample set, wherein the training sample includes a sample video and a pair of sample recognition results pre-labeled for the sample video; and using the sample video of the training sample in the training sample set as As input, the pair of sample recognition results corresponding to the input sample video is taken as the desired output, and a video recognition model is obtained by training using a machine learning method.
  • the sample video of the training samples in the training sample set is used as an input
  • the sample recognition result pair corresponding to the input sample video is used as an output
  • a video recognition model is trained by using a machine learning method, including: training samples The set is divided into a preset number of training sample groups; a training sample group is selected as a candidate training sample group from the preset number of training sample groups, and based on the candidate training sample group and a predetermined initial model, the following training steps are performed: for the candidate
  • the training sample group takes the sample video of the training sample as an input, and uses the pair of sample recognition results corresponding to the input sample video as an output.
  • the initial model is trained using the machine learning method to obtain the initial video recognition model.
  • Determining whether the completion condition of the training is satisfied in response to determining that the completion condition is satisfied, generating a video recognition model based on the obtained initial video recognition model; in response to determining that the completion condition is not satisfied, selecting a training from a group of training samples that have not been selected Sample group as new Selected training sample set, and the initial video recognition model is obtained most recently as a new initial model, continuing its training procedures.
  • the completion condition includes, but is not limited to, at least one of the following: the preset number of training sample groups does not include unselected training sample groups; and inputting a sample video of training samples in candidate training sample groups into the initial model A loss value of the obtained actual recognition result pair with respect to the sample recognition result pair corresponding to the input sample video is less than a preset loss threshold.
  • an embodiment of the present application provides an apparatus for generating information.
  • the apparatus includes: an acquiring unit configured to acquire a target video; an input unit configured to input the target video into a pre-trained video recognition model, Obtain a pair of recognition results corresponding to the target video, where the video recognition model is used to characterize the correspondence between the video and the pair of recognition results, the pair of recognition results includes a first recognition result and a second recognition result, and the first recognition result is used to represent the The included foreground and the second recognition result are used to characterize the background included in the video.
  • the video recognition model includes a first video recognition sub-model, a second video recognition sub-model, and a feature extraction network; and the input unit includes: a first input module configured to input a target video into the feature extraction network to obtain Video features of the target video; a second input module configured to input the obtained video features into the first video recognition sub-model and the second video recognition sub-model, respectively, to obtain the corresponding target video including the first recognition result and the first video recognition sub-model.
  • the recognition result pairs of the two recognition results are examples of the two recognition results.
  • the video recognition model is obtained by training as follows: obtaining a training sample set, wherein the training sample includes a sample video and a pair of sample recognition results pre-labeled for the sample video; and using the sample video of the training sample in the training sample set as As input, the pair of sample recognition results corresponding to the input sample video is taken as the desired output, and a video recognition model is obtained by training using a machine learning method.
  • the sample video of the training samples in the training sample set is used as an input
  • the sample recognition result pair corresponding to the input sample video is used as an output
  • a video recognition model is trained by using a machine learning method, including: training samples The set is divided into a preset number of training sample groups; a training sample group is selected as a candidate training sample group from the preset number of training sample groups, and based on the candidate training sample group and a predetermined initial model, the following training steps are performed: for the candidate
  • the training sample group takes the sample video of the training sample as an input, and uses the pair of sample recognition results corresponding to the input sample video as an output.
  • the initial model is trained using the machine learning method to obtain the initial video recognition model.
  • Determining whether the completion condition of the training is satisfied in response to determining that the completion condition is satisfied, generating a video recognition model based on the obtained initial video recognition model; in response to determining that the completion condition is not satisfied, selecting a training from a group of training samples that have not been selected Sample group as new Selected training sample set, and the initial video recognition model is obtained most recently as a new initial model, continuing its training procedures.
  • the completion condition includes, but is not limited to, at least one of the following: the preset number of training sample groups does not include unselected training sample groups; and inputting a sample video of training samples in candidate training sample groups into the initial model A loss value of the obtained actual recognition result pair with respect to the sample recognition result pair corresponding to the input sample video is less than a preset loss threshold.
  • an embodiment of the present application provides an electronic device, including: one or more processors; a storage device storing one or more programs thereon; when one or more programs are processed by one or more processors Execution causes one or more processors to implement the method of any one of the foregoing methods for generating information.
  • an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method of any one of the foregoing methods for generating information is implemented.
  • the method and device for generating information obtained by the embodiments of the present application obtain a target video corresponding to the target video by acquiring the target video and then inputting the target video into a pre-trained video recognition model, where the video recognition model is used for characterization Correspondence between the video and the recognition result pair.
  • the recognition result pair includes a first recognition result and a second recognition result.
  • the first recognition result is used to characterize the foreground included in the video
  • the second recognition result is used to characterize the background included in the video.
  • the pre-trained video recognition model can be used to identify the foreground and background of the target video at the same time, which improves the diversity of information generation.
  • FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied;
  • FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied;
  • FIG. 2 is a flowchart of an embodiment of a method for generating information according to the present application
  • FIG. 3 is a schematic diagram of an application scenario of a method for generating information according to the present application.
  • FIG. 4 is a flowchart of another embodiment of a method for generating information according to the present application.
  • FIG. 5 is a schematic structural diagram of an embodiment of an apparatus for generating information according to the present application.
  • FIG. 6 is a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application.
  • FIG. 1 illustrates an exemplary system architecture 100 of an embodiment of a method for generating information or an apparatus for generating information to which the present application can be applied.
  • the system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105.
  • the network 104 is a medium for providing a communication link between the terminal devices 101, 102, 103 and the server 105.
  • the network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
  • the user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages and the like.
  • Various communication client applications such as model training applications, video recognition applications, web browser applications, social platform software, and the like can be installed on the terminal devices 101, 102, and 103.
  • the terminal devices 101, 102, and 103 may be hardware or software.
  • the terminal devices 101, 102, and 103 can be various electronic devices with a display screen, including but not limited to smartphones, tablets, e-book readers, MP3 players (Moving Pictures Experts Group Audio Audio Layer III, Motion picture expert compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer 4), player, laptop portable computer and desktop computer, etc.
  • MP3 players Motion Picture Experts Group Audio Layer III, Motion picture expert compression standard audio layer 3
  • MP4 Motion Picture Experts Group Audio Layer 4
  • player laptop portable computer and desktop computer, etc.
  • laptop portable computer and desktop computer etc.
  • the terminal devices 101, 102, and 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or it can be implemented as a single software or software module. It is not specifically limited here.
  • a video capture device may also be installed on the terminals.
  • the video capture device can be a variety of devices that can capture video, such as cameras, sensors, and so on. Users can use the video capture devices on the terminals 101, 102, 103 to capture video.
  • the server 105 may be a server that provides various services, such as a background server that processes videos displayed on the terminal devices 101, 102, and 103.
  • the background server can perform analysis and other processing on the received target video and other data, and can feed back the processing results (such as the recognition result pair) to the terminal device.
  • the server may be hardware or software.
  • the server can be implemented as a distributed server cluster consisting of multiple servers or as a single server.
  • the server can be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or it can be implemented as a single software or software module. It is not specifically limited here.
  • terminal devices, networks, and servers in FIG. 1 are merely exemplary. Depending on the implementation needs, there can be any number of terminal devices, networks, and servers.
  • the above-mentioned system architecture may not include a network but only a terminal device or a server.
  • a flowchart 200 of one embodiment of a method for generating information according to the present application is shown.
  • the method for generating information includes the following steps:
  • Step 201 Obtain a target video.
  • an execution subject for example, a server shown in FIG. 1
  • the target video may be a video to be identified.
  • the above-mentioned execution subject may obtain the target video sent by the electronic device (for example, the terminal device shown in FIG. 1) in communication connection therewith, or may obtain the target video stored in the local area in advance.
  • Step 202 Input a target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video.
  • the execution subject may input the target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video.
  • the video recognition model can be used to characterize the correspondence between the video and the recognition result pair.
  • the recognition result pair includes a first recognition result and a second recognition result.
  • the first recognition result may be used to characterize the foreground included in the video.
  • the second recognition result can be used to characterize the background included in the video.
  • the recognition results (the first recognition result and the second recognition result) in the recognition result pair may include, but are not limited to, at least one of the following: text, numbers, symbols, images, videos.
  • the foreground included in the video usually refers to the shooting content (such as people, animals, behaviors, etc.) corresponding to the video
  • the background included in the video usually refers to the shooting scene (such as Sky, stadium, forest, etc.).
  • the video recognition model may be obtained by training as follows: First, a training sample set is obtained, where the training sample includes a sample video and a sample recognition result pair that is pre-labeled for the sample video. Then, the sample video of the training samples in the training sample set is used as an input, and the pair of sample recognition results corresponding to the input sample video is used as the desired output, and a video recognition model is obtained by training using a machine learning method.
  • training samples can be selected from the training sample set and the following steps are performed: the sample video of the selected training samples is input to an initial model (such as a Convolutional Neural Network (CNN), a residual network ( ResNet), etc.) to obtain the recognition result pair; use the sample recognition result pair corresponding to the input sample video as the expected output of the initial model, and adjust the parameters of the initial model based on the obtained recognition result pair and sample recognition result pair; determine Whether there are unselected training samples in the training sample set; and in response to the absence of unselected training samples, the adjusted initial model is determined as a video recognition model.
  • an initial model such as a Convolutional Neural Network (CNN), a residual network ( ResNet), etc.
  • CNN Convolutional Neural Network
  • ResNet residual network
  • the video recognition model described above may also be obtained by training as follows:
  • the training sample set can be divided into a preset number of training sample groups in various ways.
  • the training sample set can be divided into a preset number of training sample groups in an equal division manner, or the training sample set can be divided such that the training included in each training sample group in the preset number of training sample groups
  • the number of samples is greater than or equal to a preset threshold. It should be noted that the preset number can be set in advance by a technician.
  • a training sample group can be selected as a candidate training sample group from a preset number of training sample groups, and based on the candidate training sample group and a predetermined initial model, the following training steps are performed:
  • For the candidate training sample group The sample video is used as an input, and the sample recognition result pair corresponding to the input sample video is used as an output.
  • the initial model is trained by using a machine learning method to obtain an initial video recognition model. It is determined whether a preset completion condition is used to indicate the completion of training. Yes; in response to determining that the completion conditions are met, a video recognition model is generated based on the obtained initial video recognition model.
  • an initial video recognition model may be selected from the obtained initial video recognition models as a video recognition model, or the obtained initial video recognition model may be processed (fused) to obtain a video recognition model.
  • the selection method of the training sample group is not limited in this application. For example, it may be randomly selected, or a training sample group with more training samples may be preferentially selected.
  • a training sample group is selected from the unselected training sample group as a new candidate training sample group, and the newly obtained initial video recognition model is used as a new initial model, and the process continues. Perform the training steps described above.
  • the execution subject of the steps for obtaining the video recognition model may be the same as or different from the execution subject of the method for generating information. If they are the same, the executing subject of the step for obtaining the video recognition model may store the trained video recognition model locally after training to obtain the video recognition model. If they are different, the execution subject of the step for obtaining the video recognition model may send the trained video recognition model to the execution subject of the method for generating information after training to obtain the video recognition model.
  • the above completion conditions may include, but are not limited to, at least one of the following: a preset number of training sample groups does not include an unselected training sample group; and a candidate training sample group The loss value of the actual recognition result pair obtained from the input of the initial model of the training sample of the training sample relative to the sample recognition result pair corresponding to the input sample video is less than the preset loss threshold.
  • FIG. 3 is a schematic diagram of an application scenario of the method for generating information according to this embodiment.
  • the terminal 301 first sends a target video (video obtained by shooting a kite) 302 to the server 303.
  • the server 303 obtains the target video 302, and inputs the target video 302 into a pre-trained video recognition model 304 to obtain a recognition result pair 305 corresponding to the target video 302.
  • the video recognition model can be used to characterize the correspondence between the video and the recognition result pair.
  • the recognition result pair 305 includes a first recognition result (kite) 3051 and a second recognition result (sky) 3052.
  • the first recognition result 3051 can be used to characterize the foreground included in the video
  • the second recognition result 3052 can be used to characterize the video. Background.
  • the method provided by the above embodiments of the present application obtains a target video and then inputs the target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video.
  • the video recognition model is used to characterize the relationship between the video and the recognition result pair.
  • the recognition result pair includes a first recognition result and a second recognition result.
  • the first recognition result is used to characterize the foreground included in the video
  • the second recognition result is used to characterize the background included in the video, so that a pre-trained video can be used.
  • Recognition model while identifying the foreground and background of the target video, improves the diversity of information generation.
  • a flowchart 400 of still another embodiment of a method for generating information is shown.
  • the process 400 of the method for generating information includes the following steps:
  • Step 401 Obtain a target video.
  • an execution subject for example, a server shown in FIG. 1
  • a server shown in FIG. 1
  • an execution subject of the method for generating information may obtain a target video by using a wired connection method or a wireless connection method.
  • step 401 may be implemented in a manner similar to step 201 in the foregoing embodiment. Accordingly, the above description of step 201 is also applicable to step 401 of this embodiment, and details are not described herein again.
  • Step 402 Input the target video into a feature extraction network of a pre-trained video recognition model to obtain video features of the target video.
  • the video recognition model may include a feature extraction network. Further, based on the target video obtained in step 401, the execution subject may input the target video into the feature extraction network of the video recognition model to obtain the video features of the target video.
  • the target video is essentially a target image sequence arranged in chronological order. Therefore, the video characteristics of the target video can be reflected by the image characteristics of the target image in the target image sequence.
  • the feature extraction network may be used to extract the image features of the target image corresponding to the target video, and based on the image features, generate the video features and output corresponding to the target video.
  • the execution subject may directly determine the obtained image feature as the video feature corresponding to the target video, or may process the obtained image feature and determine the processed image feature as the video corresponding to the target video. feature.
  • the above-mentioned execution subject may fuse the obtained image features to obtain the fused features, and then determine the fused features as the video features corresponding to the target video.
  • the feature extraction network may include a structure (such as a convolution layer) for extracting image features, and of course, may also include other structures (such as a pooling layer), which is not limited herein.
  • a structure such as a convolution layer
  • other structures such as a pooling layer
  • Step 403 Input the obtained video features into the first video recognition sub-model and the second video recognition sub-model of the video recognition model, and obtain the recognition result pair corresponding to the target video including the first recognition result and the second recognition result.
  • the video recognition model may further include a first video recognition sub-model and a second video recognition sub-model.
  • the above-mentioned execution body may input the obtained video features into the first video recognition sub-model of the video recognition model, respectively.
  • the second video recognition sub-model to obtain a pair of recognition results corresponding to the target video and including the first recognition result and the second recognition result.
  • the first recognition result may be used to characterize the foreground included in the video.
  • the second recognition result can be used to characterize the background included in the video.
  • the recognition results (the first recognition result and the second recognition result) in the recognition result pair may include, but are not limited to, at least one of the following: text, numbers, symbols, images, videos.
  • the first video recognition sub-model is connected to a feature extraction network for generating a first recognition result based on the input video features.
  • the second video sub-model is connected to a feature extraction network, and is configured to generate a second recognition result based on the input video features.
  • the first video recognition sub-model and the second video sub-model may include a structure for generating results (for example, a classifier, a fully connected layer), and of course, other structures (for example, an output layer) may be included, which is not limited here. .
  • the process 400 of the method for generating information in this embodiment highlights the target video input feature extraction network, obtains the video features of the target video, and And using the obtained video features as shared features to input a first video recognition sub-model and a second video recognition sub-model, respectively, and then obtain a pair of recognition results. Therefore, the solution described in this embodiment can use the overall features (including foreground features and background features) of the target video to generate a first recognition result and a second recognition result. For the first recognition result, the background feature is added. For reference data, for the second recognition result, reference data of foreground features is added, which can realize more accurate video recognition and improve the accuracy of information generation.
  • this application provides an embodiment of an apparatus for generating information.
  • the apparatus embodiment corresponds to the method embodiment shown in FIG. 2.
  • the device can be specifically applied to various electronic devices.
  • the apparatus 500 for generating information in this embodiment includes: an obtaining unit 501 and an input unit 502.
  • the obtaining unit 501 is configured to obtain the target video;
  • the input unit 502 is configured to input the target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video, wherein the video recognition model is used to characterize the video and recognition Correspondence between result pairs.
  • the recognition result pair includes a first recognition result and a second recognition result.
  • the first recognition result is used to characterize the foreground included in the video
  • the second recognition result is used to characterize the background included in the video.
  • the obtaining unit 501 of the apparatus 500 for generating information may obtain a target video by using a wired connection method or a wireless connection method.
  • the target video may be a video to be identified.
  • the obtaining unit 501 may obtain a target video sent by an electronic device (such as the terminal device shown in FIG. 1) that is communicatively connected to the target unit, and may also obtain a target video stored in advance locally.
  • an electronic device such as the terminal device shown in FIG. 1
  • the input unit 502 may input the target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video.
  • the video recognition model can be used to characterize the correspondence between the video and the recognition result pair.
  • the recognition result pair includes a first recognition result and a second recognition result.
  • the first recognition result may be used to characterize the foreground included in the video.
  • the second recognition result can be used to characterize the background included in the video.
  • the recognition results (the first recognition result and the second recognition result) in the recognition result pair may include, but are not limited to, at least one of the following: text, numbers, symbols, images, videos.
  • the foreground included in the video usually refers to the shooting content (such as people, animals, behaviors, etc.) corresponding to the video
  • the background included in the video usually refers to the shooting scene (such as Sky, stadium, forest, etc.).
  • the video recognition model may include a first video recognition sub-model, a second video recognition sub-model, and a feature extraction network; and the input unit 502 may include: a first input module (in the figure) (Not shown), configured to extract a target video into a feature extraction network to obtain video features of the target video; a second input module (not shown in the figure), configured to input the obtained video features into a first video recognition, respectively
  • the sub-model and the second video recognition sub-model obtain a recognition result pair corresponding to the target video and including the first recognition result and the second recognition result.
  • the video recognition model may be obtained by training as follows: obtaining a training sample set, where the training sample includes a sample video and a pair of sample recognition results pre-labeled for the sample video; and training samples The sample video of the concentrated training samples is used as input, and the pair of sample recognition results corresponding to the input sample video is used as the desired output, and a video recognition model is obtained by training using a machine learning method.
  • a sample video of training samples in a training sample set is used as an input, and a pair of sample recognition results corresponding to the input sample video is used as an output.
  • Video recognition is obtained by training using a machine learning method.
  • the model includes: dividing a training sample set into a preset number of training sample groups; selecting a training sample group as a candidate training sample group from the preset number of training sample groups, and based on the candidate training sample group and a predetermined initial model, The following training steps are performed: for the candidate training sample group, the sample video of the training sample is used as an input, and the sample recognition result pair corresponding to the input sample video is used as an output, and the initial model is trained using the machine learning method to obtain the initial video recognition Model; determine whether the pre-set completion conditions used to indicate the completion of training are met; in response to determining that the completion conditions are met, generate a video recognition model based on the obtained initial video recognition model; in response to determining that the completion conditions are not met, never selected From the training sample group
  • the completion condition may include, but is not limited to, at least one of the following: a preset number of training sample groups does not include an unselected training sample group; The loss value of the actual recognition result pair obtained by inputting the sample video of the training sample into the initial model with respect to the sample recognition result pair corresponding to the input sample video is less than a preset loss threshold.
  • the apparatus 500 obtained by the foregoing embodiment of the present application obtains a target video through the obtaining unit 501, and then the input unit 502 inputs the target video into a pre-trained video recognition model to obtain a pair of recognition result corresponding to the target video, where the video recognition model is used for Characterizing the correspondence between the video and the recognition result pair, the recognition result pair includes a first recognition result and a second recognition result, the first recognition result is used to characterize the foreground included in the video, and the second recognition result is used to characterize the background included in the video, Therefore, the pre-trained video recognition model can be used to identify the foreground and background of the target video at the same time, which improves the diversity of information generation.
  • FIG. 6 illustrates a schematic structural diagram of a computer system 600 suitable for implementing an electronic device according to an embodiment of the present application.
  • the electronic device shown in FIG. 6 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present application.
  • the computer system 600 includes a central processing unit (CPU) 601, which can be loaded into a random access memory (RAM) 603 from a program stored in a read-only memory (ROM) 602 or from a storage portion 608. Instead, perform various appropriate actions and processes.
  • RAM random access memory
  • ROM read-only memory
  • various programs and data required for the operation of the system 600 are also stored.
  • the CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
  • An input / output (I / O) interface 605 is also connected to the bus 604.
  • the following components are connected to the I / O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage portion 608 including a hard disk and the like; a communication section 609 including a network interface card such as a LAN card, a modem, and the like.
  • the communication section 609 performs communication processing via a network such as the Internet.
  • the driver 610 is also connected to the I / O interface 605 as necessary.
  • a removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing a method shown in a flowchart.
  • the computer program may be downloaded and installed from a network through the communication section 609, and / or installed from a removable medium 611.
  • CPU central processing unit
  • the computer-readable medium described in this application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programming read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal that is included in baseband or propagated as part of a carrier wave, and which carries computer-readable program code. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. .
  • the program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, which contains one or more functions to implement a specified logical function Executable instructions.
  • the functions labeled in the blocks may also occur in a different order than those labeled in the drawings. For example, two blocks represented one after the other may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts can be implemented by a dedicated hardware-based system that performs the specified function or operation , Or it can be implemented with a combination of dedicated hardware and computer instructions.
  • the units described in the embodiments of the present application may be implemented by software or hardware.
  • the described unit may also be provided in a processor, for example, it may be described as: a processor includes an obtaining unit and an input unit. Among them, the names of these units do not constitute a limitation on the unit itself in some cases.
  • the obtaining unit may also be described as a “unit obtaining a target video”.
  • the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device in.
  • the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: obtains a target video; inputs the target video into a pre-trained video recognition model to obtain the target video Corresponding recognition result pair, where the video recognition model is used to characterize the correspondence between the video and the recognition result pair, the recognition result pair includes the first recognition result and the second recognition result, and the first recognition result is used to represent the foreground included in the video The second recognition result is used to characterize the background included in the video.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Multimedia (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Computation (AREA)
  • Evolutionary Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Image Analysis (AREA)

Abstract

Disclosed are a method and device for use in generating information. One embodiment of the method comprises: acquiring a target video; inputting the target video into a pretrained video recognition model to acquire a recognition result pair corresponding to the target video, where the video recognition model is used for expressing correlations between videos and recognition result pairs, the recognition result pairs comprise first recognition results and second recognition results, the first recognition results are used for expressing foregrounds that the videos comprise, and the second recognition results are used for expressing backgrounds that the videos comprise. The embodiment increases the diversity of information generation.

Description

用于生成信息的方法和装置Method and device for generating information

本专利申请要求于2018年6月21日提交的、申请号为201810644175.4、申请人为北京字节跳动网络技术有限公司、发明名称为“用于生成信息的方法和装置”的中国专利申请的优先权,该申请的全文以引用的方式并入本申请中。This patent application claims the priority of a Chinese patent application filed on June 21, 2018, with application number 201810644175.4, the applicant being Beijing BYTE Network Technology Co., Ltd., and the invention name "Methods and Devices for Generating Information" , The entire application of which is incorporated herein by reference.

技术领域Technical field

本申请实施例涉及计算机技术领域,尤其涉及用于生成信息的方法和装置。Embodiments of the present application relate to the field of computer technology, and in particular, to a method and an apparatus for generating information.

背景技术Background technique

视频通常包括前景和背景。前景可以包括拍摄获得的视频所对应的拍摄内容(例如人物、动物、行为等);背景可以包括拍摄获得的视频所对应的拍摄场景(例如天空、球场、森林等)。Video usually includes foreground and background. The foreground may include the shooting content (such as people, animals, behaviors, etc.) corresponding to the captured video; the background may include the shooting scene (such as the sky, stadium, forest, etc.) corresponding to the captured video.

目前,视频识别通常只对视频的前景进行识别。Currently, video recognition usually only identifies the foreground of a video.

发明内容Summary of the Invention

本申请实施例提出了用于生成信息的方法和装置。The embodiments of the present application provide a method and device for generating information.

第一方面,本申请实施例提供了一种用于生成信息的方法,该方法包括:获取目标视频;将目标视频输入预先训练的视频识别模型,获得目标视频所对应的识别结果对,其中,视频识别模型用于表征视频与识别结果对的对应关系,识别结果对包括第一识别结果和第二识别结果,第一识别结果用于表征视频所包括的前景,第二识别结果用于表征视频所包括的背景。In a first aspect, an embodiment of the present application provides a method for generating information. The method includes: obtaining a target video; inputting the target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video, wherein, The video recognition model is used to characterize the correspondence between the video and the recognition result pair. The recognition result pair includes a first recognition result and a second recognition result. The first recognition result is used to characterize the foreground included in the video, and the second recognition result is used to characterize the video. Included background.

在一些实施例中,视频识别模型包括第一视频识别子模型、第二视频识别子模型和特征提取网络;以及将目标视频输入预先训练的视频识别模型,获得目标视频所对应的识别结果对,包括:将目标视频 输入特征提取网络,获得目标视频的视频特征;将所获得的视频特征分别输入第一视频识别子模型和第二视频识别子模型,获得目标视频所对应的、包括第一识别结果和第二识别结果的识别结果对。In some embodiments, the video recognition model includes a first video recognition sub-model, a second video recognition sub-model, and a feature extraction network; and inputting a target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video, The method includes: extracting a target video from a feature extraction network to obtain video features of the target video; and inputting the obtained video features to a first video recognition sub-model and a second video recognition sub-model, respectively, to obtain a target video corresponding to the first video recognition The result is a pair of recognition results with the second recognition result.

在一些实施例中,视频识别模型通过如下步骤训练得到:获取训练样本集,其中,训练样本包括样本视频和针对样本视频预先标注的样本识别结果对;将训练样本集中的训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为期望输出,利用机器学习方法训练得到视频识别模型。In some embodiments, the video recognition model is obtained by training as follows: obtaining a training sample set, wherein the training sample includes a sample video and a pair of sample recognition results pre-labeled for the sample video; and using the sample video of the training sample in the training sample set as As input, the pair of sample recognition results corresponding to the input sample video is taken as the desired output, and a video recognition model is obtained by training using a machine learning method.

在一些实施例中,将训练样本集中的训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为输出,利用机器学习方法训练得到视频识别模型,包括:将训练样本集划分成预设数量个训练样本组;从预设数量个训练样本组中选取训练样本组作为候选训练样本组,以及基于候选训练样本组和预先确定的初始模型,执行以下训练步骤:对于候选训练样本组,将训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为输出,利用机器学习方法对初始模型进行训练,获得初始视频识别模型;确定预先设置的用于指示训练完成的完成条件是否满足;响应于确定完成条件满足,基于所获得的初始视频识别模型,生成视频识别模型;响应于确定完成条件不满足,从未被选取的训练样本组中选取训练样本组作为新的候选训练样本组,以及将最近一次获得的初始视频识别模型作为新的初始模型,继续执行训练步骤。In some embodiments, the sample video of the training samples in the training sample set is used as an input, the sample recognition result pair corresponding to the input sample video is used as an output, and a video recognition model is trained by using a machine learning method, including: training samples The set is divided into a preset number of training sample groups; a training sample group is selected as a candidate training sample group from the preset number of training sample groups, and based on the candidate training sample group and a predetermined initial model, the following training steps are performed: for the candidate The training sample group takes the sample video of the training sample as an input, and uses the pair of sample recognition results corresponding to the input sample video as an output. The initial model is trained using the machine learning method to obtain the initial video recognition model. Determining whether the completion condition of the training is satisfied; in response to determining that the completion condition is satisfied, generating a video recognition model based on the obtained initial video recognition model; in response to determining that the completion condition is not satisfied, selecting a training from a group of training samples that have not been selected Sample group as new Selected training sample set, and the initial video recognition model is obtained most recently as a new initial model, continuing its training procedures.

在一些实施例中,完成条件包括但不限于以下至少一项:预设数量个训练样本组中不包括未被选取的训练样本组;将候选训练样本组中的训练样本的样本视频输入初始模型所得到的实际识别结果对相对于所输入的样本视频所对应的样本识别结果对的损失值小于预设损失阈值。In some embodiments, the completion condition includes, but is not limited to, at least one of the following: the preset number of training sample groups does not include unselected training sample groups; and inputting a sample video of training samples in candidate training sample groups into the initial model A loss value of the obtained actual recognition result pair with respect to the sample recognition result pair corresponding to the input sample video is less than a preset loss threshold.

第二方面,本申请实施例提供了一种用于生成信息的装置,该装置包括:获取单元,被配置成获取目标视频;输入单元,被配置成将目标视频输入预先训练的视频识别模型,获得目标视频所对应的识别结果对,其中,视频识别模型用于表征视频与识别结果对的对应关系, 识别结果对包括第一识别结果和第二识别结果,第一识别结果用于表征视频所包括的前景,第二识别结果用于表征视频所包括的背景。In a second aspect, an embodiment of the present application provides an apparatus for generating information. The apparatus includes: an acquiring unit configured to acquire a target video; an input unit configured to input the target video into a pre-trained video recognition model, Obtain a pair of recognition results corresponding to the target video, where the video recognition model is used to characterize the correspondence between the video and the pair of recognition results, the pair of recognition results includes a first recognition result and a second recognition result, and the first recognition result is used to represent the The included foreground and the second recognition result are used to characterize the background included in the video.

在一些实施例中,视频识别模型包括第一视频识别子模型、第二视频识别子模型和特征提取网络;以及输入单元包括:第一输入模块,被配置成将目标视频输入特征提取网络,获得目标视频的视频特征;第二输入模块,被配置成将所获得的视频特征分别输入第一视频识别子模型和第二视频识别子模型,获得目标视频所对应的、包括第一识别结果和第二识别结果的识别结果对。In some embodiments, the video recognition model includes a first video recognition sub-model, a second video recognition sub-model, and a feature extraction network; and the input unit includes: a first input module configured to input a target video into the feature extraction network to obtain Video features of the target video; a second input module configured to input the obtained video features into the first video recognition sub-model and the second video recognition sub-model, respectively, to obtain the corresponding target video including the first recognition result and the first video recognition sub-model. The recognition result pairs of the two recognition results.

在一些实施例中,视频识别模型通过如下步骤训练得到:获取训练样本集,其中,训练样本包括样本视频和针对样本视频预先标注的样本识别结果对;将训练样本集中的训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为期望输出,利用机器学习方法训练得到视频识别模型。In some embodiments, the video recognition model is obtained by training as follows: obtaining a training sample set, wherein the training sample includes a sample video and a pair of sample recognition results pre-labeled for the sample video; and using the sample video of the training sample in the training sample set as As input, the pair of sample recognition results corresponding to the input sample video is taken as the desired output, and a video recognition model is obtained by training using a machine learning method.

在一些实施例中,将训练样本集中的训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为输出,利用机器学习方法训练得到视频识别模型,包括:将训练样本集划分成预设数量个训练样本组;从预设数量个训练样本组中选取训练样本组作为候选训练样本组,以及基于候选训练样本组和预先确定的初始模型,执行以下训练步骤:对于候选训练样本组,将训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为输出,利用机器学习方法对初始模型进行训练,获得初始视频识别模型;确定预先设置的用于指示训练完成的完成条件是否满足;响应于确定完成条件满足,基于所获得的初始视频识别模型,生成视频识别模型;响应于确定完成条件不满足,从未被选取的训练样本组中选取训练样本组作为新的候选训练样本组,以及将最近一次获得的初始视频识别模型作为新的初始模型,继续执行训练步骤。In some embodiments, the sample video of the training samples in the training sample set is used as an input, the sample recognition result pair corresponding to the input sample video is used as an output, and a video recognition model is trained by using a machine learning method, including: training samples The set is divided into a preset number of training sample groups; a training sample group is selected as a candidate training sample group from the preset number of training sample groups, and based on the candidate training sample group and a predetermined initial model, the following training steps are performed: for the candidate The training sample group takes the sample video of the training sample as an input, and uses the pair of sample recognition results corresponding to the input sample video as an output. The initial model is trained using the machine learning method to obtain the initial video recognition model. Determining whether the completion condition of the training is satisfied; in response to determining that the completion condition is satisfied, generating a video recognition model based on the obtained initial video recognition model; in response to determining that the completion condition is not satisfied, selecting a training from a group of training samples that have not been selected Sample group as new Selected training sample set, and the initial video recognition model is obtained most recently as a new initial model, continuing its training procedures.

在一些实施例中,完成条件包括但不限于以下至少一项:预设数量个训练样本组中不包括未被选取的训练样本组;将候选训练样本组中的训练样本的样本视频输入初始模型所得到的实际识别结果对相对于所输入的样本视频所对应的样本识别结果对的损失值小于预设损失 阈值。In some embodiments, the completion condition includes, but is not limited to, at least one of the following: the preset number of training sample groups does not include unselected training sample groups; and inputting a sample video of training samples in candidate training sample groups into the initial model A loss value of the obtained actual recognition result pair with respect to the sample recognition result pair corresponding to the input sample video is less than a preset loss threshold.

第三方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现上述用于生成信息的方法中任一实施例的方法。According to a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device storing one or more programs thereon; when one or more programs are processed by one or more processors Execution causes one or more processors to implement the method of any one of the foregoing methods for generating information.

第四方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,该程序被处理器执行时实现上述用于生成信息的方法中任一实施例的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method of any one of the foregoing methods for generating information is implemented.

本申请实施例提供的用于生成信息的方法和装置,通过获取目标视频,然后将目标视频输入预先训练的视频识别模型,获得目标视频所对应的识别结果对,其中,视频识别模型用于表征视频与识别结果对的对应关系,识别结果对包括第一识别结果和第二识别结果,第一识别结果用于表征视频所包括的前景,第二识别结果用于表征视频所包括的背景,从而可以利用预先训练的视频识别模型,同时对目标视频的前景和背景进行识别,提高了信息生成的多样性。The method and device for generating information provided by the embodiments of the present application obtain a target video corresponding to the target video by acquiring the target video and then inputting the target video into a pre-trained video recognition model, where the video recognition model is used for characterization Correspondence between the video and the recognition result pair. The recognition result pair includes a first recognition result and a second recognition result. The first recognition result is used to characterize the foreground included in the video, and the second recognition result is used to characterize the background included in the video. The pre-trained video recognition model can be used to identify the foreground and background of the target video at the same time, which improves the diversity of information generation.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present application will become more apparent by reading the detailed description of the non-limiting embodiments with reference to the following drawings:

图1是本申请的一个实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present application can be applied; FIG.

图2是根据本申请的用于生成信息的方法的一个实施例的流程图;2 is a flowchart of an embodiment of a method for generating information according to the present application;

图3是根据本申请的用于生成信息的方法的一个应用场景的示意图;3 is a schematic diagram of an application scenario of a method for generating information according to the present application;

图4是根据本申请的用于生成信息的方法的又一个实施例的流程图;4 is a flowchart of another embodiment of a method for generating information according to the present application;

图5是根据本申请的用于生成信息的装置的一个实施例的结构示意图;5 is a schematic structural diagram of an embodiment of an apparatus for generating information according to the present application;

图6是适于用来实现本申请实施例的电子设备的计算机系统的结 构示意图。FIG. 6 is a schematic structural diagram of a computer system suitable for implementing an electronic device according to an embodiment of the present application.

具体实施方式detailed description

下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The following describes the present application in detail with reference to the accompanying drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the related invention, but not to limit the invention. It should also be noted that, for convenience of description, only the parts related to the related invention are shown in the drawings.

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The application will be described in detail below with reference to the drawings and embodiments.

图1示出了可以应用本申请的用于生成信息的方法或用于生成信息的装置的实施例的示例性系统架构100。FIG. 1 illustrates an exemplary system architecture 100 of an embodiment of a method for generating information or an apparatus for generating information to which the present application can be applied.

如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1, the system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. The network 104 is a medium for providing a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.

用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如模型训练类应用、视频识别类应用、网页浏览器应用、社交平台软件等。The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages and the like. Various communication client applications, such as model training applications, video recognition applications, web browser applications, social platform software, and the like can be installed on the terminal devices 101, 102, and 103.

终端设备101、102、103可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是具有显示屏的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。当终端设备101、102、103为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务的多个软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。The terminal devices 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, and 103 are hardware, they can be various electronic devices with a display screen, including but not limited to smartphones, tablets, e-book readers, MP3 players (Moving Pictures Experts Group Audio Audio Layer III, Motion picture expert compression standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer 4), player, laptop portable computer and desktop computer, etc. When the terminal devices 101, 102, and 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or it can be implemented as a single software or software module. It is not specifically limited here.

当终端101、102、103为硬件时,其上还可以安装有视频采集设备。视频采集设备可以是各种能实现采集视频功能的设备,如摄像头、传感器等等。用户可以利用终端101、102、103上的视频采集设备来采集视频。When the terminals 101, 102, and 103 are hardware, a video capture device may also be installed on the terminals. The video capture device can be a variety of devices that can capture video, such as cameras, sensors, and so on. Users can use the video capture devices on the terminals 101, 102, 103 to capture video.

服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103上显示的视频进行处理的后台服务器。后台服务器可以对接收到的目标视频等数据进行分析等处理,并可以将处理结果(例如识别结果对)反馈给终端设备。The server 105 may be a server that provides various services, such as a background server that processes videos displayed on the terminal devices 101, 102, and 103. The background server can perform analysis and other processing on the received target video and other data, and can feed back the processing results (such as the recognition result pair) to the terminal device.

需要说明的是,服务器可以是硬件,也可以是软件。当服务器为硬件时,可以实现成多个服务器组成的分布式服务器集群,也可以实现成单个服务器。当服务器为软件时,可以实现成多个软件或软件模块(例如用来提供分布式服务的多个软件或软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。It should be noted that the server may be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers or as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, multiple software or software modules used to provide distributed services), or it can be implemented as a single software or software module. It is not specifically limited here.

应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。特别地,在目标人脸视频或者生成识别结果的过程中所使用的数据不需要从远程获取的情况下,上述系统架构可以不包括网络,而只包括终端设备或服务器。It should be understood that the numbers of terminal devices, networks, and servers in FIG. 1 are merely exemplary. Depending on the implementation needs, there can be any number of terminal devices, networks, and servers. In particular, in a case where the target face video or the data used in the process of generating the recognition result does not need to be obtained from a remote place, the above-mentioned system architecture may not include a network but only a terminal device or a server.

继续参考图2,示出了根据本申请的用于生成信息的方法的一个实施例的流程200。该用于生成信息的方法,包括以下步骤:With continued reference to FIG. 2, a flowchart 200 of one embodiment of a method for generating information according to the present application is shown. The method for generating information includes the following steps:

步骤201,获取目标视频。Step 201: Obtain a target video.

在本实施例中,用于生成信息的方法的执行主体(例如图1所示的服务器)可以通过有线连接方式或者无线连接方式获取目标视频。其中,目标视频可以为待对其进行识别的视频。In this embodiment, an execution subject (for example, a server shown in FIG. 1) of the method for generating information may obtain a target video by using a wired connection method or a wireless connection method. The target video may be a video to be identified.

需要说明的是,上述执行主体可以获取与之通信连接的电子设备(例如图1所示的终端设备)发送的目标视频,也可以获取预先存储于本地的目标视频。It should be noted that the above-mentioned execution subject may obtain the target video sent by the electronic device (for example, the terminal device shown in FIG. 1) in communication connection therewith, or may obtain the target video stored in the local area in advance.

步骤202,将目标视频输入预先训练的视频识别模型,获得目标视频所对应的识别结果对。Step 202: Input a target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video.

在本实施例中,基于步骤201中得到的目标视频,上述执行主体可以将目标视频输入预先训练的视频识别模型,获得目标视频所对应的识别结果对。其中,视频识别模型可以用于表征视频与识别结果对的对应关系。识别结果对包括第一识别结果和第二识别结果。第一识别结果可以用于表征视频所包括的前景。第二识别结果可以用于表征视频所包括的背景。识别结果对中的识别结果(第一识别结果和第二识别结果)可以包括但不限于以下至少一项:文字、数字、符号、图像、视频。In this embodiment, based on the target video obtained in step 201, the execution subject may input the target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video. Among them, the video recognition model can be used to characterize the correspondence between the video and the recognition result pair. The recognition result pair includes a first recognition result and a second recognition result. The first recognition result may be used to characterize the foreground included in the video. The second recognition result can be used to characterize the background included in the video. The recognition results (the first recognition result and the second recognition result) in the recognition result pair may include, but are not limited to, at least one of the following: text, numbers, symbols, images, videos.

在这里,可以理解的是,视频所包括的前景通常是指视频所对应的拍摄内容(例如人物、动物、行为等),视频所包括的背景通常是指上述拍摄内容所属于的拍摄场景(例如天空、球场、森林等)。Here, it can be understood that the foreground included in the video usually refers to the shooting content (such as people, animals, behaviors, etc.) corresponding to the video, and the background included in the video usually refers to the shooting scene (such as Sky, stadium, forest, etc.).

在本实施例的一些可选的实现方式中,视频识别模型可以通过如下步骤训练得到:首先,获取训练样本集,其中,训练样本包括样本视频和针对样本视频预先标注的样本识别结果对。然后,将训练样本集中的训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为期望输出,利用机器学习方法训练得到视频识别模型。In some optional implementations of this embodiment, the video recognition model may be obtained by training as follows: First, a training sample set is obtained, where the training sample includes a sample video and a sample recognition result pair that is pre-labeled for the sample video. Then, the sample video of the training samples in the training sample set is used as an input, and the pair of sample recognition results corresponding to the input sample video is used as the desired output, and a video recognition model is obtained by training using a machine learning method.

具体的,作为示例,可以从训练样本集中选取训练样本,并执行以下步骤:将所选取的训练样本的样本视频输入初始模型(例如卷积神经网络(Convolutional Neural Network,CNN)、残差网络(ResNet)等),获得识别结果对;将所输入的样本视频所对应的样本识别结果对作为初始模型的期望输出,基于所获得的识别结果对和样本识别结果对,调整初始模型的参数;确定训练样本集中是否存在未被选取的训练样本;响应于不存在未被选取的训练样本,将调整后的初始模型确定为视频识别模型。需要说明的是,训练样本的选取方式在本申请中并不限制。例如可以是随机选取,也可以是优先选取样本视频的清晰度较好的训练样本。Specifically, as an example, training samples can be selected from the training sample set and the following steps are performed: the sample video of the selected training samples is input to an initial model (such as a Convolutional Neural Network (CNN), a residual network ( ResNet), etc.) to obtain the recognition result pair; use the sample recognition result pair corresponding to the input sample video as the expected output of the initial model, and adjust the parameters of the initial model based on the obtained recognition result pair and sample recognition result pair; determine Whether there are unselected training samples in the training sample set; and in response to the absence of unselected training samples, the adjusted initial model is determined as a video recognition model. It should be noted that the manner of selecting training samples is not limited in this application. For example, it may be randomly selected, or training samples with better sharpness of the sample video may be preferentially selected.

在本实施例的一些可选的实现方式中,上述视频识别模型也可以通过如下步骤训练得到:In some optional implementations of this embodiment, the video recognition model described above may also be obtained by training as follows:

首先,获取训练样本集,以及将训练样本集划分成预设数量个训 练样本组。First, obtain a training sample set, and divide the training sample set into a preset number of training sample groups.

在这里,可以采用各种方式将训练样本集划分成预设数量个训练样本组。例如,可以采用等分的方式将训练样本集划分成预设数量个训练样本组,也可以对训练样本集进行划分,使得预设数量个训练样本组中的每个训练样本组所包括的训练样本的数量值大于等于预设阈值。需要说明的是,上述预设数量可以由技术人员预先设置。Here, the training sample set can be divided into a preset number of training sample groups in various ways. For example, the training sample set can be divided into a preset number of training sample groups in an equal division manner, or the training sample set can be divided such that the training included in each training sample group in the preset number of training sample groups The number of samples is greater than or equal to a preset threshold. It should be noted that the preset number can be set in advance by a technician.

然后,可以从预设数量个训练样本组中选取训练样本组作为候选训练样本组,以及基于候选训练样本组和预先确定的初始模型,执行以下训练步骤:对于候选训练样本组,将训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为输出,利用机器学习方法对初始模型进行训练,获得初始视频识别模型;确定预先设置的用于指示训练完成的完成条件是否满足;响应于确定完成条件满足,基于所获得的初始视频识别模型,生成视频识别模型。Then, a training sample group can be selected as a candidate training sample group from a preset number of training sample groups, and based on the candidate training sample group and a predetermined initial model, the following training steps are performed: For the candidate training sample group, The sample video is used as an input, and the sample recognition result pair corresponding to the input sample video is used as an output. The initial model is trained by using a machine learning method to obtain an initial video recognition model. It is determined whether a preset completion condition is used to indicate the completion of training. Yes; in response to determining that the completion conditions are met, a video recognition model is generated based on the obtained initial video recognition model.

在这里,可以从所得到的初始视频识别模型中选取一个初始视频识别模型作为视频识别模型,或者对所得到的初始视频识别模型进行处理(融合),获得视频识别模型。Here, an initial video recognition model may be selected from the obtained initial video recognition models as a video recognition model, or the obtained initial video recognition model may be processed (fused) to obtain a video recognition model.

需要说明的是,训练样本组的选取方式在本申请中并不限制。例如可以是随机选取,也可以是优先选取训练样本较多的训练样本组。It should be noted that the selection method of the training sample group is not limited in this application. For example, it may be randomly selected, or a training sample group with more training samples may be preferentially selected.

另外,还可以响应于确定完成条件不满足,从未被选取的训练样本组中选取训练样本组作为新的候选训练样本组,以及将最近一次获得的初始视频识别模型作为新的初始模型,继续执行上述训练步骤。In addition, in response to determining that the completion conditions are not satisfied, a training sample group is selected from the unselected training sample group as a new candidate training sample group, and the newly obtained initial video recognition model is used as a new initial model, and the process continues. Perform the training steps described above.

需要说明的是,上述用于获得视频识别模型的步骤的执行主体可以与用于生成信息的方法的执行主体相同或者不同。如果相同,则用于获得视频识别模型的步骤的执行主体可以在训练得到视频识别模型后将训练好的视频识别模型存储在本地。如果不同,则用于获得视频识别模型的步骤的执行主体可以在训练得到视频识别模型后将训练好的视频识别模型发送给用于生成信息的方法的执行主体。It should be noted that the execution subject of the steps for obtaining the video recognition model may be the same as or different from the execution subject of the method for generating information. If they are the same, the executing subject of the step for obtaining the video recognition model may store the trained video recognition model locally after training to obtain the video recognition model. If they are different, the execution subject of the step for obtaining the video recognition model may send the trained video recognition model to the execution subject of the method for generating information after training to obtain the video recognition model.

在本实施例的一些可选的实现方式中,上述完成条件可以包括但不限于以下至少一项:预设数量个训练样本组中不包括未被选取的训练样本组;将候选训练样本组中的训练样本的样本视频输入初始模型 所得到的实际识别结果对相对于所输入的样本视频所对应的样本识别结果对的损失值小于预设损失阈值。In some optional implementations of this embodiment, the above completion conditions may include, but are not limited to, at least one of the following: a preset number of training sample groups does not include an unselected training sample group; and a candidate training sample group The loss value of the actual recognition result pair obtained from the input of the initial model of the training sample of the training sample relative to the sample recognition result pair corresponding to the input sample video is less than the preset loss threshold.

继续参见图3,图3是根据本实施例的用于生成信息的方法的应用场景的一个示意图。在图3的应用场景中,终端301首先将目标视频(拍摄风筝所获得的视频)302发送给服务器303。然后,服务器303获取到目标视频302,以及将目标视频302输入预先训练的视频识别模型304,获得目标视频302所对应的识别结果对305。其中,视频识别模型可以用于表征视频与识别结果对的对应关系。识别结果对305包括第一识别结果(风筝)3051和第二识别结果(天空)3052,第一识别结果3051可以用于表征视频所包括的前景,第二识别结果3052可以用于表征视频所包括的背景。With continued reference to FIG. 3, FIG. 3 is a schematic diagram of an application scenario of the method for generating information according to this embodiment. In the application scenario of FIG. 3, the terminal 301 first sends a target video (video obtained by shooting a kite) 302 to the server 303. Then, the server 303 obtains the target video 302, and inputs the target video 302 into a pre-trained video recognition model 304 to obtain a recognition result pair 305 corresponding to the target video 302. Among them, the video recognition model can be used to characterize the correspondence between the video and the recognition result pair. The recognition result pair 305 includes a first recognition result (kite) 3051 and a second recognition result (sky) 3052. The first recognition result 3051 can be used to characterize the foreground included in the video, and the second recognition result 3052 can be used to characterize the video. Background.

本申请的上述实施例提供的方法通过获取目标视频,然后将目标视频输入预先训练的视频识别模型,获得目标视频所对应的识别结果对,其中,视频识别模型用于表征视频与识别结果对的对应关系,识别结果对包括第一识别结果和第二识别结果,第一识别结果用于表征视频所包括的前景,第二识别结果用于表征视频所包括的背景,从而可以利用预先训练的视频识别模型,同时对目标视频的前景和背景进行识别,提高了信息生成的多样性。The method provided by the above embodiments of the present application obtains a target video and then inputs the target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video. The video recognition model is used to characterize the relationship between the video and the recognition result pair. Correspondence, the recognition result pair includes a first recognition result and a second recognition result. The first recognition result is used to characterize the foreground included in the video, and the second recognition result is used to characterize the background included in the video, so that a pre-trained video can be used. Recognition model, while identifying the foreground and background of the target video, improves the diversity of information generation.

进一步参考图4,其示出了用于生成信息的方法的又一个实施例的流程400。该用于生成信息的方法的流程400,包括以下步骤:With further reference to FIG. 4, a flowchart 400 of still another embodiment of a method for generating information is shown. The process 400 of the method for generating information includes the following steps:

步骤401,获取目标视频。Step 401: Obtain a target video.

在本实施例中,用于生成信息的方法的执行主体(例如图1所示的服务器)可以通过有线连接方式或者无线连接方式获取目标视频。In this embodiment, an execution subject (for example, a server shown in FIG. 1) of the method for generating information may obtain a target video by using a wired connection method or a wireless connection method.

需要说明的是,步骤401可以采用与前述实施例中的步骤201类似的方式实现。相应地,上文针对步骤201的描述也适可用于本实施例的步骤401,此处不再赘述。It should be noted that step 401 may be implemented in a manner similar to step 201 in the foregoing embodiment. Accordingly, the above description of step 201 is also applicable to step 401 of this embodiment, and details are not described herein again.

步骤402,将目标视频输入预先训练的视频识别模型的特征提取网络,获得目标视频的视频特征。Step 402: Input the target video into a feature extraction network of a pre-trained video recognition model to obtain video features of the target video.

在本实施例中,视频识别模型可以包括特征提取网络,进而,基于步骤401中得到的目标视频,上述执行主体可以将目标视频输入视频识别模型的特征提取网络,获得目标视频的视频特征。In this embodiment, the video recognition model may include a feature extraction network. Further, based on the target video obtained in step 401, the execution subject may input the target video into the feature extraction network of the video recognition model to obtain the video features of the target video.

可以理解的是,目标视频实质上是一个按照时间的先后顺序排列的目标图像序列。因此,目标视频的视频特征可以由目标图像序列中的目标图像的图像特征来体现。It can be understood that the target video is essentially a target image sequence arranged in chronological order. Therefore, the video characteristics of the target video can be reflected by the image characteristics of the target image in the target image sequence.

在本实施例中,特征提取网络可以用于提取目标视频所对应的目标图像的图像特征,并基于图像特征,生成目标视频所对应的视频特征及输出。In this embodiment, the feature extraction network may be used to extract the image features of the target image corresponding to the target video, and based on the image features, generate the video features and output corresponding to the target video.

具体的,上述执行主体可以将所获得的图像特征直接确定为目标视频所对应的视频特征,也可以对所获得的图像特征进行处理,并将处理后的图像特征确定为目标视频所对应的视频特征。作为示例,上述执行主体可以对所获得图像特征进行融合,获得融合后的特征,进而将融合后的特征确定为目标视频所对应的视频特征。Specifically, the execution subject may directly determine the obtained image feature as the video feature corresponding to the target video, or may process the obtained image feature and determine the processed image feature as the video corresponding to the target video. feature. As an example, the above-mentioned execution subject may fuse the obtained image features to obtain the fused features, and then determine the fused features as the video features corresponding to the target video.

在这里,特征提取网络可以包括用于提取图像特征的结构(例如卷积层),当然也可以包括其他结构(例如池化层),此处不做限制。Here, the feature extraction network may include a structure (such as a convolution layer) for extracting image features, and of course, may also include other structures (such as a pooling layer), which is not limited herein.

步骤403,将所获得的视频特征分别输入视频识别模型的第一视频识别子模型和第二视频识别子模型,获得目标视频所对应的、包括第一识别结果和第二识别结果的识别结果对。Step 403: Input the obtained video features into the first video recognition sub-model and the second video recognition sub-model of the video recognition model, and obtain the recognition result pair corresponding to the target video including the first recognition result and the second recognition result. .

在本实施例中,视频识别模型还可以包括第一视频识别子模型和第二视频识别子模型,进而,上述执行主体可以将所获得的视频特征分别输入视频识别模型的第一视频识别子模型和第二视频识别子模型,获得目标视频所对应的、包括第一识别结果和第二识别结果的识别结果对。其中,第一识别结果可以用于表征视频所包括的前景。第二识别结果可以用于表征视频所包括的背景。识别结果对中的识别结果(第一识别结果和第二识别结果)可以包括但不限于以下至少一项:文字、数字、符号、图像、视频。In this embodiment, the video recognition model may further include a first video recognition sub-model and a second video recognition sub-model. Further, the above-mentioned execution body may input the obtained video features into the first video recognition sub-model of the video recognition model, respectively. And the second video recognition sub-model to obtain a pair of recognition results corresponding to the target video and including the first recognition result and the second recognition result. The first recognition result may be used to characterize the foreground included in the video. The second recognition result can be used to characterize the background included in the video. The recognition results (the first recognition result and the second recognition result) in the recognition result pair may include, but are not limited to, at least one of the following: text, numbers, symbols, images, videos.

在本实施例中,第一视频识别子模型与特征提取网络连接,用于基于所输入的视频特征,生成第一识别结果。第二视频子模型与特征提取网络连接,用于基于所输入的视频特征,生成第二识别结果。在 这里,第一视频识别子模型和第二视频子模型可以包括用于生成结果的结构(例如分类器、全连接层),当然还可以包括其他结构(例如输出层),此处不做限制。In this embodiment, the first video recognition sub-model is connected to a feature extraction network for generating a first recognition result based on the input video features. The second video sub-model is connected to a feature extraction network, and is configured to generate a second recognition result based on the input video features. Here, the first video recognition sub-model and the second video sub-model may include a structure for generating results (for example, a classifier, a fully connected layer), and of course, other structures (for example, an output layer) may be included, which is not limited here. .

从图4中可以看出,与图2对应的实施例相比,本实施例中的用于生成信息的方法的流程400突出了将目标视频输入特征提取网络,获得目标视频的视频特征,并将所获得的视频特征作为共享特征,分别输入第一视频识别子模型和第二视频识别子模型,进而获得识别结果对的步骤。由此,本实施例描述的方案可以利用目标视频的整体特征(包括前景特征和背景特征),生成第一识别结果和第二识别结果,对于第一识别结果而言,增加了背景特征这一参考数据,对于第二识别结果,增加了前景特征这一参考数据,进而可以实现更为准确的视频识别,提高了信息生成的准确性。As can be seen from FIG. 4, compared with the embodiment corresponding to FIG. 2, the process 400 of the method for generating information in this embodiment highlights the target video input feature extraction network, obtains the video features of the target video, and And using the obtained video features as shared features to input a first video recognition sub-model and a second video recognition sub-model, respectively, and then obtain a pair of recognition results. Therefore, the solution described in this embodiment can use the overall features (including foreground features and background features) of the target video to generate a first recognition result and a second recognition result. For the first recognition result, the background feature is added. For reference data, for the second recognition result, reference data of foreground features is added, which can realize more accurate video recognition and improve the accuracy of information generation.

进一步参考图5,作为对上述各图所示方法的实现,本申请提供了一种用于生成信息的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to FIG. 5, as an implementation of the methods shown in the foregoing figures, this application provides an embodiment of an apparatus for generating information. The apparatus embodiment corresponds to the method embodiment shown in FIG. 2. The device can be specifically applied to various electronic devices.

如图5所示,本实施例的用于生成信息的装置500包括:获取单元501和输入单元502。其中,获取单元501被配置成获取目标视频;输入单元502被配置成将目标视频输入预先训练的视频识别模型,获得目标视频所对应的识别结果对,其中,视频识别模型用于表征视频与识别结果对的对应关系,识别结果对包括第一识别结果和第二识别结果,第一识别结果用于表征视频所包括的前景,第二识别结果用于表征视频所包括的背景。As shown in FIG. 5, the apparatus 500 for generating information in this embodiment includes: an obtaining unit 501 and an input unit 502. The obtaining unit 501 is configured to obtain the target video; the input unit 502 is configured to input the target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video, wherein the video recognition model is used to characterize the video and recognition Correspondence between result pairs. The recognition result pair includes a first recognition result and a second recognition result. The first recognition result is used to characterize the foreground included in the video, and the second recognition result is used to characterize the background included in the video.

在本实施例中,用于生成信息的装置500的获取单元501可以通过有线连接方式或者无线连接方式获取目标视频。其中,目标视频可以为待对其进行识别的视频。In this embodiment, the obtaining unit 501 of the apparatus 500 for generating information may obtain a target video by using a wired connection method or a wireless connection method. The target video may be a video to be identified.

需要说明的是,获取单元501可以获取与之通信连接的电子设备(例如图1所示的终端设备)发送的目标视频,也可以获取预先存储于本地的目标视频。It should be noted that the obtaining unit 501 may obtain a target video sent by an electronic device (such as the terminal device shown in FIG. 1) that is communicatively connected to the target unit, and may also obtain a target video stored in advance locally.

在本实施例中,基于获取单元501中得到的目标视频,输入单元 502可以将目标视频输入预先训练的视频识别模型,获得目标视频所对应的识别结果对。其中,视频识别模型可以用于表征视频与识别结果对的对应关系。识别结果对包括第一识别结果和第二识别结果。第一识别结果可以用于表征视频所包括的前景。第二识别结果可以用于表征视频所包括的背景。识别结果对中的识别结果(第一识别结果和第二识别结果)可以包括但不限于以下至少一项:文字、数字、符号、图像、视频。In this embodiment, based on the target video obtained in the obtaining unit 501, the input unit 502 may input the target video into a pre-trained video recognition model to obtain a pair of recognition results corresponding to the target video. Among them, the video recognition model can be used to characterize the correspondence between the video and the recognition result pair. The recognition result pair includes a first recognition result and a second recognition result. The first recognition result may be used to characterize the foreground included in the video. The second recognition result can be used to characterize the background included in the video. The recognition results (the first recognition result and the second recognition result) in the recognition result pair may include, but are not limited to, at least one of the following: text, numbers, symbols, images, videos.

在这里,可以理解的是,视频所包括的前景通常是指视频所对应的拍摄内容(例如人物、动物、行为等),视频所包括的背景通常是指上述拍摄内容所属于的拍摄场景(例如天空、球场、森林等)。Here, it can be understood that the foreground included in the video usually refers to the shooting content (such as people, animals, behaviors, etc.) corresponding to the video, and the background included in the video usually refers to the shooting scene (such as Sky, stadium, forest, etc.).

在本实施例的一些可选的实现方式中,视频识别模型可以包括第一视频识别子模型、第二视频识别子模型和特征提取网络;以及输入单元502可以包括:第一输入模块(图中未示出),被配置成将目标视频输入特征提取网络,获得目标视频的视频特征;第二输入模块(图中未示出),被配置成将所获得的视频特征分别输入第一视频识别子模型和第二视频识别子模型,获得目标视频所对应的、包括第一识别结果和第二识别结果的识别结果对。In some optional implementations of this embodiment, the video recognition model may include a first video recognition sub-model, a second video recognition sub-model, and a feature extraction network; and the input unit 502 may include: a first input module (in the figure) (Not shown), configured to extract a target video into a feature extraction network to obtain video features of the target video; a second input module (not shown in the figure), configured to input the obtained video features into a first video recognition, respectively The sub-model and the second video recognition sub-model obtain a recognition result pair corresponding to the target video and including the first recognition result and the second recognition result.

在本实施例的一些可选的实现方式中,视频识别模型可以通过如下步骤训练得到:获取训练样本集,其中,训练样本包括样本视频和针对样本视频预先标注的样本识别结果对;将训练样本集中的训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为期望输出,利用机器学习方法训练得到视频识别模型。In some optional implementations of this embodiment, the video recognition model may be obtained by training as follows: obtaining a training sample set, where the training sample includes a sample video and a pair of sample recognition results pre-labeled for the sample video; and training samples The sample video of the concentrated training samples is used as input, and the pair of sample recognition results corresponding to the input sample video is used as the desired output, and a video recognition model is obtained by training using a machine learning method.

在本实施例的一些可选的实现方式中,将训练样本集中的训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为输出,利用机器学习方法训练得到视频识别模型,包括:将训练样本集划分成预设数量个训练样本组;从预设数量个训练样本组中选取训练样本组作为候选训练样本组,以及基于候选训练样本组和预先确定的初始模型,执行以下训练步骤:对于候选训练样本组,将训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为输出,利用机器学习方法对初始模型进行训练,获得初始 视频识别模型;确定预先设置的用于指示训练完成的完成条件是否满足;响应于确定完成条件满足,基于所获得的初始视频识别模型,生成视频识别模型;响应于确定完成条件不满足,从未被选取的训练样本组中选取训练样本组作为新的候选训练样本组,以及将最近一次获得的初始视频识别模型作为新的初始模型,继续执行训练步骤。In some optional implementations of this embodiment, a sample video of training samples in a training sample set is used as an input, and a pair of sample recognition results corresponding to the input sample video is used as an output. Video recognition is obtained by training using a machine learning method. The model includes: dividing a training sample set into a preset number of training sample groups; selecting a training sample group as a candidate training sample group from the preset number of training sample groups, and based on the candidate training sample group and a predetermined initial model, The following training steps are performed: for the candidate training sample group, the sample video of the training sample is used as an input, and the sample recognition result pair corresponding to the input sample video is used as an output, and the initial model is trained using the machine learning method to obtain the initial video recognition Model; determine whether the pre-set completion conditions used to indicate the completion of training are met; in response to determining that the completion conditions are met, generate a video recognition model based on the obtained initial video recognition model; in response to determining that the completion conditions are not met, never selected From the training sample group The training sample group is used as a new candidate training sample group, and the newly obtained initial video recognition model is used as a new initial model, and the training step is continued.

在本实施例的一些可选的实现方式中,完成条件可以包括但不限于以下至少一项:预设数量个训练样本组中不包括未被选取的训练样本组;将候选训练样本组中的训练样本的样本视频输入初始模型所得到的实际识别结果对相对于所输入的样本视频所对应的样本识别结果对的损失值小于预设损失阈值。In some optional implementations of this embodiment, the completion condition may include, but is not limited to, at least one of the following: a preset number of training sample groups does not include an unselected training sample group; The loss value of the actual recognition result pair obtained by inputting the sample video of the training sample into the initial model with respect to the sample recognition result pair corresponding to the input sample video is less than a preset loss threshold.

本申请的上述实施例提供的装置500通过获取单元501获取目标视频,然后输入单元502将目标视频输入预先训练的视频识别模型,获得目标视频所对应的识别结果对,其中,视频识别模型用于表征视频与识别结果对的对应关系,识别结果对包括第一识别结果和第二识别结果,第一识别结果用于表征视频所包括的前景,第二识别结果用于表征视频所包括的背景,从而可以利用预先训练的视频识别模型,同时对目标视频的前景和背景进行识别,提高了信息生成的多样性。The apparatus 500 provided by the foregoing embodiment of the present application obtains a target video through the obtaining unit 501, and then the input unit 502 inputs the target video into a pre-trained video recognition model to obtain a pair of recognition result corresponding to the target video, where the video recognition model is used for Characterizing the correspondence between the video and the recognition result pair, the recognition result pair includes a first recognition result and a second recognition result, the first recognition result is used to characterize the foreground included in the video, and the second recognition result is used to characterize the background included in the video, Therefore, the pre-trained video recognition model can be used to identify the foreground and background of the target video at the same time, which improves the diversity of information generation.

下面参考图6,其示出了适于用来实现本申请实施例的电子设备的计算机系统600的结构示意图。图6示出的电子设备仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Reference is now made to FIG. 6, which illustrates a schematic structural diagram of a computer system 600 suitable for implementing an electronic device according to an embodiment of the present application. The electronic device shown in FIG. 6 is only an example, and should not impose any limitation on the functions and scope of use of the embodiments of the present application.

如图6所示,计算机系统600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有系统600操作所需的各种程序和数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, the computer system 600 includes a central processing unit (CPU) 601, which can be loaded into a random access memory (RAM) 603 from a program stored in a read-only memory (ROM) 602 or from a storage portion 608. Instead, perform various appropriate actions and processes. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

以下部件连接至I/O接口605:包括键盘、鼠标等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、 调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。The following components are connected to the I / O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage portion 608 including a hard disk and the like And a communication section 609 including a network interface card such as a LAN card, a modem, and the like. The communication section 609 performs communication processing via a network such as the Internet. The driver 610 is also connected to the I / O interface 605 as necessary. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本申请的方法中限定的上述功能。需要说明的是,本申请所述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等 等,或者上述的任意合适的组合。In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing a method shown in a flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and / or installed from a removable medium 611. When the computer program is executed by a central processing unit (CPU) 601, the above-mentioned functions defined in the method of the present application are executed. It should be noted that the computer-readable medium described in this application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programming read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing. In this application, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in combination with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium may include a data signal that is included in baseband or propagated as part of a carrier wave, and which carries computer-readable program code. Such a propagated data signal may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, and the computer-readable medium may send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. . The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code, which contains one or more functions to implement a specified logical function Executable instructions. It should also be noted that in some alternative implementations, the functions labeled in the blocks may also occur in a different order than those labeled in the drawings. For example, two blocks represented one after the other may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system that performs the specified function or operation , Or it can be implemented with a combination of dedicated hardware and computer instructions.

描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括获取单元和输入单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,获取单元还可以被描述为“获取目标视频的单元”。The units described in the embodiments of the present application may be implemented by software or hardware. The described unit may also be provided in a processor, for example, it may be described as: a processor includes an obtaining unit and an input unit. Among them, the names of these units do not constitute a limitation on the unit itself in some cases. For example, the obtaining unit may also be described as a “unit obtaining a target video”.

作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取目标视频;将目标视频输入预先训练的视频识别模型,获得目标视频所对应的识别结果对,其中,视频识别模型用于表征视频与识别结果对的对应关系,识别结果对包括第一识别结果和第二识别结果,第一识别结果用于表征视频所包括的前景,第二识别结果用于表征视频所包括的背景。As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device in. The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: obtains a target video; inputs the target video into a pre-trained video recognition model to obtain the target video Corresponding recognition result pair, where the video recognition model is used to characterize the correspondence between the video and the recognition result pair, the recognition result pair includes the first recognition result and the second recognition result, and the first recognition result is used to represent the foreground included in the video The second recognition result is used to characterize the background included in the video.

以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离 上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in this application is not limited to the technical solution of the specific combination of the above technical features, but should also cover the above technical features or Other technical solutions formed by arbitrarily combining their equivalent features. For example, a technical solution formed by replacing the above features with technical features disclosed in the present application (but not limited to) having similar functions.

Claims (12)

一种用于生成信息的方法,包括:A method for generating information, including: 获取目标视频;Get the target video; 将所述目标视频输入预先训练的视频识别模型,获得所述目标视频所对应的识别结果对,其中,所述视频识别模型用于表征视频与识别结果对的对应关系,识别结果对包括第一识别结果和第二识别结果,第一识别结果用于表征视频所包括的前景,第二识别结果用于表征视频所包括的背景。Inputting the target video into a pre-trained video recognition model to obtain a recognition result pair corresponding to the target video, wherein the video recognition model is used to characterize the correspondence between the video and the recognition result pair, and the recognition result pair includes a first A recognition result and a second recognition result. The first recognition result is used to characterize the foreground included in the video, and the second recognition result is used to characterize the background included in the video. 根据权利要求1所述的方法,其中,所述视频识别模型包括第一视频识别子模型、第二视频识别子模型和特征提取网络;以及The method of claim 1, wherein the video recognition model comprises a first video recognition sub-model, a second video recognition sub-model, and a feature extraction network; and 所述将所述目标视频输入预先训练的视频识别模型,获得所述目标视频所对应的识别结果对,包括:The step of inputting the target video into a pre-trained video recognition model and obtaining a pair of recognition results corresponding to the target video includes: 将所述目标视频输入所述特征提取网络,获得所述目标视频的视频特征;Inputting the target video into the feature extraction network to obtain video features of the target video; 将所获得的视频特征分别输入所述第一视频识别子模型和所述第二视频识别子模型,获得所述目标视频所对应的、包括第一识别结果和第二识别结果的识别结果对。The obtained video features are respectively input into the first video recognition sub-model and the second video recognition sub-model, and a pair of recognition results including the first recognition result and the second recognition result corresponding to the target video is obtained. 根据权利要求1或2所述的方法,其中,所述视频识别模型通过如下步骤训练得到:The method according to claim 1 or 2, wherein the video recognition model is obtained by training as follows: 获取训练样本集,其中,训练样本包括样本视频和针对样本视频预先标注的样本识别结果对;Obtaining a training sample set, where the training sample includes a sample video and a pair of sample recognition results pre-labeled for the sample video; 将所述训练样本集中的训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为期望输出,利用机器学习方法训练得到视频识别模型。Taking the sample video of the training samples in the training sample set as an input, using the pair of sample recognition results corresponding to the input sample video as the desired output, and using a machine learning method to train to obtain a video recognition model. 根据权利要求3所述的方法,其中,所述将所述训练样本集中的训练样本的样本视频作为输入,将所输入的样本视频所对应的样本 识别结果对作为输出,利用机器学习方法训练得到视频识别模型,包括:The method according to claim 3, wherein the sample video of the training samples in the training sample set is used as an input, and the sample recognition result pair corresponding to the input sample video is used as an output, and is obtained by training using a machine learning method. Video recognition models, including: 将训练样本集划分成预设数量个训练样本组;Dividing the training sample set into a preset number of training sample groups; 从预设数量个训练样本组中选取训练样本组作为候选训练样本组,以及基于候选训练样本组和预先确定的初始模型,执行以下训练步骤:对于候选训练样本组,将训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为输出,利用机器学习方法对初始模型进行训练,获得初始视频识别模型;确定预先设置的用于指示训练完成的完成条件是否满足;响应于确定完成条件满足,基于所获得的初始视频识别模型,生成视频识别模型;Select a training sample group as a candidate training sample group from a preset number of training sample groups, and perform the following training steps based on the candidate training sample group and a predetermined initial model: For the candidate training sample group, use the sample video of the training sample as Input, taking the pair of sample recognition results corresponding to the input sample video as the output, and using the machine learning method to train the initial model to obtain the initial video recognition model; determine whether the pre-set completion conditions that indicate the completion of training are met; response When it is determined that the completion conditions are met, a video recognition model is generated based on the obtained initial video recognition model; 响应于确定完成条件不满足,从未被选取的训练样本组中选取训练样本组作为新的候选训练样本组,以及将最近一次获得的初始视频识别模型作为新的初始模型,继续执行所述训练步骤。In response to determining that the completion conditions are not satisfied, the training sample group is selected from the selected training sample group as a new candidate training sample group, and the newly obtained initial video recognition model is used as the new initial model, and the training is continuously performed. step. 根据权利要求4所述的方法,其中,所述完成条件包括但不限于以下至少一项:预设数量个训练样本组中不包括未被选取的训练样本组;将候选训练样本组中的训练样本的样本视频输入初始模型所得到的实际识别结果对相对于所输入的样本视频所对应的样本识别结果对的损失值小于预设损失阈值。The method according to claim 4, wherein the completion condition includes but is not limited to at least one of the following: the preset number of training sample groups does not include unselected training sample groups; the training in the candidate training sample group The loss value of the actual recognition result pair obtained by inputting the sample video of the sample into the initial model relative to the sample recognition result pair corresponding to the input sample video is less than a preset loss threshold. 一种用于生成信息的装置,包括:An apparatus for generating information includes: 获取单元,被配置成获取目标视频;An acquisition unit configured to acquire a target video; 输入单元,被配置成将所述目标视频输入预先训练的视频识别模型,获得所述目标视频所对应的识别结果对,其中,所述视频识别模型用于表征视频与识别结果对的对应关系,识别结果对包括第一识别结果和第二识别结果,第一识别结果用于表征视频所包括的前景,第二识别结果用于表征视频所包括的背景。The input unit is configured to input the target video into a pre-trained video recognition model to obtain a recognition result pair corresponding to the target video, wherein the video recognition model is used to characterize a correspondence relationship between the video and the recognition result pair, The recognition result pair includes a first recognition result and a second recognition result. The first recognition result is used to characterize the foreground included in the video, and the second recognition result is used to characterize the background included in the video. 根据权利要求1所述的装置,其中,所述视频识别模型包括第一视频识别子模型、第二视频识别子模型和特征提取网络;以及The apparatus according to claim 1, wherein the video recognition model comprises a first video recognition sub-model, a second video recognition sub-model, and a feature extraction network; and 所述输入单元包括:The input unit includes: 第一输入模块,被配置成将所述目标视频输入所述特征提取网络,获得所述目标视频的视频特征;A first input module configured to input the target video into the feature extraction network to obtain video features of the target video; 第二输入模块,被配置成将所获得的视频特征分别输入所述第一视频识别子模型和所述第二视频识别子模型,获得所述目标视频所对应的、包括第一识别结果和第二识别结果的识别结果对。A second input module is configured to input the obtained video features into the first video recognition sub-model and the second video recognition sub-model, respectively, and obtain the first video recognition result and the first video recognition sub-model corresponding to the target video. The recognition result pairs of the two recognition results. 根据权利要求6或7所述的装置,其中,所述视频识别模型通过如下步骤训练得到:The device according to claim 6 or 7, wherein the video recognition model is obtained by training as follows: 获取训练样本集,其中,训练样本包括样本视频和针对样本视频预先标注的样本识别结果对;Obtaining a training sample set, where the training sample includes a sample video and a pair of sample recognition results pre-labeled for the sample video; 将所述训练样本集中的训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为期望输出,利用机器学习方法训练得到视频识别模型。Taking the sample video of the training samples in the training sample set as an input, using the pair of sample recognition results corresponding to the input sample video as the desired output, and using a machine learning method to train to obtain a video recognition model. 根据权利要求8所述的装置,其中,所述将所述训练样本集中的训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为输出,利用机器学习方法训练得到视频识别模型,包括:The device according to claim 8, wherein the sample video of the training samples in the training sample set is used as an input, and the sample recognition result pair corresponding to the input sample video is used as an output, and is obtained by training using a machine learning method. Video recognition models, including: 将训练样本集划分成预设数量个训练样本组;Dividing the training sample set into a preset number of training sample groups; 从预设数量个训练样本组中选取训练样本组作为候选训练样本组,以及基于候选训练样本组和预先确定的初始模型,执行以下训练步骤:对于候选训练样本组,将训练样本的样本视频作为输入,将所输入的样本视频所对应的样本识别结果对作为输出,利用机器学习方法对初始模型进行训练,获得初始视频识别模型;确定预先设置的用于指示训练完成的完成条件是否满足;响应于确定完成条件满足,基于所获得的初始视频识别模型,生成视频识别模型;Select a training sample group as a candidate training sample group from a preset number of training sample groups, and perform the following training steps based on the candidate training sample group and a predetermined initial model: For the candidate training sample group, use the sample video of the training sample as Input, taking the pair of sample recognition results corresponding to the input sample video as the output, and using the machine learning method to train the initial model to obtain the initial video recognition model; determine whether the pre-set completion conditions that indicate the completion of training are met; response When it is determined that the completion conditions are met, a video recognition model is generated based on the obtained initial video recognition model; 响应于确定完成条件不满足,从未被选取的训练样本组中选取训练样本组作为新的候选训练样本组,以及将最近一次获得的初始视频识别模型作为新的初始模型,继续执行所述训练步骤。In response to determining that the completion conditions are not satisfied, the training sample group is selected from the selected training sample group as a new candidate training sample group, and the newly obtained initial video recognition model is used as the new initial model, and the training is continuously performed. step. 根据权利要求9所述的装置,其中,所述完成条件包括但不限于以下至少一项:预设数量个训练样本组中不包括未被选取的训练样本组;将候选训练样本组中的训练样本的样本视频输入初始模型所得到的实际识别结果对相对于所输入的样本视频所对应的样本识别结果对的损失值小于预设损失阈值。The device according to claim 9, wherein the completion condition includes but is not limited to at least one of the following: a preset number of training sample groups does not include an unselected training sample group; and the training in the candidate training sample group The loss value of the actual recognition result pair obtained by inputting the sample video of the sample into the initial model relative to the sample recognition result pair corresponding to the input sample video is less than a preset loss threshold. 一种电子设备,包括:An electronic device includes: 一个或多个处理器;One or more processors; 存储装置,其上存储有一个或多个程序,A storage device on which one or more programs are stored, 当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-5中任一所述的方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1-5. 一种计算机可读介质,其上存储有计算机程序,其中,该程序被处理器执行时实现如权利要求1-5中任一所述的方法。A computer-readable medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method of any one of claims 1-5.
PCT/CN2018/116184 2018-06-21 2018-11-19 Method and device for use in generating information Ceased WO2019242222A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810644175.4 2018-06-21
CN201810644175.4A CN108830235B (en) 2018-06-21 2018-06-21 Method and apparatus for generating information

Publications (1)

Publication Number Publication Date
WO2019242222A1 true WO2019242222A1 (en) 2019-12-26

Family

ID=64142947

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116184 Ceased WO2019242222A1 (en) 2018-06-21 2018-11-19 Method and device for use in generating information

Country Status (2)

Country Link
CN (1) CN108830235B (en)
WO (1) WO2019242222A1 (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111667003A (en) * 2020-06-05 2020-09-15 北京百度网讯科技有限公司 Data cleaning method, device, equipment and storage medium
CN111768007A (en) * 2020-06-28 2020-10-13 北京百度网讯科技有限公司 Method and apparatus for mining data
CN111950344A (en) * 2020-06-28 2020-11-17 北京百度网讯科技有限公司 Biometric identification method, device, storage medium and electronic device
CN112101282A (en) * 2020-09-25 2020-12-18 北京瞰天科技有限公司 Aquatic target identification method and device, electronic equipment and storage medium
CN112215908A (en) * 2020-10-12 2021-01-12 国家计算机网络与信息安全管理中心 Video content comparison system, optimization method and comparison method for compressed domain
CN112541705A (en) * 2020-12-23 2021-03-23 北京百度网讯科技有限公司 Method, device, equipment and storage medium for generating user behavior evaluation model
CN112819078A (en) * 2021-02-04 2021-05-18 上海明略人工智能(集团)有限公司 Iteration method and device for recognition model
CN112949456A (en) * 2021-02-26 2021-06-11 北京达佳互联信息技术有限公司 Video feature extraction model training method and device, and video feature extraction method and device
CN113204695A (en) * 2021-05-12 2021-08-03 北京百度网讯科技有限公司 Website identification method and device
CN113361575A (en) * 2021-05-28 2021-09-07 北京百度网讯科技有限公司 Model training method and device and electronic equipment
CN113378921A (en) * 2021-06-09 2021-09-10 北京百度网讯科技有限公司 Data screening method and device and electronic equipment
CN113642727A (en) * 2021-08-06 2021-11-12 北京百度网讯科技有限公司 Training method of neural network model and multimedia information processing method and device
CN113705682A (en) * 2021-08-27 2021-11-26 微民保险代理有限公司 User behavior feature processing method and device
CN113886536A (en) * 2021-09-23 2022-01-04 北京百度网讯科技有限公司 Method and device for determining problem processing model and computer program product
CN113988192A (en) * 2021-10-29 2022-01-28 湖北三江航天万山特种车辆有限公司 Shift fault identification method, model training method and device for hydraulic transmission
CN114067786A (en) * 2020-07-28 2022-02-18 腾讯科技(深圳)有限公司 Speech recognition method, device, electronic device and storage medium
CN114091128A (en) * 2021-11-23 2022-02-25 北京百度网讯科技有限公司 A method, device and electronic device for determining a layout plan
CN114581296A (en) * 2020-11-16 2022-06-03 上海哔哩哔哩科技有限公司 Image generation method and device
CN114676715A (en) * 2022-03-25 2022-06-28 中国移动通信集团陕西有限公司 Data processing method, apparatus, equipment and computer storage medium
CN115115985A (en) * 2022-06-28 2022-09-27 腾讯科技(深圳)有限公司 Video analysis method and device, electronic equipment and storage medium
WO2023035896A1 (en) * 2021-09-08 2023-03-16 北京有竹居网络技术有限公司 Video recognition method and apparatus, readable medium, and electronic device
CN116156271A (en) * 2022-12-14 2023-05-23 北京奇艺世纪科技有限公司 Video title generation method and device, electronic equipment and readable storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830235B (en) * 2018-06-21 2020-11-24 北京字节跳动网络技术有限公司 Method and apparatus for generating information
CN110288089B (en) * 2019-06-28 2021-07-09 北京百度网讯科技有限公司 Method and apparatus for sending information
CN114913444B (en) * 2021-02-09 2025-10-10 阿里巴巴集团控股有限公司 Video processing method and device, data training method, device and system
CN112995665A (en) * 2021-03-10 2021-06-18 慧视云创(深圳)智能科技有限公司 Video coding method and device for camera device
CN117115511A (en) * 2023-07-21 2023-11-24 北京达佳互联信息技术有限公司 Video processing methods, devices, electronic equipment and media

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207870A (en) * 2012-01-17 2013-07-17 华为技术有限公司 A photo classification management method, server, device and system
US20150117777A1 (en) * 2013-10-28 2015-04-30 Cyberlink Corp. Systems and Methods for Automatically Applying Effects Based on Media Content Characteristics
CN107133354A (en) * 2017-05-25 2017-09-05 北京小米移动软件有限公司 The acquisition methods and device of description information of image
CN107909145A (en) * 2017-12-05 2018-04-13 苏州天瞳威视电子科技有限公司 A kind of training method of convolutional neural networks model
CN108090497A (en) * 2017-12-28 2018-05-29 广东欧珀移动通信有限公司 Video classification methods, device, storage medium and electronic equipment
CN108830235A (en) * 2018-06-21 2018-11-16 北京字节跳动网络技术有限公司 Method and apparatus for generating information

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101777114B (en) * 2009-01-08 2013-04-24 北京中星微电子有限公司 Intelligent analysis system and intelligent analysis method for video monitoring, and system and method for detecting and tracking head and shoulder
CN105488044A (en) * 2014-09-16 2016-04-13 华为技术有限公司 Data processing method and device
US9754416B2 (en) * 2014-12-23 2017-09-05 Intel Corporation Systems and methods for contextually augmented video creation and sharing
CN107154051B (en) * 2016-03-03 2020-06-12 株式会社理光 Background cutting method and device
CN105825234A (en) * 2016-03-16 2016-08-03 电子科技大学 Superpixel and background model fused foreground detection method
CN106383912B (en) * 2016-10-14 2019-09-03 北京字节跳动网络技术有限公司 A kind of picture retrieval method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207870A (en) * 2012-01-17 2013-07-17 华为技术有限公司 A photo classification management method, server, device and system
US20150117777A1 (en) * 2013-10-28 2015-04-30 Cyberlink Corp. Systems and Methods for Automatically Applying Effects Based on Media Content Characteristics
CN107133354A (en) * 2017-05-25 2017-09-05 北京小米移动软件有限公司 The acquisition methods and device of description information of image
CN107909145A (en) * 2017-12-05 2018-04-13 苏州天瞳威视电子科技有限公司 A kind of training method of convolutional neural networks model
CN108090497A (en) * 2017-12-28 2018-05-29 广东欧珀移动通信有限公司 Video classification methods, device, storage medium and electronic equipment
CN108830235A (en) * 2018-06-21 2018-11-16 北京字节跳动网络技术有限公司 Method and apparatus for generating information

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111667003A (en) * 2020-06-05 2020-09-15 北京百度网讯科技有限公司 Data cleaning method, device, equipment and storage medium
CN111667003B (en) * 2020-06-05 2023-11-03 北京百度网讯科技有限公司 Data cleaning methods, devices, equipment and storage media
CN111768007A (en) * 2020-06-28 2020-10-13 北京百度网讯科技有限公司 Method and apparatus for mining data
CN111950344A (en) * 2020-06-28 2020-11-17 北京百度网讯科技有限公司 Biometric identification method, device, storage medium and electronic device
CN111950344B (en) * 2020-06-28 2023-06-27 北京百度网讯科技有限公司 Biological category identification method and device, storage medium and electronic equipment
CN111768007B (en) * 2020-06-28 2023-08-08 北京百度网讯科技有限公司 Method and device for mining data
CN114067786A (en) * 2020-07-28 2022-02-18 腾讯科技(深圳)有限公司 Speech recognition method, device, electronic device and storage medium
CN112101282B (en) * 2020-09-25 2024-04-26 北京瞰天科技有限公司 Water target identification method and device, electronic equipment and storage medium
CN112101282A (en) * 2020-09-25 2020-12-18 北京瞰天科技有限公司 Aquatic target identification method and device, electronic equipment and storage medium
CN112215908B (en) * 2020-10-12 2022-12-02 国家计算机网络与信息安全管理中心 Compressed domain-oriented video content comparison system, optimization method, and comparison method
CN112215908A (en) * 2020-10-12 2021-01-12 国家计算机网络与信息安全管理中心 Video content comparison system, optimization method and comparison method for compressed domain
CN114581296A (en) * 2020-11-16 2022-06-03 上海哔哩哔哩科技有限公司 Image generation method and device
CN112541705B (en) * 2020-12-23 2024-01-23 北京百度网讯科技有限公司 Method, device, equipment and storage medium for generating user behavior evaluation model
CN112541705A (en) * 2020-12-23 2021-03-23 北京百度网讯科技有限公司 Method, device, equipment and storage medium for generating user behavior evaluation model
CN112819078B (en) * 2021-02-04 2023-12-15 上海明略人工智能(集团)有限公司 Iteration method and device for picture identification model
CN112819078A (en) * 2021-02-04 2021-05-18 上海明略人工智能(集团)有限公司 Iteration method and device for recognition model
CN112949456A (en) * 2021-02-26 2021-06-11 北京达佳互联信息技术有限公司 Video feature extraction model training method and device, and video feature extraction method and device
CN112949456B (en) * 2021-02-26 2023-12-12 北京达佳互联信息技术有限公司 Video feature extraction model training and video feature extraction method and device
CN113204695A (en) * 2021-05-12 2021-08-03 北京百度网讯科技有限公司 Website identification method and device
CN113204695B (en) * 2021-05-12 2023-09-26 北京百度网讯科技有限公司 Website identification method and device
CN113361575A (en) * 2021-05-28 2021-09-07 北京百度网讯科技有限公司 Model training method and device and electronic equipment
CN113361575B (en) * 2021-05-28 2023-10-20 北京百度网讯科技有限公司 Model training method and device and electronic equipment
CN113378921B (en) * 2021-06-09 2024-11-05 北京百度网讯科技有限公司 Data screening method, device and electronic equipment
CN113378921A (en) * 2021-06-09 2021-09-10 北京百度网讯科技有限公司 Data screening method and device and electronic equipment
CN113642727A (en) * 2021-08-06 2021-11-12 北京百度网讯科技有限公司 Training method of neural network model and multimedia information processing method and device
CN113642727B (en) * 2021-08-06 2024-05-28 北京百度网讯科技有限公司 Training method of neural network model and processing method and device of multimedia information
CN113705682B (en) * 2021-08-27 2024-05-14 微民保险代理有限公司 User behavior feature processing method and device
CN113705682A (en) * 2021-08-27 2021-11-26 微民保险代理有限公司 User behavior feature processing method and device
WO2023035896A1 (en) * 2021-09-08 2023-03-16 北京有竹居网络技术有限公司 Video recognition method and apparatus, readable medium, and electronic device
CN113886536A (en) * 2021-09-23 2022-01-04 北京百度网讯科技有限公司 Method and device for determining problem processing model and computer program product
CN113988192A (en) * 2021-10-29 2022-01-28 湖北三江航天万山特种车辆有限公司 Shift fault identification method, model training method and device for hydraulic transmission
CN113988192B (en) * 2021-10-29 2025-06-24 湖北三江航天万山特种车辆有限公司 Hydraulic transmission shift fault identification method, model training method and device
CN114091128A (en) * 2021-11-23 2022-02-25 北京百度网讯科技有限公司 A method, device and electronic device for determining a layout plan
CN114676715A (en) * 2022-03-25 2022-06-28 中国移动通信集团陕西有限公司 Data processing method, apparatus, equipment and computer storage medium
CN115115985A (en) * 2022-06-28 2022-09-27 腾讯科技(深圳)有限公司 Video analysis method and device, electronic equipment and storage medium
CN116156271A (en) * 2022-12-14 2023-05-23 北京奇艺世纪科技有限公司 Video title generation method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN108830235B (en) 2020-11-24
CN108830235A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
WO2019242222A1 (en) Method and device for use in generating information
CN111476871B (en) Method and apparatus for generating video
WO2020000879A1 (en) Image recognition method and apparatus
US11978245B2 (en) Method and apparatus for generating image
CN109492128B (en) Method and apparatus for generating a model
CN108805091B (en) Method and apparatus for generating a model
JP7222008B2 (en) Video clip search method and device
JP7394809B2 (en) Methods, devices, electronic devices, media and computer programs for processing video
CN109993150B (en) Method and device for identifying age
US11436863B2 (en) Method and apparatus for outputting data
CN109189544B (en) Method and device for generating dial plate
WO2020000876A1 (en) Model generating method and device
CN109034069B (en) Method and apparatus for generating information
CN109977905B (en) Method and apparatus for processing fundus images
CN109981787B (en) Method and device for displaying information
US11087140B2 (en) Information generating method and apparatus applied to terminal device
CN111539903B (en) Method and device for training face image synthesis model
CN110084317B (en) Method and device for recognizing images
CN109583389B (en) Drawing recognition method and device
CN108230346A (en) For dividing the method and apparatus of image semantic feature, electronic equipment
CN112527115A (en) User image generation method, related device and computer program product
CN113033677A (en) Video classification method and device, electronic equipment and storage medium
CN108921138B (en) Method and apparatus for generating information
CN112308950A (en) Video generation method and device
CN108921792B (en) Method and device for processing pictures

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18923527

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06/05/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18923527

Country of ref document: EP

Kind code of ref document: A1