CLI arg image for type LoadImage 1
CLI arg image for type LoadImage 2
CLI arg sampler_name for type KSamplerSelect 3
CLI arg noise_seed for type RandomNoise 4
CLI arg unet_name for type UNETLoader 5
CLI arg weight_dtype for type UNETLoader 6
CLI arg vae_name for type VAELoader 7
CLI arg clip_name for type CLIPLoader 8
CLI arg type for type CLIPLoader 9
CLI arg upscale_method for type ImageScaleToTotalPixels 10
CLI arg megapixels for type ImageScaleToTotalPixels 11
CLI arg resolution_steps for type ImageScaleToTotalPixels 12
CLI arg text for type CLIPTextEncode 13
CLI arg cfg for type CFGGuider 14
CLI arg steps for type Flux2Scheduler 15
CLI arg batch_size for type EmptyFlux2LatentImage 16
CLI arg filename_prefix for type SaveImage 17
Traceback (most recent call last):
File "E:\comfyUI-aki\ComfyUI-aki-v3\ComfyUI\custom_nodes\ComfyUI-SaveAsScript\__init__.py", line 46, in save_as_script
ComfyUItoPython(workflow=workflow, output_file=sio)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\comfyUI-aki\ComfyUI-aki-v3\ComfyUI\custom_nodes\ComfyUI-SaveAsScript\comfyui_to_python.py", line 531, in __init__
self.execute()
~~~~~~~~~~~~^^
File "E:\comfyUI-aki\ComfyUI-aki-v3\ComfyUI\custom_nodes\ComfyUI-SaveAsScript\comfyui_to_python.py", line 558, in execute
generated_code = code_generator.generate_workflow(load_order, queue_size=self.queue_size)
File "E:\comfyUI-aki\ComfyUI-aki-v3\ComfyUI\custom_nodes\ComfyUI-SaveAsScript\comfyui_to_python.py", line 272, in generate_workflow
final_code = self.assemble_python_code(import_statements, special_functions_code, arg_inputs, code, queue_size, custom_nodes, include_prompt_data)
File "E:\comfyUI-aki\ComfyUI-aki-v3\ComfyUI\custom_nodes\ComfyUI-SaveAsScript\comfyui_to_python.py", line 410, in assemble_python_code
final_code = black.format_str(final_code, mode=black.Mode())
File "src\black\__init__.py", line 1207, in format_str
File "src\black\__init__.py", line 1225, in _format_str_once
File "src\black\parsing.py", line 98, in lib2to3_parse
black.parsing.InvalidInput: Cannot parse: 405:17: vaeencode_75:79:78 = vaeencode.encode(pixels=get_value_at_index(imagescaletototalpixels_75:80, 0), vae=get_value_at_index(vaeloader_75:72, 0))