diff --git a/javascript/imageViewer.js b/javascript/imageViewer.js index 525c15034..8d22b66f2 100644 --- a/javascript/imageViewer.js +++ b/javascript/imageViewer.js @@ -199,7 +199,7 @@ function initImageViewer() { const modalNext = document.createElement('a'); modalNext.className = 'modalNext'; modalNext.innerHTML = '❯'; - modalNext.addEventListener('click', () => modalImageSwitch(-1), true); + modalNext.addEventListener('click', () => modalImageSwitch(1), true); // modalNext.addEventListener('keydown', modalKeyHandler, true); const modalControls = document.createElement('div'); diff --git a/modules/sd_models.py b/modules/sd_models.py index 4bfa6d65b..0cc522410 100644 --- a/modules/sd_models.py +++ b/modules/sd_models.py @@ -819,14 +819,14 @@ class DiffusersTaskType(Enum): def set_diffuser_pipe(pipe, new_pipe_type): wrapper_pipe = None - if pipe.__class__ == PriorPipeline: - wrapper_pipe = pipe - pipe = pipe.main - sd_checkpoint_info = pipe.sd_checkpoint_info sd_model_checkpoint = pipe.sd_model_checkpoint sd_model_hash = pipe.sd_model_hash + if pipe.__class__ == PriorPipeline: + wrapper_pipe = pipe + pipe = pipe.main + pipe_name = pipe.__class__.__name__ pipe_name = pipe_name.replace("Img2Img", "").replace("Inpaint", "") new_pipe_cls_str = None