Update nodes/SegformerNode.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Craig Wright
2025-03-26 21:44:41 +00:00
committed by GitHub
co-authored by Copilot
parent 877dd93b0c
commit 8fb9b27ea1
+1 -1
View File
@@ -289,7 +289,7 @@ class SegformerNode:
import traceback
print(f"Error in segmentation: {str(e)}")
print(f"Traceback: {traceback.format_exc()}")
return {"result": (image, torch.zeros_like(image[0, :, :, 0]), f"Error: {str(e)}", image),
return {"result": (image, torch.zeros_like(image[0, :, :]), f"Error: {str(e)}", image),
"ui": {"images": [image]} if show_on_node else {}}
class SegformerNodeMasks: