diff --git a/examples/progress/index.js b/examples/progress/index.js index 897e3a359..5d5df46e1 100644 --- a/examples/progress/index.js +++ b/examples/progress/index.js @@ -15,6 +15,7 @@ button.onclick = () => { .upscale(img, { patchSize: 2, padding: 2, + awaitNextFrame: true, progress: (amount) => { progressLabel.innerText = `${(amount * 100).toFixed(2)}%`; }, diff --git a/scripts/start-example.ts b/scripts/start-example.ts index 9ea0d02cb..b621bb4d5 100644 --- a/scripts/start-example.ts +++ b/scripts/start-example.ts @@ -88,7 +88,7 @@ const getArgs = async (): Promise => { skipUpscalerBuild: { type: 'boolean' }, }).help().argv; - const exampleDirectory = await getString('Which hdf5 model do you want to build?', argv._[0]); + const exampleDirectory = await getString('Which example do you want to start?', argv._[0]); return { exampleDirectory, skipUpscalerBuild: argv.skipUpscalerBuild }; }