fix:image object has not attribute movedim in layerDiffuse

This commit is contained in:
yolain
2024-05-28 21:58:48 +08:00
parent 1913c65d6f
commit d9d597bf83
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -4331,7 +4331,7 @@ class samplerFull:
'loader_settings'] else (None, None, None)
method = layerDiffuse.get_layer_diffusion_method(pipe['loader_settings']['layer_diffusion_method'],
samp_blend_samples is not None)
images = pipe["images"].movedim(-1, 1) if "images" in pipe else None
images = pipe["images"].movedim(-1, 1) if "images" in pipe and pipe['images'] else None
weight = pipe['loader_settings']['layer_diffusion_weight'] if 'layer_diffusion_weight' in pipe[
'loader_settings'] else 1.0
samp_model, samp_positive, samp_negative = layerDiffuse.apply_layer_diffusion(samp_model, method, weight,
+4 -4
View File
@@ -84,10 +84,10 @@ function progressButtonPressed() {
restart_from_here(node.id).then(() => { send_message(node.id, [...node.selected, -1, ...node.anti_selected]); });
}
const maxlength = node.imgs.length;
if (FlowState.paused_here(node.id) && selected>0) {
node.send_button_widget.name = (selected>1) ? "Progress selected (" + selected + '/' + maxlength +")" : "Progress selected image";
} else if (FlowState.idle() && selected>0) {
node.send_button_widget.name = (selected>1) ? "Progress selected (" + selected + '/' + maxlength +")" : "Progress selected image as restart";
if (FlowState.paused_here(node.id) && selected.length>0) {
node.send_button_widget.name = (selected.length>1) ? "Progress selected (" + selected.length + '/' + maxlength +")" : "Progress selected image";
} else if (FlowState.idle() && selected.length>0) {
node.send_button_widget.name = (selected.length>1) ? "Progress selected (" + selected.length + '/' + maxlength +")" : "Progress selected image as restart";
}
else {
node.send_button_widget.name = "";