Skip to content

Commit 6f5ba6e

Browse files
committed
update
1 parent dea22e6 commit 6f5ba6e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@
1111
}
1212

1313

14-
print("\033[34mComfyUI Custom Nodes: \033[92mLoaded Image Stitching Node\033[0m")
14+
print("\033[34mComfyUI Custom Nodes: \033[92mLoaded Image Stitching Node\033[0m")
15+
16+
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']

nodes/nodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def INPUT_TYPES(cls):
2525
def stitch_images(self, images, device):
2626
# Verifica se recebeu pelo menos duas imagens
2727
if len(images) < 2:
28-
raise ValueError("São necessárias pelo menos duas imagens para o stitching.")
28+
raise ValueError("At least two images are required for stitching.")
2929

3030
# Verifica se o dispositivo especificado está disponível
3131
device = torch.device(device if torch.cuda.is_available() and "cuda" in device else "cpu")
@@ -42,7 +42,7 @@ def stitch_images(self, images, device):
4242

4343
# Verifica se o stitching foi bem-sucedido
4444
if status != cv2.Stitcher_OK:
45-
raise RuntimeError(f"Erro ao fazer o stitching: {status}")
45+
raise RuntimeError(f"Error when stitching: {status}")
4646

4747
# Converte a imagem resultante para um tensor que o ComfyUI pode usar
4848
pano_pil = Image.fromarray(cv2.cvtColor(pano, cv2.COLOR_BGR2RGB))

0 commit comments

Comments
 (0)