diff --git a/README.md b/README.md
index ee68e8bb82c..a3bd3ba0ada 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,8 @@
[github-downloads-latest-shield]: https://img.shields.io/github/downloads/comfyanonymous/ComfyUI/latest/total?style=flat&label=downloads%40latest
[github-downloads-link]: https://github.com/comfyanonymous/ComfyUI/releases
-
+
+
ComfyUI is the AI creation engine for visual professionals who demand control over every model, every parameter, and every output. Its powerful and modular node graph interface empowers creatives to generate images, videos, 3D models, audio, and more...
diff --git a/comfy_extras/nodes_compositing.py b/comfy_extras/nodes_compositing.py
index 3bc9fccb3e8..5b44237348d 100644
--- a/comfy_extras/nodes_compositing.py
+++ b/comfy_extras/nodes_compositing.py
@@ -202,14 +202,11 @@ def define_schema(cls):
@classmethod
def execute(cls, image: torch.Tensor, alpha: torch.Tensor) -> io.NodeOutput:
- batch_size = min(len(image), len(alpha))
- out_images = []
-
+ batch_size = max(len(image), len(alpha))
alpha = 1.0 - resize_mask(alpha, image.shape[1:])
- for i in range(batch_size):
- out_images.append(torch.cat((image[i][:,:,:3], alpha[i].unsqueeze(2)), dim=2))
-
- return io.NodeOutput(torch.stack(out_images))
+ alpha = comfy.utils.repeat_to_batch_size(alpha, batch_size)
+ image = comfy.utils.repeat_to_batch_size(image, batch_size)
+ return io.NodeOutput(torch.cat((image[..., :3], alpha.unsqueeze(-1)), dim=-1))
class CompositingExtension(ComfyExtension):
diff --git a/server.py b/server.py
index 881da8e66ec..2f3b438bbd5 100644
--- a/server.py
+++ b/server.py
@@ -1,3 +1,4 @@
+import errno
import os
import sys
import asyncio
@@ -1245,7 +1246,13 @@ async def start_multi_address(self, addresses, call_on_start=None, verbose=True)
address = addr[0]
port = addr[1]
site = web.TCPSite(runner, address, port, ssl_context=ssl_ctx)
- await site.start()
+ try:
+ await site.start()
+ except OSError as e:
+ if e.errno == errno.EADDRINUSE:
+ logging.error(f"Port {port} is already in use on address {address}. Please close the other application or use a different port with --port.")
+ raise SystemExit(1)
+ raise
if not hasattr(self, 'address'):
self.address = address #TODO: remove this