diff --git a/scripts/on_sd_start.bat b/scripts/on_sd_start.bat index dc7e1a65..e22d1c0e 100644 --- a/scripts/on_sd_start.bat +++ b/scripts/on_sd_start.bat @@ -79,6 +79,8 @@ if "%ERRORLEVEL%" EQU "0" ( ) ) +set PATH=C:\Windows\System32;%PATH% + @rem install/upgrade sdkit call python ..\scripts\check_modules.py sdkit sdkit.models ldm transformers numpy antlr4 gfpgan realesrgan if "%ERRORLEVEL%" EQU "0" ( diff --git a/scripts/on_sd_start.sh b/scripts/on_sd_start.sh old mode 100755 new mode 100644 diff --git a/ui/media/js/engine.js b/ui/media/js/engine.js index 0d51fdf4..25c4ba2e 100644 --- a/ui/media/js/engine.js +++ b/ui/media/js/engine.js @@ -835,11 +835,10 @@ * @memberof Task */ async post(timeout=-1) { - if (typeof performance == "object" && performance.mark && performance.measure) { - performance.mark('make-render-request') - if (performance.getEntriesByName('click-makeImage', 'mark').length > 0) { - console.log('delay between clicking and making the server request:', performance.measure('diff', 'click-makeImage', 'make-render-request').duration + ' ms') - } + performance.mark('make-render-request') + if (performance.getEntriesByName('click-makeImage', 'mark').length > 0) { + performance.measure('diff', 'click-makeImage', 'make-render-request') + console.log('delay between clicking and making the server request:', performance.getEntriesByName('diff', 'measure')[0].duration + ' ms') } let jsonResponse = await super.post('/render', timeout)