tx.putImageData(new ImageData(new Uint8ClampedArray(pixels), 512, 512), 0, 0);
        }

        const handleRunNetAndRenderResult = () => {
            document.getElementById("btnRunNet").disabled = true;
            const canvas = document.getElementById("canvas");
            ctx.clearRect(0, 0, canvas.width, canvas.height);

            const prevTitleValue = document.getElementById("modelDlTitle").innerHTML;
            document.getElementById("modelDlTitle").innerHTML = "Running model";

           