WO2020233200A1 - 用于训练模型的方法和装置、用于预测信息的方法和装置 - Google Patents
用于训练模型的方法和装置、用于预测信息的方法和装置 Download PDFInfo
- Publication number
- WO2020233200A1 WO2020233200A1 PCT/CN2020/078590 CN2020078590W WO2020233200A1 WO 2020233200 A1 WO2020233200 A1 WO 2020233200A1 CN 2020078590 W CN2020078590 W CN 2020078590W WO 2020233200 A1 WO2020233200 A1 WO 2020233200A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- sample image
- result
- prediction
- annotation
- labeling
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/241—Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
Definitions
- the embodiments of the present disclosure relate to the field of computer technology, in particular to methods and devices for training models, and methods and devices for predicting information.
- the training data may include image data, for example.
- the existing labeling method usually provides the image to be labelled that does not correspond to the labeling result to the labeler, and the labeler directly makes the labeling.
- the embodiments of the present disclosure propose methods and devices for training models, and methods and devices for predicting information.
- an embodiment of the present disclosure provides a method for training a model, including: obtaining a sample image set, where a first sample image and a second sample image exist in the sample image set, and the first sample image corresponds to The sample image of the annotation result, the second sample image is a sample image that does not correspond to the annotation result; based on the first sample image in the sample image set and its corresponding annotation result, the corresponding prediction model is trained; the following processing steps are performed: Input at least one second sample image in the sample image set into the trained prediction model to obtain the corresponding prediction result; send the above at least one second sample image and the prediction result to the labeling terminal used by the labeler; obtain the label The person adjusts the prediction result obtained after the annotation result, and based on the obtained annotation result and its corresponding sample image, continues to train the trained prediction model.
- the above method further includes: if there is still a second sample image in the sample image set, continue Perform the above processing steps.
- obtaining the annotation result obtained by the annotator after adjusting the prediction result includes: receiving the annotation result obtained by the annotator returned by the annotation terminal after adjusting the prediction result.
- the tagging terminal is used to store the tagging result obtained by the tagger after adjusting the prediction result in a designated storage location; and obtaining the tagging result obtained by the tagger adjusting the prediction result, including: The storage location obtains the labeling result obtained by the labeling staff after adjusting the prediction result.
- each sample image in the sample image set displays the face of the target object
- the target object is a human or an animal
- the annotation result is used to indicate the position of the key points of the face displayed in the corresponding sample image
- the training The obtained prediction model is used to locate key points of the face.
- the embodiments of the present disclosure provide a method for predicting information.
- the method includes: receiving an image to be detected; and inputting the image to be detected into a training method as described in any one of the implementation modes in the first aspect. Forecast model to get the corresponding forecast result.
- the above method further includes: sending the to-be-detected image and the prediction result to an annotation terminal used by an annotator, so that the annotator can adjust the prediction result, and use the adjusted prediction result as the annotation result. And sending the image to be detected and the annotation result to the model training end used to train the prediction model, so that the model training end continues to train the prediction model based on the image to be detected and the annotation result.
- an embodiment of the present disclosure provides an apparatus for training a model.
- the apparatus includes: an acquisition unit configured to acquire a sample image set, where a first sample image and a second sample image exist in the sample image set , The first sample image is a sample image corresponding to the annotation result, and the second sample image is a sample image that does not correspond to the annotation result; the training unit is configured to be based on the first sample image in the sample image set and its corresponding annotation As a result, the training obtains the corresponding prediction model; the processing unit is configured to perform the following processing steps: input at least one second sample image in the sample image set into the trained prediction model to obtain the corresponding prediction result; The second sample image and the prediction result are sent to the labeling terminal used by the labeling staff; the labeling result obtained after the labeling staff has adjusted the prediction result, and based on the obtained labeling result and its corresponding sample image, continue to train The resulting prediction model is trained.
- the processing unit is further configured to: after continuing to train the trained prediction model based on the obtained annotation result and the corresponding sample image, if there is a second sample image in the sample image set To continue the processing steps.
- the processing unit is further configured to receive an annotation result obtained by an annotator returned by the annotation terminal after adjusting the prediction result.
- the tagging terminal is used to store the tagging result obtained by the tagger after adjusting the prediction result in a designated storage location; and the processing unit is further configured to: obtain the tagger from the designated storage location to perform The marked result after adjustment.
- each sample image in the sample image set displays the face of the target object
- the target object is a human or an animal
- the annotation result is used to indicate the position of the key points of the face displayed in the corresponding sample image
- the training The obtained prediction model is used to locate key points of the face.
- an embodiment of the present disclosure provides an apparatus for predicting information.
- the apparatus includes: a receiving unit configured to receive an image to be detected; a prediction unit configured to input the image to be detected as the first
- the prediction model trained by the method described in any implementation manner in the aspect obtains the corresponding prediction result.
- the above-mentioned device further includes: a sending unit configured to send the image to be detected and the prediction result to an annotation terminal used by an annotator, so that the annotator can adjust the prediction result, and the adjusted The prediction result is used as the annotation result, and the image to be detected and the annotation result are sent to the model training terminal for training the prediction model, so that the model training terminal continues to train the prediction model based on the image to be detected and the annotation result.
- a sending unit configured to send the image to be detected and the prediction result to an annotation terminal used by an annotator, so that the annotator can adjust the prediction result, and the adjusted
- the prediction result is used as the annotation result
- the image to be detected and the annotation result are sent to the model training terminal for training the prediction model, so that the model training terminal continues to train the prediction model based on the image to be detected and the annotation result.
- the embodiments of the present disclosure provide an electronic device that includes: one or more processors; a storage device on which one or more programs are stored; when the one or more programs are used by the One or more processors execute, so that the one or more processors implement the method described in any one of the first aspect and the second aspect.
- the embodiments of the present disclosure provide a computer-readable medium on which a computer program is stored, and when the program is executed by a processor, the method as described in any one of the first aspect and the second aspect is implemented.
- the method and device for training a model provided by the above-mentioned embodiments of the present disclosure obtain a sample image set, and then train a corresponding prediction model based on the first sample image in the sample image set and its corresponding annotation result, Then perform the following processing steps: input at least one second sample image in the sample image set into the prediction model to obtain the corresponding prediction result; send the at least one second sample image and the prediction result to the annotator used
- Annotation terminal Obtain the annotation results obtained by the annotation personnel after adjusting the prediction results, and continue to train the prediction model based on the obtained annotation results and the corresponding sample images, which can improve the efficiency of annotation and the accuracy of model prediction , Which is conducive to the cold start of the model.
- the method and device for predicting information provided by the above-mentioned embodiments of the present disclosure can perform prediction operations using a predictive model trained by the method described in any one of the implementations in the first aspect, which can be used when the model is in the cold start phase. Obtain prediction results with higher accuracy.
- FIG. 1 is an exemplary system architecture diagram in which some embodiments of the present disclosure can be applied;
- Fig. 2 is a flowchart of an embodiment of a method for training a model according to the present disclosure
- FIG. 3 is a flowchart of another embodiment of the method for training a model according to the present disclosure.
- Fig. 4 is a flowchart of an embodiment of a method for predicting information according to the present disclosure
- Fig. 5 is a schematic structural diagram of an embodiment of an apparatus for training a model according to the present disclosure
- Fig. 6 is a schematic structural diagram of an embodiment of an apparatus for predicting information according to the present disclosure
- FIG. 7 is a schematic structural diagram of a computer system suitable for implementing an electronic device of some embodiments of the present disclosure.
- FIG. 1 shows an exemplary system architecture 100 to which embodiments of the method and apparatus for training a model and the method and apparatus for predicting information of the present disclosure can be applied.
- the system architecture 100 may include terminal devices 101 and 102 and servers 103 and 104.
- the terminal device 101 may be connected to the servers 103 and 104 in communication.
- the server 103 and the server 104 may be connected in communication.
- the terminal device 102 and the server 104 may be connected in communication.
- various communication connection modes may be adopted between the server and the server and between the server and the terminal device, such as wired, wireless communication links, or fiber optic cables.
- the terminal device 101 may be, for example, a terminal device used by an annotator.
- the terminal device 102 may be, for example, a terminal device used by users with predicted needs.
- the server 103 may be, for example, a server for performing model training.
- the server 104 may be, for example, a server for performing prediction operations.
- the terminal device 102 may be installed with predictive applications supported by the server 104.
- the prediction application can be associated with a prediction model trained by the server 103.
- the prediction model can be used to predict images, and the prediction model can be deployed in the server 104.
- the annotation result corresponding to the sample image used by the server 103 in the training process of the prediction model may be annotated by the above-mentioned annotator.
- the terminal devices 101 and 102 may be hardware or software.
- the terminal devices 101 and 102 can be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and so on.
- the terminal devices 101 and 102 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, to provide distributed services), or as a single software or software module. There is no specific limitation here.
- the servers 103 and 104 may be hardware or software. When the servers 103 and 104 are hardware, they can be implemented as a distributed server cluster composed of multiple servers, or as a single server. When the servers 103 and 104 are software, they can be implemented as multiple software or software modules (for example, to provide distributed services), or can be implemented as a single software or software module. There is no specific limitation here.
- the method for training a model provided by some embodiments of the present disclosure is generally executed by the server 103, and accordingly, the device for training the model is generally set in the server 103.
- the method for predicting information provided by some embodiments of the present disclosure is generally executed by the server 104, and accordingly, the device for predicting information is generally set in the server 104.
- terminal devices, networks, and servers in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of terminal devices, networks and servers.
- FIG. 2 it shows a process 200 of an embodiment of the method for training a model according to the present disclosure.
- the process 200 of the method for training a model includes the following steps:
- Step 201 Obtain a sample image set.
- the sample image set contains a first sample image and a second sample image.
- the first sample image is a sample image corresponding to the annotation result
- the second sample image is a sample image that does not correspond to the annotation result.
- the execution subject of the method for training the model may be a server (for example, the server 103 shown in FIG. 1).
- the above-mentioned execution subject may obtain a pre-generated sample image set from a local or a connected server, for example.
- the first sample image and the second sample image exist in the sample image set.
- the first sample image is a sample image corresponding to the annotation result
- the second sample image is a sample image that does not correspond to the annotation result.
- the labeling result corresponding to the first sample image may be a machine labeling result or a manual labeling result, which is not specifically limited here.
- the annotation result corresponding to the first sample image is a manual annotation result.
- sample image may be various sample images, for example, a sample image displaying a designated object.
- the designated object may be, for example, a person, an animal (for example, a cat or a dog, etc.), a vehicle or a building, and so on.
- the annotation result can be used to indicate the position of the designated object displayed in the corresponding sample image, for example.
- each sample image in the sample image set may display the face of the target object, for example.
- the target object may be a human or an animal, for example.
- the annotation result can be used to indicate the position of key points (such as eyebrows, eyes, mouth, nose, etc.) of the face displayed in the corresponding sample image, for example.
- Step 202 Train a corresponding prediction model based on the first sample image in the sample image set and its corresponding annotation result.
- the above-mentioned execution subject may train to obtain a corresponding prediction model based on the first sample image in the sample image set and its corresponding annotation result.
- the above-mentioned execution subject may take the first sample image in the sample image set as input, and use the annotation result corresponding to the input first sample image as output, and train the prediction model.
- the above-mentioned execution subject may use the first sample image in the sample image set as input, and the annotation result corresponding to the input first sample image as output, and train the target initial model to obtain the corresponding prediction model.
- the target initial model may be an untrained or untrained neural network, such as a Convolutional Neural Network (CNN) or a Recurrent Neural Network (RNN).
- CNN Convolutional Neural Network
- RNN Recurrent Neural Network
- the trained prediction model can be used to locate the designated object displayed in the image.
- the prediction model obtained by training can be used to locate the key points of the face.
- Step 203 Input at least one second sample image in the sample image set into the trained prediction model to obtain a corresponding prediction result.
- the above-mentioned execution subject may input at least one second sample image in the sample image set into the trained prediction model to obtain a corresponding prediction result.
- Step 204 Send at least one second sample image and the prediction result to an annotation terminal used by an annotator.
- the above-mentioned execution subject may send the above-mentioned at least one second sample image and the prediction result to the annotating terminal used by the annotator (for example, the terminal device 101 shown in FIG. 1), so that the annotator can predict The result is adjusted, and the adjusted forecast result is used as the annotation result.
- the annotator may, for example, send the annotation result to the execution subject through the annotation terminal, or store the annotation result in a designated storage location.
- the above-mentioned execution subject may have the authority to access the storage location.
- Step 205 Obtain the annotation result obtained by the annotator after adjusting the prediction result, and continue to train the trained prediction model based on the obtained annotation result and its corresponding sample image.
- the above-mentioned execution subject may obtain the annotation result obtained by the annotator after adjusting the prediction result. For example, the annotation result sent by the annotator through the annotation terminal is received, or the annotation result stored by the annotator through the annotation terminal is obtained from the aforementioned storage location. Then, the above-mentioned execution subject may continue to train the prediction model trained in step 202 based on the obtained labeling result and the sample image corresponding to the labeling result, so as to improve the prediction accuracy of the prediction model.
- the method provided by the above-mentioned embodiments of the present disclosure obtains a sample image set, and then trains a corresponding prediction model based on the first sample image in the sample image set and its corresponding annotation result, and then executes the following processing steps: At least one second sample image in the sample image set is input to the prediction model to obtain the corresponding prediction result; the at least one second sample image and the prediction result are sent to the labeling terminal used by the labeler; The prediction result is adjusted to the labeling result, and based on the obtained labeling result and the corresponding sample image, continue to train the prediction model, which can improve the labeling efficiency and model prediction accuracy, which is conducive to the cold start of the model .
- FIG. 3 shows a process 300 of another embodiment of a method for training a model.
- the process 300 of the method for training a model includes the following steps:
- Step 301 Obtain a sample image set. Each sample image in the sample image set shows the face of the target object. There are a first sample image and a second sample image in the sample image set. The first sample image corresponds to the annotation result. The sample image, the second sample image is a sample image that does not correspond to the annotation result, and the annotation result is used to indicate the position of the key points of the face displayed in the corresponding sample image.
- the execution subject of the method for training the model may be a server (for example, the server 103 shown in FIG. 1).
- the above-mentioned execution subject may obtain a pre-generated sample image set from a local or a connected server, for example.
- the first sample image and the second sample image exist in the sample image set.
- the first sample image is a sample image corresponding to the annotation result
- the second sample image is a sample image that does not correspond to the annotation result.
- each sample image in the sample image set displays the face of the target object.
- the target object can be a human or an animal (for example, a cat or a dog, etc.).
- the annotation result is used to indicate the position of the key points of the face shown in the corresponding sample image.
- the labeling result corresponding to the first sample image may be a machine labeling result or a manual labeling result, which is not specifically limited here.
- the annotation result corresponding to the first sample image is a manual annotation result.
- Step 302 Train a corresponding prediction model based on the first sample image in the sample image set and its corresponding annotation result, and the prediction model is used to locate key facial points.
- the above-mentioned execution subject may train to obtain a corresponding prediction model based on the first sample image in the sample image set and its corresponding annotation result.
- the prediction model is used to locate key points on the face.
- the above-mentioned execution subject may take the first sample image in the sample image set as input, and use the annotation result corresponding to the input first sample image as output, and train the corresponding prediction model.
- the above-mentioned execution subject may use the first sample image in the sample image set as input, and the annotation result corresponding to the input first sample image as output, and train the target initial model to obtain the corresponding prediction model.
- the target initial model can be an untrained or untrained neural network, such as a convolutional neural network or a recurrent neural network.
- Step 303 Input at least one second sample image in the sample image set into the trained prediction model to obtain a corresponding prediction result.
- the above-mentioned execution subject may input at least one second sample image in the sample image set into the trained prediction model to obtain a corresponding prediction result.
- the prediction result is used to indicate the positions of the key points of the faces respectively displayed on the at least one second sample image.
- Step 304 Send at least one second sample image and the prediction result to the annotator used by the annotator.
- the above-mentioned execution subject may send the above-mentioned at least one second sample image and the prediction result to the annotating terminal used by the annotator (for example, the terminal device 101 shown in FIG. 1), so that the annotator can predict The result is adjusted, and the adjusted forecast result is used as the annotation result. Thereafter, the annotator may store the annotation result in a designated storage location, for example. Wherein, the above-mentioned execution subject may have the authority to access the storage location.
- Step 305 Obtain the annotation result obtained by the annotator after adjusting the prediction result from the designated storage location, and continue to train the trained prediction model based on the obtained annotation result and the corresponding sample image.
- the above-mentioned execution subject can obtain the labeling result obtained by the labeling personnel after adjusting the prediction result from the designated storage location, and continue to predict the training obtained based on the obtained labeling result and its corresponding sample image The model is trained.
- Step 306 Determine whether there is a second sample image in the sample image set.
- the execution subject can detect whether there is a second sample image in the sample image set. If there is still a second sample image, the above-mentioned execution subject can go to step 303. If there is no second sample image, the above-mentioned execution subject may end the execution of the process 300.
- the process 300 of the method for training a model in this embodiment can further improve the labeling efficiency, and the training can obtain higher prediction accuracy.
- FIG. 4 shows a flow 400 of an embodiment of a method for predicting information.
- the process 400 of the method for predicting information includes the following steps:
- Step 401 Receive an image to be detected.
- the execution subject of the method for predicting information may be a server (for example, the server 104 shown in FIG. 1).
- the foregoing execution subject may, for example, receive in real time the image to be detected sent by the user through the terminal device (for example, the terminal device 102 shown in FIG. 1).
- the foregoing prediction model may be a model obtained by training using the method described in the embodiment shown in FIG. 2 or FIG. 3.
- the foregoing prediction model may be synchronized to the foregoing execution subject by a model training terminal (for example, the server 103 shown in FIG. 1) used to train the foregoing prediction model, for example.
- Step 402 Input the image to be detected into the prediction model to obtain the corresponding prediction result.
- the execution subject may input the image to be detected into the prediction model to obtain the corresponding prediction result. Then, the above-mentioned executive body can also output the prediction result. For example, output the prediction result to the terminal device that sends the image to be detected, so that the terminal device shows the prediction result to the user.
- the prediction model when the prediction model is in the cold start phase, since there are few sample images used to train the prediction model, the prediction accuracy of the prediction model generally does not meet expectations.
- the forecast accuracy rate. Therefore, the above-mentioned execution body can send the image to be detected and the obtained prediction result to the annotator used by the annotator (for example, the terminal device 101 shown in FIG. 1), so that the annotator can adjust the prediction result, and the adjusted
- the latter prediction result is used as the annotation result
- the image to be detected and the annotation result are sent to the model training terminal, so that the model training terminal continues to train the prediction model based on the image to be detected and the annotation result.
- the model training terminal may synchronize the trained prediction model to the execution subject after training the prediction model based on the image to be detected and the annotation result. In this way, the above-mentioned execution subject can obtain prediction results with higher accuracy.
- the method provided by the above-mentioned embodiment of the present disclosure uses the prediction model trained by the method described in the embodiment shown in FIG. 2 or FIG. 3 to perform the prediction operation, and the prediction operation can be achieved when the model is in the cold start phase. Accuracy of prediction results.
- the present disclosure provides an embodiment of a device for training a model.
- the device embodiment corresponds to the method embodiment shown in FIG.
- the device can be specifically applied to various electronic devices.
- the apparatus 500 for training a model of this embodiment may include: the acquiring unit 501 is configured to acquire a set of sample images, and the first sample image and the second sample image exist in the sample image set. This image is a sample image corresponding to the annotation result, and the second sample image is a sample image that does not correspond to the annotation result; the training unit 502 is configured to train based on the first sample image in the sample image set and its corresponding annotation result Corresponding prediction model; the processing unit 503 is configured to perform the following processing steps: input at least one second sample image in the sample image set into the trained prediction model to obtain the corresponding prediction result; The image and the prediction result are sent to the annotation terminal used by the annotator; the annotation result obtained by the annotator after adjusting the prediction result is obtained, and based on the obtained annotation result and its corresponding sample image, continue to train the prediction model Conduct training.
- the specific processing of the acquiring unit 501, the training unit 502, and the processing unit 503 and the technical effects brought by them can refer to the steps in the embodiment shown in FIG. 2 respectively.
- the related description of step 202, step 203, step 204 and step 205 will not be repeated here.
- the processing unit 503 may be further configured to: after continuing to train the trained prediction model based on the obtained annotation result and its corresponding sample image, if the sample There is a second sample image in the image set, and the above processing steps are continued.
- the processing unit 503 may be further configured to receive the annotation result obtained by the annotator returned by the annotation terminal after adjusting the prediction result.
- the labeling terminal may be used to store the labeling result obtained by the labeling personnel after adjusting the prediction result in a designated storage location; and the processing unit 503 may be further configured to: The storage location of to obtain the labeling result obtained by the labeling staff after adjusting the prediction result.
- each sample image in the sample image set may display the face of the target object, the target object may be a human or an animal, and the annotation result may be used to indicate the location of the corresponding sample image.
- the position of the key points of the displayed face, and the trained prediction model can be used to locate the key points of the face.
- the device obtained by the above-mentioned embodiment of the present disclosure obtains a sample image set, and then trains a corresponding prediction model based on the first sample image in the sample image set and its corresponding annotation result, and then executes the following processing steps: At least one second sample image in the sample image set is input to the prediction model to obtain the corresponding prediction result; the at least one second sample image and the prediction result are sent to the labeling terminal used by the labeler; The annotation result obtained after the prediction result is adjusted, and based on the obtained annotation result and its corresponding sample image, continue to train the prediction model, which can improve the annotation efficiency and model prediction accuracy, which is conducive to the cold start of the model .
- the present disclosure provides an embodiment of a device for predicting information.
- the device embodiment corresponds to the method embodiment shown in FIG. 4.
- the device can be specifically applied to various electronic devices.
- the apparatus 600 for predicting information of this embodiment may include: the receiving unit 601 is configured to receive the image to be detected; the prediction unit 602 is configured to input the image to be detected into the prediction model (such as using FIG. 2 or Fig. 3 shows the prediction model obtained by training the method described in the embodiment, and the corresponding prediction result is obtained.
- the prediction model such as using FIG. 2 or Fig. 3 shows the prediction model obtained by training the method described in the embodiment, and the corresponding prediction result is obtained.
- the relevant description of, will not repeat them here.
- the above-mentioned device 600 may further include: a sending unit (not shown in the figure) configured to send the image to be detected and the prediction result to the labeling terminal used by the labeling personnel, In this way, the annotator can adjust the prediction result, and use the adjusted prediction result as the annotation result, and send the image to be detected and the annotation result to the model training end used to train the prediction model, so that the model training end is based on the The detection images and annotation results continue to train the prediction model.
- a sending unit (not shown in the figure) configured to send the image to be detected and the prediction result to the labeling terminal used by the labeling personnel,
- the annotator can adjust the prediction result, and use the adjusted prediction result as the annotation result, and send the image to be detected and the annotation result to the model training end used to train the prediction model, so that the model training end is based on the The detection images and annotation results continue to train the prediction model.
- the device provided by the above-mentioned embodiment of the present disclosure uses the prediction model trained by the method described in the embodiment shown in FIG. 2 or FIG. 3 to perform prediction operations, and can obtain high accuracy when the model is in the cold start phase.
- the predicted result of the degree is the prediction model trained by the method described in the embodiment shown in FIG. 2 or FIG. 3 to perform prediction operations, and can obtain high accuracy when the model is in the cold start phase. The predicted result of the degree.
- FIG. 7 shows a schematic structural diagram of an electronic device (for example, the servers 103 and 104 in FIG. 1) 700 suitable for implementing the embodiments of the present disclosure.
- the terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablets), PMPs (portable multimedia players), vehicle-mounted terminals ( For example, mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs and desktop computers.
- the electronic device shown in FIG. 7 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
- the electronic device 700 may include a processing device (such as a central processing unit, a graphics processor, etc.) 701, which may be loaded into a random access device according to a program stored in a read-only memory (ROM) 702 or from a storage device 708
- the program in the memory (RAM) 703 executes various appropriate actions and processing.
- the RAM 703 also stores various programs and data required for the operation of the electronic device 700.
- the processing device 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704.
- An input/output (I/O) interface 705 is also connected to the bus 704.
- the following devices can be connected to the I/O interface 705: including input devices 706 such as touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, liquid crystal display (LCD), speakers, vibration An output device 707 such as a computer; a storage device 708 such as a hard disk; and a communication device 709.
- the communication device 709 may allow the electronic device 700 to perform wireless or wired communication with other devices to exchange data.
- FIG. 7 shows an electronic device 700 having various devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices. Each block shown in FIG. 7 can represent one device, or can represent multiple devices as needed.
- the process described above with reference to the flowchart can be implemented as a computer software program.
- the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
- the computer program may be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702.
- the processing device 701 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
- the computer-readable medium described in the embodiment of the present disclosure 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 electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. 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 Programmable 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 above.
- the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
- the computer-readable signal medium may include a data signal propagated in a baseband or as a part of a carrier wave, and a computer-readable program code is carried therein. This propagated data signal can 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 the computer-readable storage medium.
- the computer-readable signal medium may send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
- the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
- the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
- the above-mentioned computer-readable medium carries one or more programs.
- the electronic device acquires a sample image set, and the sample image set contains the first sample image and the second sample image.
- Sample image the first sample image is a sample image corresponding to the annotation result
- the second sample image is a sample image that does not correspond to the annotation result
- the training is obtained Corresponding prediction model; perform the following processing steps: input at least one second sample image in the sample image set into the trained prediction model to obtain the corresponding prediction result; send the above at least one second sample image and the prediction result to The labeling terminal used by the labeling personnel; obtaining the labeling results obtained after the labeling personnel have adjusted the prediction results, and continuing to train the trained prediction model based on the obtained labeling results and the corresponding sample images.
- the electronic device can also be made to: receive the image to be detected associated with the above prediction model; input the image to be detected into the prediction model to obtain the corresponding prediction result.
- the computer program code for performing the operations of the embodiments of the present disclosure can be written in one or more programming languages or a combination thereof, the programming languages including object-oriented programming languages such as Java, Smalltalk, C++, Also includes conventional procedural programming languages-such as "C" language or similar programming languages.
- the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
- the remote computer can be connected to the user’s computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
- LAN local area network
- WAN wide area network
- Internet service provider for example, using an Internet service provider to pass Internet connection.
- each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
- the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
- each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
- the units involved in the embodiments described in the present disclosure may be implemented in a software manner, or may be implemented in a hardware manner.
- the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
- the acquisition unit can also be described as a "unit for acquiring a collection of sample images".
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Image Analysis (AREA)
Abstract
Description
Claims (16)
- 一种用于训练模型的方法,包括:获取样本图像集合,所述样本图像集合中存在第一样本图像和第二样本图像,第一样本图像是对应标注结果的样本图像,第二样本图像是未对应标注结果的样本图像;基于所述样本图像集合中的第一样本图像和其所对应的标注结果,训练得到相应的预测模型;执行以下处理步骤:将所述样本图像集合中的至少一张第二样本图像输入训练所得的预测模型,得到相应的预测结果;将所述至少一张第二样本图像和所述预测结果发送至标注人员所使用的标注端;获取所述标注人员对所述预测结果进行调整后所得的标注结果,并基于获取到的标注结果和其所对应的样本图像,继续对训练所得的预测模型进行训练。
- 根据权利要求1所述的方法,其中,在所述基于获取到的标注结果和其所对应的样本图像,继续对训练所得的预测模型进行训练之后,所述方法还包括:若所述样本图像集合中还存在第二样本图像,继续执行所述处理步骤。
- 根据权利要求1所述的方法,其中,所述获取所述标注人员对所述预测结果进行调整后所得的标注结果,包括:接收所述标注端返回的所述标注人员对所述预测结果进行调整后所得的标注结果。
- 根据权利要求1所述的方法,其中,所述标注端用于将所述标注人员对所述预测结果进行调整后所得的标注结果存储至指定的存储位置;以及所述获取所述标注人员对所述预测结果进行调整后所得的标注结 果,包括:从所述指定的存储位置获取所述标注人员对所述预测结果进行调整后所得的标注结果。
- 根据权利要求1-4之一所述的方法,其中,所述样本图像集合中的每张样本图像显示有目标对象的面部,所述目标对象为人或动物,标注结果用于指示其所对应的样本图像所显示的面部的关键点的位置,训练所得的预测模型用于进行面部关键点定位。
- 一种用于预测信息的方法,包括:接收待检测图像;将所述待检测图像输入采用如权利要求1-5之一所述的方法训练所得的预测模型,得到相应的预测结果。
- 根据权利要求6所述的方法,其中,所述方法还包括:将所述待检测图像和所述预测结果发送至标注人员所使用的标注端,以使所述标注人员对所述预测结果进行调整,并将经调整后的预测结果作为标注结果,以及将所述待检测图像和所述标注结果发送至用于对所述预测模型进行训练的模型训练端,使所述模型训练端基于所述待检测图像和所述标注结果继续对所述预测模型进行训练。
- 一种用于训练模型的装置,包括:获取单元,被配置成获取样本图像集合,所述样本图像集合中存在第一样本图像和第二样本图像,第一样本图像是对应标注结果的样本图像,第二样本图像是未对应标注结果的样本图像;训练单元,被配置成基于所述样本图像集合中的第一样本图像和其所对应的标注结果,训练得到相应的预测模型;处理单元,被配置成执行以下处理步骤:将所述样本图像集合中的至少一张第二样本图像输入训练所得的预测模型,得到相应的预测结果;将所述至少一张第二样本图像和所述预测结果发送至标注人员 所使用的标注端;获取所述标注人员对所述预测结果进行调整后所得的标注结果,并基于获取到的标注结果和其所对应的样本图像,继续对训练所得的预测模型进行训练。
- 根据权利要求8所述的装置,其中,所述处理单元进一步被配置成:在所述基于获取到的标注结果和其所对应的样本图像,继续对训练所得的预测模型进行训练之后,若所述样本图像集合中还存在第二样本图像,继续执行所述处理步骤。
- 根据权利要求8所述的装置,其中,所述处理单元进一步被配置成:接收所述标注端返回的所述标注人员对所述预测结果进行调整后所得的标注结果。
- 根据权利要求8所述的装置,其中,所述标注端用于将所述标注人员对所述预测结果进行调整后所得的标注结果存储至指定的存储位置;以及所述处理单元进一步被配置成:从所述指定的存储位置获取所述标注人员对所述预测结果进行调整后所得的标注结果。
- 根据权利要求8-11之一所述的装置,其中,所述样本图像集合中的每张样本图像显示有目标对象的面部,所述目标对象为人或动物,标注结果用于指示其所对应的样本图像所显示的面部的关键点的位置,训练所得的预测模型用于进行面部关键点定位。
- 一种用于预测信息的装置,包括:接收单元,被配置成接收待检测图像;预测单元,被配置成将所述待检测图像输入采用如权利要求1-5 之一所述的方法训练所得的预测模型,得到相应的预测结果。
- 根据权利要求13所述的装置,其中,所述装置还包括:发送单元,被配置成将所述待检测图像和所述预测结果发送至标注人员所使用的标注端,以使所述标注人员对所述预测结果进行调整,并将经调整后的预测结果作为标注结果,以及将所述待检测图像和所述标注结果发送至用于对所述预测模型进行训练的模型训练端,使所述模型训练端基于所述待检测图像和所述标注结果继续对所述预测模型进行训练。
- 一种电子设备,包括:一个或多个处理器;存储装置,其上存储有一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-7中任一所述的方法。
- 一种计算机可读介质,其上存储有计算机程序,其中,所述程序被处理器执行时实现如权利要求1-7中任一所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910414089.9A CN110110811A (zh) | 2019-05-17 | 2019-05-17 | 用于训练模型的方法和装置、用于预测信息的方法和装置 |
| CN201910414089.9 | 2019-05-17 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020233200A1 true WO2020233200A1 (zh) | 2020-11-26 |
Family
ID=67490889
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2020/078590 Ceased WO2020233200A1 (zh) | 2019-05-17 | 2020-03-10 | 用于训练模型的方法和装置、用于预测信息的方法和装置 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN110110811A (zh) |
| WO (1) | WO2020233200A1 (zh) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112348122A (zh) * | 2020-12-03 | 2021-02-09 | 苏州挚途科技有限公司 | 可行驶区域的标注方法、装置和电子设备 |
| CN112488943A (zh) * | 2020-12-02 | 2021-03-12 | 北京字跳网络技术有限公司 | 模型训练和图像去雾方法、装置、设备 |
| CN113380384A (zh) * | 2021-05-01 | 2021-09-10 | 首都医科大学宣武医院 | 人机协同训练医学影像标注模型的方法、标注方法及系统 |
| CN113554550A (zh) * | 2021-06-30 | 2021-10-26 | 北京百度网讯科技有限公司 | 图像处理模型的训练方法、装置、电子设备及存储介质 |
| CN114186090A (zh) * | 2021-12-08 | 2022-03-15 | 武汉中海庭数据技术有限公司 | 一种图像标注数据的智能质检方法及系统 |
| CN114265527A (zh) * | 2021-12-20 | 2022-04-01 | 中国农业银行股份有限公司 | 一种预测鼠标点击位置的方法、装置、介质及电子设备 |
| CN114398507A (zh) * | 2021-11-29 | 2022-04-26 | 中车工业研究院有限公司 | 一种工程图纸的标注系统及方法 |
| CN114707015A (zh) * | 2022-03-14 | 2022-07-05 | 同盾科技有限公司 | 一种商标标注方法、装置、电子设备以及存储介质 |
| CN116630627A (zh) * | 2023-06-25 | 2023-08-22 | 广东石油化工学院 | 一种记忆增强的图像分割方法和系统 |
Families Citing this family (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110110811A (zh) * | 2019-05-17 | 2019-08-09 | 北京字节跳动网络技术有限公司 | 用于训练模型的方法和装置、用于预测信息的方法和装置 |
| CN110647937A (zh) * | 2019-09-23 | 2020-01-03 | 北京百度网讯科技有限公司 | 标注模型训练方法及装置 |
| CN110737646A (zh) * | 2019-10-21 | 2020-01-31 | 北京明略软件系统有限公司 | 数据标注方法、装置、设备及可读存储介质 |
| CN111104479A (zh) * | 2019-11-13 | 2020-05-05 | 中国建设银行股份有限公司 | 一种数据标注的方法及装置 |
| CN111191724B (zh) * | 2019-12-31 | 2024-04-23 | 深圳市优必选科技股份有限公司 | 一种电梯图像标注方法、装置、计算机设备及存储介质 |
| CN111291618B (zh) * | 2020-01-13 | 2024-01-09 | 腾讯科技(深圳)有限公司 | 标注方法、装置、服务器和存储介质 |
| CN111476783B (zh) * | 2020-04-13 | 2022-11-15 | 腾讯科技(深圳)有限公司 | 基于人工智能的图像处理方法、装置、设备及存储介质 |
| CN113741884A (zh) * | 2020-05-29 | 2021-12-03 | 阿里巴巴集团控股有限公司 | 数据处理方法、装置及设备 |
| CN111985565B (zh) * | 2020-08-20 | 2023-01-10 | 上海风秩科技有限公司 | 图片分析方法和装置、存储介质及电子设备 |
| CN115700837A (zh) * | 2021-07-29 | 2023-02-07 | 脸萌有限公司 | 图像处理方法、图像处理设备和计算机可读介质 |
| CN114093516B (zh) * | 2021-11-26 | 2024-11-15 | 中科麦迪人工智能研究院(苏州)有限公司 | 模型训练方法、疾病风险预测方法、装置、设备及介质 |
| CN117132993A (zh) * | 2023-08-08 | 2023-11-28 | 中国银行股份有限公司 | 标注模型的训练方法、处理方法、装置、服务器和介质 |
| CN116778488A (zh) * | 2023-08-21 | 2023-09-19 | 中移(苏州)软件技术有限公司 | 图像处理方法、装置、终端设备、服务器及存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107871100A (zh) * | 2016-09-23 | 2018-04-03 | 北京眼神科技有限公司 | 人脸模型的训练方法和装置、人脸认证方法和装置 |
| CN108073914A (zh) * | 2018-01-10 | 2018-05-25 | 成都品果科技有限公司 | 一种动物面部关键点标注方法 |
| CN108921161A (zh) * | 2018-06-08 | 2018-11-30 | Oppo广东移动通信有限公司 | 模型训练方法、装置、电子设备和计算机可读存储介质 |
| CN109241890A (zh) * | 2018-08-24 | 2019-01-18 | 北京字节跳动网络技术有限公司 | 面部图像校正方法、装置及存储介质 |
| CN110110811A (zh) * | 2019-05-17 | 2019-08-09 | 北京字节跳动网络技术有限公司 | 用于训练模型的方法和装置、用于预测信息的方法和装置 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108573279A (zh) * | 2018-03-19 | 2018-09-25 | 精锐视觉智能科技(深圳)有限公司 | 图像标注方法及终端设备 |
| CN109460652B (zh) * | 2018-11-09 | 2022-05-20 | 连尚(新昌)网络科技有限公司 | 用于标注图像样本的方法、设备及计算机可读介质 |
-
2019
- 2019-05-17 CN CN201910414089.9A patent/CN110110811A/zh active Pending
-
2020
- 2020-03-10 WO PCT/CN2020/078590 patent/WO2020233200A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107871100A (zh) * | 2016-09-23 | 2018-04-03 | 北京眼神科技有限公司 | 人脸模型的训练方法和装置、人脸认证方法和装置 |
| CN108073914A (zh) * | 2018-01-10 | 2018-05-25 | 成都品果科技有限公司 | 一种动物面部关键点标注方法 |
| CN108921161A (zh) * | 2018-06-08 | 2018-11-30 | Oppo广东移动通信有限公司 | 模型训练方法、装置、电子设备和计算机可读存储介质 |
| CN109241890A (zh) * | 2018-08-24 | 2019-01-18 | 北京字节跳动网络技术有限公司 | 面部图像校正方法、装置及存储介质 |
| CN110110811A (zh) * | 2019-05-17 | 2019-08-09 | 北京字节跳动网络技术有限公司 | 用于训练模型的方法和装置、用于预测信息的方法和装置 |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112488943A (zh) * | 2020-12-02 | 2021-03-12 | 北京字跳网络技术有限公司 | 模型训练和图像去雾方法、装置、设备 |
| CN112488943B (zh) * | 2020-12-02 | 2024-02-02 | 北京字跳网络技术有限公司 | 模型训练和图像去雾方法、装置、设备 |
| CN112348122A (zh) * | 2020-12-03 | 2021-02-09 | 苏州挚途科技有限公司 | 可行驶区域的标注方法、装置和电子设备 |
| CN113380384A (zh) * | 2021-05-01 | 2021-09-10 | 首都医科大学宣武医院 | 人机协同训练医学影像标注模型的方法、标注方法及系统 |
| CN113554550A (zh) * | 2021-06-30 | 2021-10-26 | 北京百度网讯科技有限公司 | 图像处理模型的训练方法、装置、电子设备及存储介质 |
| CN113554550B (zh) * | 2021-06-30 | 2023-08-04 | 北京百度网讯科技有限公司 | 图像处理模型的训练方法、装置、电子设备及存储介质 |
| CN114398507A (zh) * | 2021-11-29 | 2022-04-26 | 中车工业研究院有限公司 | 一种工程图纸的标注系统及方法 |
| CN114186090A (zh) * | 2021-12-08 | 2022-03-15 | 武汉中海庭数据技术有限公司 | 一种图像标注数据的智能质检方法及系统 |
| CN114265527A (zh) * | 2021-12-20 | 2022-04-01 | 中国农业银行股份有限公司 | 一种预测鼠标点击位置的方法、装置、介质及电子设备 |
| CN114265527B (zh) * | 2021-12-20 | 2024-02-20 | 中国农业银行股份有限公司 | 一种预测鼠标点击位置的方法、装置、介质及电子设备 |
| CN114707015A (zh) * | 2022-03-14 | 2022-07-05 | 同盾科技有限公司 | 一种商标标注方法、装置、电子设备以及存储介质 |
| CN116630627A (zh) * | 2023-06-25 | 2023-08-22 | 广东石油化工学院 | 一种记忆增强的图像分割方法和系统 |
| CN116630627B (zh) * | 2023-06-25 | 2024-01-30 | 广东石油化工学院 | 一种记忆增强的图像分割方法和系统 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110110811A (zh) | 2019-08-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2020233200A1 (zh) | 用于训练模型的方法和装置、用于预测信息的方法和装置 | |
| US11490168B2 (en) | Method and apparatus for selecting video clip, server and medium | |
| CN109325213B (zh) | 用于标注数据的方法和装置 | |
| CN108416310B (zh) | 用于生成信息的方法和装置 | |
| WO2021088798A1 (zh) | 信息展示方法、装置、电子设备和计算机可读介质 | |
| JP2021108094A (ja) | 対話モデルを生成するための方法及び装置 | |
| WO2020238320A1 (zh) | 用于生成表情包的方法和装置 | |
| CN111382228B (zh) | 用于输出信息的方法和装置 | |
| WO2022037419A1 (zh) | 音频内容识别方法、装置、设备和计算机可读介质 | |
| WO2021057740A1 (zh) | 视频生成方法、装置、电子设备和计算机可读介质 | |
| WO2021223752A1 (zh) | 展示方法、装置和电子设备 | |
| CN113111684B (zh) | 神经网络模型的训练方法、装置和图像处理系统 | |
| WO2022007565A1 (zh) | 增强现实的图像处理方法、装置、电子设备及存储介质 | |
| CN117596452A (zh) | 视频生成方法、装置、介质及电子设备 | |
| CN111897976A (zh) | 一种虚拟形象合成方法、装置、电子设备及存储介质 | |
| CN109902446A (zh) | 用于生成信息预测模型的方法和装置 | |
| WO2023185391A1 (zh) | 交互式分割模型训练方法、标注数据生成方法及设备 | |
| CN117633228A (zh) | 模型训练方法和装置 | |
| CN110245334A (zh) | 用于输出信息的方法和装置 | |
| CN115310582A (zh) | 用于训练神经网络模型的方法和装置 | |
| JP7586919B2 (ja) | 情報を交換するための方法及び装置 | |
| US20250165274A1 (en) | Interface interaction method and apparatus, electronic device, and storage medium | |
| TW202312725A (zh) | 隨動拍攝方法、裝置、電腦可讀記錄媒體和電子設備 | |
| CN111797665B (zh) | 用于转换视频的方法和装置 | |
| CN112560690A (zh) | 基于多模态特征人物属性标注方法、装置、设备及介质 |
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: 20808815 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20808815 Country of ref document: EP Kind code of ref document: A1 |
|
| 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 24.03.2022) |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 20808815 Country of ref document: EP Kind code of ref document: A1 |