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

object of type 'NoneType' has no len() #25

Open
alexx6319 opened this issue Nov 12, 2024 · 2 comments
Open

object of type 'NoneType' has no len() #25

alexx6319 opened this issue Nov 12, 2024 · 2 comments

Comments

@alexx6319
Copy link

`# ComfyUI Error Report

Error Details

  • Node Type: ailab_OmniGen
  • Exception Type: RuntimeError
  • Exception Message: Failed to import OmniGen. Please check if the code was downloaded correctly.

Error Details

  • Node Type: ailab_OmniGen
  • Exception Type: TypeError
  • Exception Message: object of type 'NoneType' has no len()

Stack Trace

  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-OmniGen\ailab_OmniGen.py", line 387, in generation
    raise e

  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-OmniGen\ailab_OmniGen.py", line 353, in generation
    output = pipe(
             ^^^^^

  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\OmniGen-ComfyUI\OmniGen\pipeline.py", line 197, in __call__
    assert isinstance(prompt, str) and len(input_images) == 1, "if you want to make sure the output image have the same size as the input image, please only input one image instead of multiple input images"
                                       ^^^^^^^^^^^^^^^^^

System Information

  • ComfyUI Version: v0.2.7-19-g8ebf2d8
  • Arguments: ComfyUI\main.py --windows-standalone-build
  • OS: nt
  • Python Version: 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
  • Embedded Python: true
  • PyTorch Version: 2.5.1+cu121

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 2060 : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 12884574208
    • VRAM Free: 4911045092
    • Torch VRAM Total: 8086618112
    • Torch VRAM Free: 1258854884

Logs

2024-11-12T22:42:30.047447 -    0.3 seconds: C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager
2024-11-12T22:42:30.048444 -    0.4 seconds: C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Easy-Use
2024-11-12T22:42:30.048444 -    1.1 seconds: C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui
2024-11-12T22:42:30.048444 -    1.3 seconds: C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Inspyrenet-Rembg
2024-11-12T22:42:30.048444 - 
2024-11-12T22:42:30.055421 - Starting server

2024-11-12T22:42:30.056418 - To see the GUI go to: http://127.0.0.1:8188
2024-11-12T22:42:30.738663 - FETCH DATA from: C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json2024-11-12T22:42:30.739661 - 2024-11-12T22:42:30.742650 -  [DONE]2024-11-12T22:42:30.742650 - 
2024-11-12T22:42:31.415401 - []2024-11-12T22:42:31.415401 - 
2024-11-12T22:42:31.415401 - []2024-11-12T22:42:31.416398 - 
2024-11-12T22:44:32.974838 - got prompt
2024-11-12T22:44:32.975861 - Failed to validate prompt for output 9:
2024-11-12T22:44:32.976868 - * ailab_OmniGen 7:
2024-11-12T22:44:32.976868 -   - Value not in list: memory_management: '50' not in ['Balanced', 'Speed Priority', 'Memory Priority']
2024-11-12T22:44:32.977827 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:44:32.978823 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:44:32.978823 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:44:32.979818 -   - Value not in list: model_precision: '1.8' not in ['Auto', 'FP16', 'FP8']
2024-11-12T22:44:32.980817 - * ailab_OmniGen 8:
2024-11-12T22:44:32.980817 -   - Value not in list: memory_management: '50' not in ['Balanced', 'Speed Priority', 'Memory Priority']
2024-11-12T22:44:32.981814 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:44:32.981814 -   - Value not in list: preset_prompt: 'the girl in image_1 sitting on rock on top of the mountain.' not in (list of length 31)
2024-11-12T22:44:32.982809 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:44:32.982809 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:44:32.983806 -   - Value not in list: model_precision: '1.8' not in ['Auto', 'FP16', 'FP8']
2024-11-12T22:44:32.984803 - Output will be ignored
2024-11-12T22:44:32.985798 - Failed to validate prompt for output 3:
2024-11-12T22:44:32.985798 - Output will be ignored
2024-11-12T22:44:32.985798 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:44:58.966668 - got prompt
2024-11-12T22:44:58.968662 - Failed to validate prompt for output 9:
2024-11-12T22:44:58.968662 - * ailab_OmniGen 7:
2024-11-12T22:44:58.968662 -   - Value not in list: memory_management: '50' not in ['Balanced', 'Speed Priority', 'Memory Priority']
2024-11-12T22:44:58.969657 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:44:58.969657 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:44:58.970655 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:44:58.970655 -   - Value not in list: model_precision: '1.8' not in ['Auto', 'FP16', 'FP8']
2024-11-12T22:44:58.970655 - * ailab_OmniGen 8:
2024-11-12T22:44:58.971650 -   - Value not in list: memory_management: '50' not in ['Balanced', 'Speed Priority', 'Memory Priority']
2024-11-12T22:44:58.971650 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:44:58.972649 -   - Value not in list: preset_prompt: 'the girl in image_1 sitting on rock on top of the mountain.' not in (list of length 31)
2024-11-12T22:44:58.972649 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:44:58.973645 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:44:58.973645 -   - Value not in list: model_precision: '1.8' not in ['Auto', 'FP16', 'FP8']
2024-11-12T22:44:58.973645 - Output will be ignored
2024-11-12T22:44:58.974640 - Failed to validate prompt for output 3:
2024-11-12T22:44:58.974640 - Output will be ignored
2024-11-12T22:44:58.974640 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:45:42.523050 - got prompt
2024-11-12T22:45:42.524047 - Failed to validate prompt for output 9:
2024-11-12T22:45:42.525044 - * ailab_OmniGen 7:
2024-11-12T22:45:42.525044 -   - Value not in list: memory_management: '50' not in ['Balanced', 'Speed Priority', 'Memory Priority']
2024-11-12T22:45:42.526040 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:45:42.527037 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:45:42.527037 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:45:42.527037 -   - Value not in list: model_precision: '1.8' not in ['Auto', 'FP16', 'FP8']
2024-11-12T22:45:42.528033 - * ailab_OmniGen 8:
2024-11-12T22:45:42.528033 -   - Value not in list: memory_management: '50' not in ['Balanced', 'Speed Priority', 'Memory Priority']
2024-11-12T22:45:42.528033 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:45:42.529030 -   - Value not in list: preset_prompt: 'the girl in image_1 sitting on rock on top of the mountain.' not in (list of length 31)
2024-11-12T22:45:42.529030 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:45:42.529030 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:45:42.530026 -   - Value not in list: model_precision: '1.8' not in ['Auto', 'FP16', 'FP8']
2024-11-12T22:45:42.530026 - Output will be ignored
2024-11-12T22:45:42.530026 - Failed to validate prompt for output 3:
2024-11-12T22:45:42.530026 - Output will be ignored
2024-11-12T22:45:42.531023 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:46:05.207172 - got prompt
2024-11-12T22:46:05.209166 - Failed to validate prompt for output 9:
2024-11-12T22:46:05.209166 - * ailab_OmniGen 7:
2024-11-12T22:46:05.209166 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:46:05.210161 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:46:05.211160 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:46:05.211160 -   - Value not in list: model_precision: '1.8' not in ['Auto', 'FP16', 'FP8']
2024-11-12T22:46:05.212154 - * ailab_OmniGen 8:
2024-11-12T22:46:05.212154 -   - Value not in list: memory_management: '50' not in ['Balanced', 'Speed Priority', 'Memory Priority']
2024-11-12T22:46:05.213151 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:46:05.213151 -   - Value not in list: preset_prompt: 'the girl in image_1 sitting on rock on top of the mountain.' not in (list of length 31)
2024-11-12T22:46:05.213151 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:46:05.214148 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:46:05.214148 -   - Value not in list: model_precision: '1.8' not in ['Auto', 'FP16', 'FP8']
2024-11-12T22:46:05.215145 - Output will be ignored
2024-11-12T22:46:05.215145 - Failed to validate prompt for output 3:
2024-11-12T22:46:05.216141 - Output will be ignored
2024-11-12T22:46:05.216141 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:46:13.375103 - got prompt
2024-11-12T22:46:13.377094 - Failed to validate prompt for output 9:
2024-11-12T22:46:13.377094 - * ailab_OmniGen 7:
2024-11-12T22:46:13.377094 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:46:13.378092 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:46:13.378092 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:46:13.379089 -   - Value not in list: model_precision: '1.8' not in ['Auto', 'FP16', 'FP8']
2024-11-12T22:46:13.379089 - * ailab_OmniGen 8:
2024-11-12T22:46:13.379089 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:46:13.380085 -   - Value not in list: preset_prompt: 'the girl in image_1 sitting on rock on top of the mountain.' not in (list of length 31)
2024-11-12T22:46:13.380085 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:46:13.380085 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:46:13.381081 -   - Value not in list: model_precision: '1.8' not in ['Auto', 'FP16', 'FP8']
2024-11-12T22:46:13.381081 - Output will be ignored
2024-11-12T22:46:13.382078 - Failed to validate prompt for output 3:
2024-11-12T22:46:13.382078 - Output will be ignored
2024-11-12T22:46:13.382078 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:46:28.168366 - got prompt
2024-11-12T22:46:28.169363 - Failed to validate prompt for output 9:
2024-11-12T22:46:28.169363 - * ailab_OmniGen 7:
2024-11-12T22:46:28.169363 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:46:28.169363 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:46:28.170359 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:46:28.170359 - * ailab_OmniGen 8:
2024-11-12T22:46:28.170359 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:46:28.171358 -   - Value not in list: preset_prompt: 'the girl in image_1 sitting on rock on top of the mountain.' not in (list of length 31)
2024-11-12T22:46:28.171358 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:46:28.172351 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:46:28.172351 - Output will be ignored
2024-11-12T22:46:28.172351 - Failed to validate prompt for output 3:
2024-11-12T22:46:28.172351 - Output will be ignored
2024-11-12T22:46:28.173349 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:46:44.266313 - got prompt
2024-11-12T22:46:44.267277 - Failed to validate prompt for output 9:
2024-11-12T22:46:44.267277 - * ailab_OmniGen 7:
2024-11-12T22:46:44.267277 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:46:44.267277 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:46:44.268275 - * ailab_OmniGen 8:
2024-11-12T22:46:44.268275 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:46:44.268275 -   - Value not in list: preset_prompt: 'the girl in image_1 sitting on rock on top of the mountain.' not in (list of length 31)
2024-11-12T22:46:44.268275 -   - Value 0.0 smaller than min of 1.0: img_guidance_scale
2024-11-12T22:46:44.269270 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:46:44.269270 - Output will be ignored
2024-11-12T22:46:44.269270 - Failed to validate prompt for output 3:
2024-11-12T22:46:44.269270 - Output will be ignored
2024-11-12T22:46:44.270268 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:47:10.383307 - got prompt
2024-11-12T22:47:10.385301 - Failed to validate prompt for output 9:
2024-11-12T22:47:10.385301 - * ailab_OmniGen 7:
2024-11-12T22:47:10.385301 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:47:10.386299 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:47:10.386299 - * ailab_OmniGen 8:
2024-11-12T22:47:10.387295 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:47:10.387295 -   - Value not in list: preset_prompt: 'the girl in image_1 sitting on rock on top of the mountain.' not in (list of length 31)
2024-11-12T22:47:10.388290 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:47:10.388290 - Output will be ignored
2024-11-12T22:47:10.389287 - Failed to validate prompt for output 3:
2024-11-12T22:47:10.389287 - Output will be ignored
2024-11-12T22:47:10.390285 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:47:32.703416 - got prompt
2024-11-12T22:47:32.704413 - Failed to validate prompt for output 9:
2024-11-12T22:47:32.705409 - * ailab_OmniGen 7:
2024-11-12T22:47:32.705409 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:47:32.705409 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:47:32.706407 - * ailab_OmniGen 8:
2024-11-12T22:47:32.706407 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:47:32.706407 -   - Value not in list: preset_prompt: 'the girl in image_1 sitting on rock on top of the mountain.' not in (list of length 31)
2024-11-12T22:47:32.707403 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:47:32.707403 - Output will be ignored
2024-11-12T22:47:32.708398 - Failed to validate prompt for output 3:
2024-11-12T22:47:32.708398 - Output will be ignored
2024-11-12T22:47:32.708398 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:47:49.551268 - got prompt
2024-11-12T22:47:49.552263 - Failed to validate prompt for output 9:
2024-11-12T22:47:49.553261 - * ailab_OmniGen 7:
2024-11-12T22:47:49.553261 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:47:49.554259 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:47:49.555257 - * ailab_OmniGen 8:
2024-11-12T22:47:49.555257 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:47:49.555257 -   - Value not in list: preset_prompt: 'the girl in image_1 sitting on rock on top of the mountain.' not in (list of length 31)
2024-11-12T22:47:49.556249 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:47:49.556249 - Output will be ignored
2024-11-12T22:47:49.557247 - Failed to validate prompt for output 3:
2024-11-12T22:47:49.557247 - Output will be ignored
2024-11-12T22:47:49.557247 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:48:16.310629 - got prompt
2024-11-12T22:48:16.312622 - Failed to validate prompt for output 9:
2024-11-12T22:48:16.312622 - * ailab_OmniGen 7:
2024-11-12T22:48:16.312622 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:48:16.313617 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:48:16.313617 - * ailab_OmniGen 8:
2024-11-12T22:48:16.314614 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:48:16.315609 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:48:16.315609 - Output will be ignored
2024-11-12T22:48:16.315609 - Failed to validate prompt for output 3:
2024-11-12T22:48:16.316607 - Output will be ignored
2024-11-12T22:48:16.316607 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:48:48.558714 - got prompt
2024-11-12T22:48:48.559712 - Failed to validate prompt for output 9:
2024-11-12T22:48:48.560707 - * ailab_OmniGen 7:
2024-11-12T22:48:48.560707 -   - Failed to convert an input value to a INT value: height, None, int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
2024-11-12T22:48:48.561706 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:48:48.561706 - * ailab_OmniGen 8:
2024-11-12T22:48:48.562702 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:48:48.562702 -   - Value 0 smaller than min of 1: num_inference_steps
2024-11-12T22:48:48.562702 - Output will be ignored
2024-11-12T22:48:48.563699 - Failed to validate prompt for output 3:
2024-11-12T22:48:48.563699 - Output will be ignored
2024-11-12T22:48:48.564694 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:49:02.726949 - got prompt
2024-11-12T22:49:02.727949 - Failed to validate prompt for output 9:
2024-11-12T22:49:02.728944 - * ailab_OmniGen 7:
2024-11-12T22:49:02.728944 -   - Failed to convert an input value to a INT value: height, None, int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
2024-11-12T22:49:02.729942 - * ailab_OmniGen 8:
2024-11-12T22:49:02.729942 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:49:02.730937 - Output will be ignored
2024-11-12T22:49:02.730937 - Failed to validate prompt for output 3:
2024-11-12T22:49:02.730937 - Output will be ignored
2024-11-12T22:49:02.731935 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:49:23.006973 - got prompt
2024-11-12T22:49:23.007969 - Failed to validate prompt for output 9:
2024-11-12T22:49:23.008966 - * ailab_OmniGen 7:
2024-11-12T22:49:23.008966 -   - Failed to convert an input value to a INT value: height, None, int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
2024-11-12T22:49:23.009963 - * ailab_OmniGen 8:
2024-11-12T22:49:23.009963 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:49:23.009963 - Output will be ignored
2024-11-12T22:49:23.010957 - Failed to validate prompt for output 3:
2024-11-12T22:49:23.010957 - Output will be ignored
2024-11-12T22:49:23.011955 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:50:01.479292 - got prompt
2024-11-12T22:50:01.480289 - Failed to validate prompt for output 9:
2024-11-12T22:50:01.480289 - * ailab_OmniGen 7:
2024-11-12T22:50:01.480289 -   - Failed to convert an input value to a INT value: height, None, int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
2024-11-12T22:50:01.480289 - * ailab_OmniGen 8:
2024-11-12T22:50:01.481286 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:50:01.481286 - Output will be ignored
2024-11-12T22:50:01.481286 - Failed to validate prompt for output 3:
2024-11-12T22:50:01.481286 - Output will be ignored
2024-11-12T22:50:01.482282 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': '', 'extra_info': {}}
2024-11-12T22:50:22.471140 - got prompt
2024-11-12T22:50:22.472137 - Failed to validate prompt for output 9:
2024-11-12T22:50:22.472137 - * ailab_OmniGen 8:
2024-11-12T22:50:22.473132 -   - Failed to convert an input value to a INT value: height, fixed, invalid literal for int() with base 10: 'fixed'
2024-11-12T22:50:22.473132 - Output will be ignored
2024-11-12T22:50:22.478115 - Downloading OmniGen code from GitHub...2024-11-12T22:50:22.478115 - 
2024-11-12T22:50:22.953415 - Downloaded model.py2024-11-12T22:50:22.953415 - 
2024-11-12T22:50:23.446259 - Downloaded pipeline.py2024-11-12T22:50:23.446259 - 
2024-11-12T22:50:23.913697 - Downloaded processor.py2024-11-12T22:50:23.914697 - 
2024-11-12T22:50:24.463711 - Downloaded scheduler.py2024-11-12T22:50:24.463711 - 
2024-11-12T22:50:24.921086 - Downloaded transformer.py2024-11-12T22:50:24.921086 - 
2024-11-12T22:50:25.432080 - Downloaded utils.py2024-11-12T22:50:25.432080 - 
2024-11-12T22:50:25.905107 - Downloaded __init__.py2024-11-12T22:50:25.906108 - 
2024-11-12T22:50:25.906108 - OmniGen code setup completed2024-11-12T22:50:25.906108 - 
2024-11-12T22:50:25.906108 - FP16 model not found, starting download from Hugging Face...2024-11-12T22:50:25.906108 - 
2024-11-12T23:29:04.089048 - 
Fetching 11 files:  55%|██████████████████████████████████▎                            | 6/11 [38:37<43:49, 525.95s/it]2024-11-12T23:29:04.090045 - 
Fetching 11 files: 100%|██████████████████████████████████████████████████████████████| 11/11 [38:37<00:00, 210.67s/it]2024-11-12T23:29:04.090045 - 
2024-11-12T23:29:04.091042 - FP16 model downloaded successfully2024-11-12T23:29:04.091042 - 
2024-11-12T23:29:04.091042 - OmniGen models verified successfully2024-11-12T23:29:04.091042 - 
2024-11-12T23:29:04.092038 - Current model instance: None2024-11-12T23:29:04.092038 - 
2024-11-12T23:29:04.092038 - Current model precision: None2024-11-12T23:29:04.092038 - 
2024-11-12T23:29:27.102427 - Loading safetensors2024-11-12T23:29:27.103423 - 
2024-11-12T23:29:33.854077 - Warning: Pipeline.to(device) returned None, using original pipeline2024-11-12T23:29:33.854930 - 
2024-11-12T23:29:33.854930 - VRAM usage after pipeline creation: 7710.70MB2024-11-12T23:29:33.854930 - 
2024-11-12T23:29:33.854930 - Processing with prompt: 3.52024-11-12T23:29:33.854930 - 
2024-11-12T23:29:33.855931 - Model will be kept during generation2024-11-12T23:29:33.855931 - 
2024-11-12T23:29:33.855931 - Error during generation: object of type 'NoneType' has no len()2024-11-12T23:29:33.855931 - 
2024-11-12T23:29:33.856927 - !!! Exception during processing !!! object of type 'NoneType' has no len()
2024-11-12T23:29:33.866179 - Traceback (most recent call last):
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-OmniGen\ailab_OmniGen.py", line 387, in generation
    raise e
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-OmniGen\ailab_OmniGen.py", line 353, in generation
    output = pipe(
             ^^^^^
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\OmniGen-ComfyUI\OmniGen\pipeline.py", line 197, in __call__
    assert isinstance(prompt, str) and len(input_images) == 1, "if you want to make sure the output image have the same size as the input image, please only input one image instead of multiple input images"
                                       ^^^^^^^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()

2024-11-12T23:29:33.868172 - Prompt executed in 2351.39 seconds
2024-11-12T23:35:09.598052 - got prompt
2024-11-12T23:35:09.604032 - Current model instance: None2024-11-12T23:35:09.604032 - 
2024-11-12T23:35:09.604032 - Current model precision: None2024-11-12T23:35:09.605029 - 
2024-11-12T23:35:34.933164 - Loading safetensors2024-11-12T23:35:34.933164 - 
2024-11-12T23:35:42.038406 - Warning: Pipeline.to(device) returned None, using original pipeline2024-11-12T23:35:42.038406 - 
2024-11-12T23:35:42.038406 - VRAM usage after pipeline creation: 7710.70MB2024-11-12T23:35:42.038406 - 
2024-11-12T23:35:42.039403 - Processing with prompt: 3.52024-11-12T23:35:42.039403 - 
2024-11-12T23:35:42.039403 - Model will be kept during generation2024-11-12T23:35:42.039403 - 
2024-11-12T23:35:42.039403 - Error during generation: object of type 'NoneType' has no len()2024-11-12T23:35:42.039403 - 
2024-11-12T23:35:42.040399 - !!! Exception during processing !!! object of type 'NoneType' has no len()
2024-11-12T23:35:42.040399 - Traceback (most recent call last):
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 323, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 198, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-OmniGen\ailab_OmniGen.py", line 387, in generation
    raise e
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-OmniGen\ailab_OmniGen.py", line 353, in generation
    output = pipe(
             ^^^^^
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Alan\Desktop\ComfyUI_windows_portable\ComfyUI\custom_nodes\OmniGen-ComfyUI\OmniGen\pipeline.py", line 197, in __call__
    assert isinstance(prompt, str) and len(input_images) == 1, "if you want to make sure the output image have the same size as the input image, please only input one image instead of multiple input images"
                                       ^^^^^^^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()

2024-11-12T23:35:42.042393 - Prompt executed in 32.44 seconds

@theonetwoone
Copy link

set use_input_image_size_to_output to "false"

@alexx6319
Copy link
Author

Thanks!! I finally managed to run it successfully!

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