Merge branch 'main' into beta

This commit is contained in:
cmdr2 2023-02-06 19:42:24 +05:30 committed by GitHub
commit a0a58bcfa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View File

@ -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" (

0
scripts/on_sd_start.sh Executable file → Normal file
View File

View File

@ -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.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)