Compare commits

...

2 Commits

4 changed files with 13 additions and 5 deletions

View File

@ -27,6 +27,8 @@
- Support loading models in the safetensor format, for improved safety - Support loading models in the safetensor format, for improved safety
### Detailed changelog ### Detailed changelog
* 2.4.24 - 9 Jan 2022 - Urgent fix for failures on old/long-term-support browsers. Thanks @JeLuf.
* 2.4.23/22 - 29 Dec 2022 - Allow rolling back from the upcoming v2.5 change (in beta).
* 2.4.21 - 23 Dec 2022 - Speed up image creation, by removing a delay (regression) of 4-5 seconds between clicking the `Make Image` button and calling the server. * 2.4.21 - 23 Dec 2022 - Speed up image creation, by removing a delay (regression) of 4-5 seconds between clicking the `Make Image` button and calling the server.
* 2.4.20 - 22 Dec 2022 - `Pause All` button to pause all the pending tasks. Thanks @JeLuf * 2.4.20 - 22 Dec 2022 - `Pause All` button to pause all the pending tasks. Thanks @JeLuf
* 2.4.20 - 22 Dec 2022 - `Undo`/`Redo` buttons in the image editor. Thanks @JeLuf * 2.4.20 - 22 Dec 2022 - `Undo`/`Redo` buttons in the image editor. Thanks @JeLuf

View File

@ -25,7 +25,7 @@
<div id="logo"> <div id="logo">
<h1> <h1>
Stable Diffusion UI Stable Diffusion UI
<small>v2.4.23 <span id="updateBranchLabel"></span></small> <small>v2.4.24 <span id="updateBranchLabel"></span></small>
</h1> </h1>
</div> </div>
<div id="server-status"> <div id="server-status">

View File

@ -839,10 +839,13 @@
* @memberof Task * @memberof Task
*/ */
async post(timeout=-1) { async post(timeout=-1) {
performance.mark('make-render-request') if (typeof performance == "object" && performance.mark && performance.measure) {
if (performance.getEntriesByName('click-makeImage', 'mark').length > 0) { performance.mark('make-render-request')
console.log('delay between clicking and making the server request:', performance.measure('diff', 'click-makeImage', 'make-render-request').duration + ' ms') 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')
}
} }
let jsonResponse = await super.post('/render', timeout) let jsonResponse = await super.post('/render', timeout)
if (typeof jsonResponse?.task !== 'number') { if (typeof jsonResponse?.task !== 'number') {
console.warn('Endpoint error response: ', jsonResponse) console.warn('Endpoint error response: ', jsonResponse)

View File

@ -429,7 +429,10 @@ function getUncompletedTaskEntries() {
} }
function makeImage() { function makeImage() {
performance.mark('click-makeImage') if (typeof performance == "object" && performance.mark) {
performance.mark('click-makeImage')
}
if (!SD.isServerAvailable()) { if (!SD.isServerAvailable()) {
alert('The server is not available.') alert('The server is not available.')
return return