Compare commits

...

8 Commits

Author SHA1 Message Date
Extraltodeus
8df681b4a2
Merge ccfd4088d0 into 1a72bf2046 2026-01-19 12:13:02 +03:00
comfyanonymous
1a72bf2046
Readme update. (#11957)
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.10, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.11, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-stable (12.1, , linux, 3.12, [self-hosted Linux], stable) (push) Waiting to run
Full Comfy CI Workflow Runs / test-unix-nightly (12.1, , linux, 3.11, [self-hosted Linux], nightly) (push) Waiting to run
Execution Tests / test (macos-latest) (push) Waiting to run
Execution Tests / test (ubuntu-latest) (push) Waiting to run
Execution Tests / test (windows-latest) (push) Waiting to run
Test server launches without errors / test (push) Waiting to run
Unit Tests / test (macos-latest) (push) Waiting to run
Unit Tests / test (ubuntu-latest) (push) Waiting to run
Unit Tests / test (windows-2022) (push) Waiting to run
2026-01-18 19:53:43 -08:00
Extraltodeus
ccfd4088d0
Merge branch 'Comfy-Org:master' into master 2026-01-14 01:19:29 +01:00
Extraltodeus
9e2f5e41b7
Merge branch 'comfyanonymous:master' into master 2026-01-02 01:18:19 +01:00
Extraltodeus
5e20b843a5
Merge branch 'comfyanonymous:master' into master 2025-12-18 00:35:05 +01:00
Extraltodeus
277e46473d
Merge branch 'comfyanonymous:master' into master 2025-12-07 17:24:23 +01:00
Extraltodeus
06c322ad2d
Add legacy frontend compatibility argument 2025-12-05 20:45:32 +01:00
Extraltodeus
1d0b1b9d64
Implement V3 to V1 schema COMBO conversion function
Add function to convert V3 schema to V1 for compatibility
2025-12-05 20:44:51 +01:00
3 changed files with 38 additions and 3 deletions

View File

@ -108,7 +108,7 @@ See what ComfyUI can do with the [example workflows](https://comfyanonymous.gith
- [LCM models and Loras](https://comfyanonymous.github.io/ComfyUI_examples/lcm/)
- Latent previews with [TAESD](#how-to-show-high-quality-previews)
- Works fully offline: core will never download anything unless you want to.
- Optional API nodes to use paid models from external providers through the online [Comfy API](https://docs.comfy.org/tutorials/api-nodes/overview).
- Optional API nodes to use paid models from external providers through the online [Comfy API](https://docs.comfy.org/tutorials/api-nodes/overview) disable with: `--disable-api-nodes`
- [Config file](extra_model_paths.yaml.example) to set the search paths for models.
Workflow examples can be found on the [Examples page](https://comfyanonymous.github.io/ComfyUI_examples/)
@ -212,7 +212,7 @@ Python 3.14 works but you may encounter issues with the torch compile node. The
Python 3.13 is very well supported. If you have trouble with some custom node dependencies on 3.13 you can try 3.12
torch 2.4 and above is supported but some features might only work on newer versions. We generally recommend using the latest major version of pytorch with the latest cuda version unless it is less than 2 weeks old.
torch 2.4 and above is supported but some features and optimizations might only work on newer versions. We generally recommend using the latest major version of pytorch with the latest cuda version unless it is less than 2 weeks old.
### Instructions:
@ -229,7 +229,7 @@ AMD users can install rocm and pytorch with pip if you don't have it already ins
```pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.4```
This is the command to install the nightly with ROCm 7.0 which might have some performance improvements:
This is the command to install the nightly with ROCm 7.1 which might have some performance improvements:
```pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm7.1```

View File

@ -216,6 +216,12 @@ parser.add_argument(
help="The local filesystem path to the directory where the frontend is located. Overrides --front-end-version.",
)
parser.add_argument(
"--legacy-frontend-compat",
action="store_true",
help="Convert V3 node schemas to V1 format for compatibility with old frontends"
)
parser.add_argument("--user-directory", type=is_valid_directory, default=None, help="Set the ComfyUI user directory with an absolute path. Overrides --base-directory.")
parser.add_argument("--enable-compress-response-body", action="store_true", help="Enable compressing response body.")

View File

@ -191,6 +191,33 @@ def create_block_external_middleware():
return block_external_middleware
def convert_v3_to_v1_schema(input_types):
"""
Convert V3 schema (Combo objects) to V1 schema (simple tuples/lists)
for compatibility with old frontends
"""
converted = {}
for category, inputs in input_types.items():
converted[category] = {}
for input_name, input_spec in inputs.items():
if isinstance(input_spec, tuple) and len(input_spec) > 1 and input_spec[0] == 'COMBO':
first_elem = input_spec[1]
if isinstance(first_elem, dict) and 'options' in first_elem:
adapted_input_spec = (first_elem['options'], {})
first_elem.pop('options')
adapted_input_spec[1].update(first_elem)
converted[category][input_name] = adapted_input_spec
else:
# Already V1 format, pass through
converted[category][input_name] = input_spec
else:
# Pass through anything else unchanged
converted[category][input_name] = input_spec
return converted
class PromptServer():
def __init__(self, loop):
@ -695,6 +722,8 @@ class PromptServer():
for x in nodes.NODE_CLASS_MAPPINGS:
try:
out[x] = node_info(x)
if args.legacy_frontend_compat:
out[x]['input'] = convert_v3_to_v1_schema(out[x]['input'])
except Exception:
logging.error(f"[ERROR] An error occurred while retrieving information for the '{x}' node.")
logging.error(traceback.format_exc())