doc-exports/docs/modelarts/umn/datalabel-modelarts_0020.html
Lai, Weijian 6aa966a79a ModelArts UMN 24.3.0 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2024-11-02 09:04:52 +00:00

31 lines
12 KiB
HTML

<a name="EN-US_TOPIC_0000002079180333"></a><a name="EN-US_TOPIC_0000002079180333"></a>
<h1 class="topictitle1">Confirming Hard Examples</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_p4721145914215">In a labeling task that processes a large amount of data, auto labeling results cannot be directly used for training because the labeled images are insufficient at the initial stage of labeling. It takes a lot of time and manpower to adjust and confirm all unlabeled data one by one. To accelerate labeling progress, ModelArts embeds an auto hard example detection function for labeling unlabeled data in an auto labeling task. This function provides suggestions on labeling priorities for remaining unlabeled images. The auto labeling result of an image with high labeling priority is not as expected. Therefore, this case is called a hard example.</p>
<p id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_p17619111364016">The auto hard example detection function is used to automatically label hard examples during auto labeling and data collection and filtering. Further confirm and label hard example data, and add labeling results to the training dataset to obtain a trained model with higher precision. No manual intervention is required for hard example detection, and you only need to confirm and modify the labeled data, improving data management and labeling efficiency. In addition, you can supplement data similar to hard examples to improve the variety of the dataset and further improve the model training precision.</p>
<p id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_p837175344116">Hard example management involves three scenarios.</p>
<ul id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_ul15477162084218"><li id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_li3477120144213"><a href="#EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_section12530766412">Confirming Hard Examples After Auto Labeling</a></li><li id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_li18939139114216"><a href="#EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_section176081753173911">Labeling Data in a Dataset as Hard Examples</a></li></ul>
<div class="note" id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_note390882611449"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_p684262974410">Only datasets of image classification and object detection types support the auto hard example detection function.</p>
</div></div>
<div class="section" id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_section12530766412"><a name="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_section12530766412"></a><a name="en-us_topic_0000001185265241_en-us_topic_0217235047_section12530766412"></a><h4 class="sectiontitle">Confirming Hard Examples After Auto Labeling</h4><p id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_p1961164503320">During the execution of an auto labeling task, ModelArts automatically detects and labels hard examples. After the auto labeling task is complete, the labeling results of hard examples are displayed in the <strong id="EN-US_TOPIC_0000002079180333__b121242381494818">To Be Confirmed</strong> tab. Modify hard example data and confirm the labeling result.</p>
<ol id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_ol1694618472437"><li id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_li05471715152412">Log in to the ModelArts management console. In the navigation pane, choose <strong id="EN-US_TOPIC_0000002079180333__b180944687594818">Data Management</strong> &gt; <strong id="EN-US_TOPIC_0000002079180333__b108622995594818">Label Data</strong>. On the <strong id="EN-US_TOPIC_0000002079180333__b127901095794818">Data Labeling</strong> page, click <strong id="EN-US_TOPIC_0000002079180333__b39582834394818">My Creations</strong>.</li><li id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_li3463205211243">In the labeling job list, select a labeling job of the object detection or image classification type and click the labeling job name to go to the labeling job details page.</li><li id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_li564381219251">In the <strong id="EN-US_TOPIC_0000002079180333__b214592601794818">Labeling</strong> tab, click <strong id="EN-US_TOPIC_0000002079180333__b109297466894818">To Be Confirmed</strong> to check and confirm hard examples.<div class="p" id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_p148799504225"><div class="note" id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_note4431144104411"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_p164311844104416">Labeling data is displayed in the <span class="wintitle" id="EN-US_TOPIC_0000002079180333__wintitle62950866894818"><b>To Be Confirmed</b></span> tab only after the auto labeling task is complete. Otherwise, no data is available in the tab. For details about auto labeling, see <a href="datalabel-modelarts_0019.html">Creating an Auto Labeling Job</a>.</p>
</div></div>
<ul id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_ul3362171414614"><li id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_li33622146467">For labeling jobs of the object detection type<p id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_p176409308466"><a name="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_li33622146467"></a><a name="en-us_topic_0000001185265241_en-us_topic_0217235047_li33622146467"></a>In the <span class="wintitle" id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_wintitle166546572025"><b>To Be Confirmed</b></span> tab, click an image to expand its labeling details. Check whether labeling information is correct, for example, whether the label is correct and whether the target bounding box is correctly added to the right position. If the auto labeling result is inaccurate, manually adjust the label or target bounding box and click <span class="uicontrol" id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_uicontrol10851161175315"><b>Labeled</b></span>. Then, the re-labeled data is displayed in the <strong id="EN-US_TOPIC_0000002079180333__b22601452394818">Labeled</strong> tab.</p>
<p id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_p16408183314530">If the target frame is in the incorrect position, the data need to be labeled again. Delete the original target frame. After manual adjustment, click <span class="uicontrol" id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_uicontrol1899665385510"><b>Labeled</b></span> to confirm the hard example.</p>
</li><li id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_li11832620174618">For labeling jobs of the image classification type<p id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_p17156174215118"><a name="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_li11832620174618"></a><a name="en-us_topic_0000001185265241_en-us_topic_0217235047_li11832620174618"></a>In the <span class="wintitle" id="EN-US_TOPIC_0000002079180333__wintitle77650232994818"><b>To Be Confirmed</b></span> tab, check whether labels added to images with the <strong id="EN-US_TOPIC_0000002079180333__b103270606694818">Hard example</strong> mark are correct. Select the images that are incorrectly labeled, delete the incorrect labels, and add correct labels in <span class="parmname" id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_parmname1290515114410"><b>Label</b></span> on the right. Click <span class="uicontrol" id="EN-US_TOPIC_0000002079180333__uicontrol204363118394818"><b>OK</b></span>. The selected images and its labeling details are displayed in the <strong id="EN-US_TOPIC_0000002079180333__b125239369494818">Labeled</strong> tab.</p>
<p id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_p107541881869">The selected images are incorrectly labeled. Delete the incorrect labels on the right, add a label in <strong id="EN-US_TOPIC_0000002079180333__b16145153565910">Label</strong>, and click <span class="uicontrol" id="EN-US_TOPIC_0000002079180333__uicontrol414503575913"><b>OK</b></span> to confirm the hard examples.</p>
</li></ul>
</div>
</li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_section176081753173911"><a name="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_section176081753173911"></a><a name="en-us_topic_0000001185265241_en-us_topic_0217235047_section176081753173911"></a><h4 class="sectiontitle">Labeling Data in a Dataset as Hard Examples</h4><p id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_p1174281174911">In a labeling job, labeled or unlabeled image data can be labeled as hard examples. Data labeled as hard examples can be used to improve model precision through built-in rules during subsequent model training.</p>
<ol id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_ol4908523161619"><li id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_li20908323161614">Log in to the ModelArts management console. In the navigation pane, choose <strong id="EN-US_TOPIC_0000002079180333__b80088934994819">Data Management</strong> &gt; <strong id="EN-US_TOPIC_0000002079180333__b85348298394819">Label Data</strong>. On the <strong id="EN-US_TOPIC_0000002079180333__b132988765494819">Data Labeling</strong> page, click <strong id="EN-US_TOPIC_0000002079180333__b4969903094819">My Creations</strong>.</li><li id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_li4908162341614">In the labeling job list, select a labeling job of the object detection or image classification type and click the labeling job name to go to the labeling job details page.</li><li id="EN-US_TOPIC_0000002079180333__en-us_topic_0000001185265241_en-us_topic_0217235047_li10908162371615">On the labeling job details page, click the <span class="wintitle" id="EN-US_TOPIC_0000002079180333__wintitle156054366394819"><b>Labeled</b></span>, <span class="wintitle" id="EN-US_TOPIC_0000002079180333__wintitle207625992894819"><b>Unlabeled</b></span>, or <span class="wintitle" id="EN-US_TOPIC_0000002079180333__wintitle167940744994819"><b>All</b></span> tab, select the images to be labeled as hard examples, and choose <span class="uicontrol" id="EN-US_TOPIC_0000002079180333__uicontrol185238689394819"><b>Batch Process Hard Examples</b></span> &gt; <span class="uicontrol" id="EN-US_TOPIC_0000002079180333__uicontrol32907759094819"><b>Confirm Hard Example</b></span>. After the labeling is complete, a <strong id="EN-US_TOPIC_0000002079180333__b83795620194819">Hard example</strong> mark will be displayed in the upper right corner of a preview image.</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="datalabel-modelarts_0018.html">Auto Labeling</a></div>
</div>
</div>