2.9 KiB
Meld Image Loader (MeldImageLoader)
A node that loads an image and automatically extracts embedded generation metadata (prompts, model, sampler settings, etc.). It also attempts to load the checkpoint model used based on the metadata.
Overview
When you load an image generated by ComfyUI (or A1111, etc.) by dragging and dropping it, this node performs the following processing in addition to simply loading the image data:
- Metadata Parsing: Parses embedded Workflow JSON, Prompt JSON, or A1111 format text information.
- Parameter Extraction: Extracts generation parameters such as Seed, Steps, CFG, Sampler, Scheduler, and Resolution.
- Automatic Model Loading: Attempts to load the model (MODEL, CLIP, VAE) based on the checkpoint name recorded in the metadata.
- Prompt Extraction: Outputs positive/negative prompts as strings.
This significantly streamlines the process of reusing previously generated images or fine-tuning based on their parameters.
Inputs
Required
| Name | Type | Description |
|---|---|---|
| image | COMBO |
Select the image file to load. You can also upload by dragging and dropping the image onto the node. |
Outputs
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE |
The loaded image data (Tensor). |
| MODEL | MODEL |
The model detected and loaded from metadata. None if not found. |
| CLIP | CLIP |
The CLIP detected and loaded from metadata. None if not found. |
| VAE | VAE |
The VAE detected and loaded from metadata. None if not found. |
| positive | STRING |
The extracted positive prompt. |
| negative | STRING |
The extracted negative prompt. |
| summary | STRING |
A summary text of all extracted parameters (including logs). Can be viewed with a Show Text node. |
| base_settings | BASE_SETTINGS |
A dictionary data grouping basic settings such as Seed, Steps, CFG, Sampler name, etc. Can be extracted into individual values using Meld Settings Unpacker etc. |
Usage & Tips
-
Parameter Extraction Priority: Metadata is parsed with the following priority:
- ComfyUI Workflow JSON: Contains the most detailed information.
- ComfyUI Prompt JSON: Used if generated via API, etc.
- A1111 Info Text: For images generated with Automatic1111 WebUI.
- Default: Default values are used if nothing is found.
-
About Model Loading: The model is loaded if the model name (checkpoint name) described in the metadata exists under
models/checkpointsin the current ComfyUI environment. Even if the filename does not match exactly, it may try to find and load a similar name, but success is not guaranteed. -
Using base_settings: The output
base_settingscan be connected to theMeld Settings Unpackernode to be extracted as individual INT/FLOAT/STRING values such asseed,steps,cfg.