mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 07:05:43 -03:00
refactor: Rename to_comfyui_format method to to_dict and update references in save_image.py
This commit is contained in:
@@ -157,7 +157,7 @@ class MetadataProcessor:
|
||||
return params
|
||||
|
||||
@staticmethod
|
||||
def to_comfyui_format(metadata):
|
||||
def to_dict(metadata):
|
||||
"""Convert extracted metadata to the ComfyUI output.json format"""
|
||||
params = MetadataProcessor.extract_generation_params(metadata)
|
||||
|
||||
@@ -171,5 +171,5 @@ class MetadataProcessor:
|
||||
@staticmethod
|
||||
def to_json(metadata):
|
||||
"""Convert metadata to JSON string"""
|
||||
params = MetadataProcessor.to_comfyui_format(metadata)
|
||||
params = MetadataProcessor.to_dict(metadata)
|
||||
return json.dumps(params, indent=4)
|
||||
|
||||
@@ -167,8 +167,6 @@ class LoraLoaderManagerExtractor(NodeMetadataExtractor):
|
||||
"node_id": node_id
|
||||
}
|
||||
|
||||
print(f"Active LoRAs for node {node_id}: {active_loras}")
|
||||
|
||||
# Registry of node-specific extractors
|
||||
NODE_EXTRACTORS = {
|
||||
"CheckpointLoaderSimple": CheckpointLoaderExtractor,
|
||||
|
||||
Reference in New Issue
Block a user