mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-06 09:47:35 +08:00
fix torch.cat requiring inputs to all be same dimensions (#12673)
This commit is contained in:
parent
35e9fce775
commit
0a7f8e11b6
@ -865,14 +865,15 @@ class GLSLShader(io.ComfyNode):
|
|||||||
cls, image_list: list[torch.Tensor], output_batch: torch.Tensor
|
cls, image_list: list[torch.Tensor], output_batch: torch.Tensor
|
||||||
) -> dict[str, list]:
|
) -> dict[str, list]:
|
||||||
"""Build UI output with input and output images for client-side shader execution."""
|
"""Build UI output with input and output images for client-side shader execution."""
|
||||||
combined_inputs = torch.cat(image_list, dim=0)
|
input_images_ui = []
|
||||||
input_images_ui = ui.ImageSaveHelper.save_images(
|
for img in image_list:
|
||||||
combined_inputs,
|
input_images_ui.extend(ui.ImageSaveHelper.save_images(
|
||||||
filename_prefix="GLSLShader_input",
|
img,
|
||||||
folder_type=io.FolderType.temp,
|
filename_prefix="GLSLShader_input",
|
||||||
cls=None,
|
folder_type=io.FolderType.temp,
|
||||||
compress_level=1,
|
cls=None,
|
||||||
)
|
compress_level=1,
|
||||||
|
))
|
||||||
|
|
||||||
output_images_ui = ui.ImageSaveHelper.save_images(
|
output_images_ui = ui.ImageSaveHelper.save_images(
|
||||||
output_batch,
|
output_batch,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user