Add OUTPUT_NODE=True and return ui.images dict for preview
This commit is contained in:
BIN
__pycache__/__init__.cpython-311.pyc
Normal file
BIN
__pycache__/__init__.cpython-311.pyc
Normal file
Binary file not shown.
BIN
__pycache__/compass_image_loader.cpython-311.pyc
Normal file
BIN
__pycache__/compass_image_loader.cpython-311.pyc
Normal file
Binary file not shown.
@@ -105,7 +105,7 @@ class CompassImageLoader:
|
||||
RETURN_TYPES = ("IMAGE", "STRING", "STRING", "INT", "INT", "INT")
|
||||
RETURN_NAMES = ("IMAGE", "path", "direction", "width", "height", "frame_count")
|
||||
FUNCTION = "load_images"
|
||||
OUTPUT_NODE = False
|
||||
OUTPUT_NODE = True
|
||||
|
||||
def load_images(
|
||||
self, directory, direction, modality, frame=None, width=0, height=0,
|
||||
@@ -164,7 +164,7 @@ class CompassImageLoader:
|
||||
tensors[0] if len(tensors) == 1 else torch.cat(tensors, dim=0)
|
||||
)
|
||||
|
||||
return (image_batch, output_path, resolved_direction, final_w, final_h, len(selected_files))
|
||||
return {"ui": {"images": [{"filename": os.path.basename(output_path), "subfolder": "", "type": "input"}]}, "result": (image_batch, output_path, resolved_direction, final_w, final_h, len(selected_files))}
|
||||
|
||||
@classmethod
|
||||
def IS_CHANGED(
|
||||
|
||||
Reference in New Issue
Block a user