images/keypoint-custom-labels.liquid.html [39:61]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }); function populateLabelsSection() { labelsSection.innerHTML = ''; annotator.labels.forEach(function(label) { const labelContainer = document.createElement('div'); labelContainer.innerHTML = label + ' (Delete)'; labelContainer.querySelector('a').onclick = function() { annotator.labels = annotator.labels.filter(function(l) { return l !== label; }); populateLabelsSection(); }; labelsSection.appendChild(labelContainer); }); } addLabel.onclick = function() { annotator.labels = annotator.labels.concat([customLabel.value]); customLabel.value = null; populateLabelsSection(); }; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - images/semantic-segmentation-custom-labels.liquid.html [39:61]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - }); function populateLabelsSection() { labelsSection.innerHTML = ''; annotator.labels.forEach(function(label) { const labelContainer = document.createElement('div'); labelContainer.innerHTML = label + ' (Delete)'; labelContainer.querySelector('a').onclick = function() { annotator.labels = annotator.labels.filter(function(l) { return l !== label; }); populateLabelsSection(); }; labelsSection.appendChild(labelContainer); }); } addLabel.onclick = function() { annotator.labels = annotator.labels.concat([customLabel.value]); customLabel.value = null; populateLabelsSection(); }; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -