Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with Upscaler Node #98

Open
ZenRepublic opened this issue Jan 21, 2025 · 1 comment
Open

Doesn't work with Upscaler Node #98

ZenRepublic opened this issue Jan 21, 2025 · 1 comment

Comments

@ZenRepublic
Copy link

this the error:

Traceback (most recent call last):
  File "C:\pinokio\api\comfy.git\app\custom_nodes\comfyui-to-python-extension\__init__.py", line 50, in save_as_script
    ComfyUItoPython(workflow=workflow, output_file=sio)
  File "C:\pinokio\api\comfy.git\app\custom_nodes\comfyui-to-python-extension\comfyui_to_python.py", line 544, in __init__
    self.execute()
  File "C:\pinokio\api\comfy.git\app\custom_nodes\comfyui-to-python-extension\comfyui_to_python.py", line 573, in execute
    generated_code = code_generator.generate_workflow(
  File "C:\pinokio\api\comfy.git\app\custom_nodes\comfyui-to-python-extension\comfyui_to_python.py", line 290, in generate_workflow
    final_code = self.assemble_python_code(
  File "C:\pinokio\api\comfy.git\app\custom_nodes\comfyui-to-python-extension\comfyui_to_python.py", line 413, in assemble_python_code
    final_code = black.format_str(final_code, mode=black.Mode())
  File "src\black\__init__.py", line 1204, in format_str
  File "src\black\__init__.py", line 1218, in _format_str_once
  File "src\black\parsing.py", line 98, in lib2to3_parse
black.parsing.InvalidInput: Cannot parse: 181:116:                      imageupscalewithmodel_42:1 = imageupscalewithmodel.upscale(upscale_model=get_value_at_index(upscalemodelloader_42:0, 0), image=get_value_at_index(vaedecode_33, 0))

removing the upscaler nodes from workflow exports correctly

btw works with default comfy core upscaler

@mbylstra
Copy link

mbylstra commented Apr 4, 2025

You can try: #114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants