forked from extern/easydiffusion
Merge branch 'beta' into zoom
This commit is contained in:
commit
394cb72e46
@ -146,6 +146,9 @@ def make_step_callback(
|
||||
def update_temp_img(x_samples, task_temp_images: list):
|
||||
partial_images = []
|
||||
images = latent_samples_to_images(context, x_samples)
|
||||
if task_data.block_nsfw:
|
||||
images = apply_filters(context, "nsfw_checker", images)
|
||||
|
||||
for i, img in enumerate(images):
|
||||
buf = img_to_buffer(img, output_format="JPEG")
|
||||
|
||||
|
@ -501,8 +501,8 @@ async function init() {
|
||||
|
||||
SD.init({
|
||||
events: {
|
||||
statusChange: setServerStatus
|
||||
, idle: onIdle
|
||||
statusChange: setServerStatus,
|
||||
idle: onIdle
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -302,7 +302,7 @@ function showImages(reqBody, res, outputContainer, livePreview) {
|
||||
}
|
||||
if(allHidden === true) {
|
||||
const req = htmlTaskMap.get(parentTaskContainer)
|
||||
if(!req.isProcessing || req.batchesDone == req.batchCount) {parentTaskContainer.classList.add("displayNone")}
|
||||
if(!req.isProcessing || req.batchesDone == req.batchCount) {parentTaskContainer.parentNode.removeChild(parentTaskContainer)}
|
||||
}
|
||||
})
|
||||
})
|
||||
@ -327,9 +327,6 @@ function showImages(reqBody, res, outputContainer, livePreview) {
|
||||
imageExpandBtn.addEventListener('click', function() {
|
||||
imageModal(imageElem.src)
|
||||
})
|
||||
imageElem.addEventListener('click', function() {
|
||||
imageModal(this.src)
|
||||
})
|
||||
|
||||
const req = Object.assign({}, reqBody, {
|
||||
seed: result?.seed || reqBody.seed
|
||||
|
Loading…
Reference in New Issue
Block a user