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

Kolors文生图报错。我使用了使用 '/' 拆分目录。也是按文件结构放的文件。 #118

Open
czm0208 opened this issue Nov 10, 2024 · 10 comments

Comments

@czm0208
Copy link

czm0208 commented Nov 10, 2024

大佬,为啥我用Kolors文生图一直报错呀。我使用了使用 '/' 拆分目录。也是按文件结构放的文件。 报错显示:Storydiffusion Model Loader,'NoneType'对象没有属性'enable model cpu offload。

@czm0208 czm0208 closed this as completed Nov 10, 2024
@czm0208
Copy link
Author

czm0208 commented Nov 10, 2024

1
2

@czm0208 czm0208 reopened this Nov 10, 2024
@czm0208
Copy link
Author

czm0208 commented Nov 10, 2024

Storydiffusion_Model_Loader
'NoneType' 对象没有属性 'enable_model_cpu_offload'

ComfyUI Error Report

Error Details

  • Node Type: Storydiffusion_Model_Loader
  • Exception Type: AttributeError
  • Exception Message: 'NoneType' object has no attribute 'enable_model_cpu_offload'

Stack Trace

  File "H:\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 "H:\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 "H:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

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

  File "H:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_StoryDiffusion-main\Storydiffusion_node.py", line 1518, in story_model_loader
    pipe.enable_model_cpu_offload()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

System Information

  • ComfyUI Version: v0.2.7
  • Arguments: ComfyUI\main.py --windows-standalone-build
  • OS: nt
  • Python Version: 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
  • Embedded Python: true
  • PyTorch Version: 2.5.1+cu124

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 8589410304
    • VRAM Free: 7402815488
    • Torch VRAM Total: 33554432
    • Torch VRAM Free: 25034752

Logs

2024-11-10 19:23:24,156 - root - INFO - Total VRAM 8192 MB, total RAM 32538 MB
2024-11-10 19:23:24,156 - root - INFO - pytorch version: 2.5.1+cu124
2024-11-10 19:23:24,156 - root - INFO - Set vram state to: NORMAL_VRAM
2024-11-10 19:23:24,156 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync
2024-11-10 19:23:24,727 - root - INFO - Using pytorch cross attention
2024-11-10 19:23:25,487 - root - INFO - [Prompt Server] web root: H:\ComfyUI_windows_portable\ComfyUI\web
2024-11-10 19:23:25,985 - root - INFO - 
Import times for custom nodes:
2024-11-10 19:23:25,985 - root - INFO -    0.0 seconds: H:\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
2024-11-10 19:23:25,985 - root - INFO -    0.3 seconds: H:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_StoryDiffusion-main
2024-11-10 19:23:25,985 - root - INFO - 
2024-11-10 19:23:25,988 - root - INFO - Starting server

2024-11-10 19:23:25,988 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2024-11-10 19:25:19,152 - root - INFO - got prompt
2024-11-10 19:25:24,692 - root - INFO - model weight dtype torch.float16, manual cast: None
2024-11-10 19:25:24,809 - root - INFO - model_type EPS
2024-11-10 19:27:39,593 - root - INFO - got prompt
2024-11-10 19:28:30,603 - root - INFO - Using pytorch attention in VAE
2024-11-10 19:28:30,622 - root - INFO - Using pytorch attention in VAE
2024-11-10 19:29:25,986 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:29:25,986 - root - INFO - Loading 1 new model
2024-11-10 19:29:26,394 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:29:28,735 - root - INFO - Requested to load SDXL
2024-11-10 19:29:28,735 - root - INFO - Loading 1 new model
2024-11-10 19:29:29,864 - root - INFO - loaded completely 0.0 4897.0483474731445 True
2024-11-10 19:29:35,814 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:29:35,814 - root - INFO - Loading 1 new model
2024-11-10 19:29:36,012 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:29:36,922 - root - INFO - Prompt executed in 257.77 seconds
2024-11-10 19:29:37,021 - root - INFO - Process using 1 roles,mode is txt2img....
2024-11-10 19:29:37,021 - root - INFO - total_vram is 8191.5,aggressive_offload is True,offload is True
2024-11-10 19:29:37,059 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:29:37,059 - root - INFO - Loading 1 new model
2024-11-10 19:29:37,543 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:29:37,642 - root - INFO - Unloading models for lowram load.
2024-11-10 19:29:37,662 - root - INFO - 0 models unloaded.
2024-11-10 19:29:38,397 - root - INFO - loaded completely 5234.858506011963 4897.0483474731445 True
2024-11-10 19:29:44,632 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:29:44,632 - root - INFO - Loading 1 new model
2024-11-10 19:29:45,144 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:29:45,681 - root - INFO - Prompt executed in 8.66 seconds
2024-11-10 19:30:02,471 - root - INFO - got prompt
2024-11-10 19:30:02,478 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:30:02,478 - root - INFO - Loading 1 new model
2024-11-10 19:30:02,933 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:30:03,508 - root - INFO - loaded completely 5197.329209136963 4897.0483474731445 True
2024-11-10 19:30:09,621 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:30:09,621 - root - INFO - Loading 1 new model
2024-11-10 19:30:10,141 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:30:10,550 - root - INFO - Prompt executed in 8.08 seconds
2024-11-10 19:30:12,295 - root - INFO - got prompt
2024-11-10 19:30:12,304 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:30:12,304 - root - INFO - Loading 1 new model
2024-11-10 19:30:12,559 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:30:13,156 - root - INFO - loaded completely 5184.819443511963 4897.0483474731445 True
2024-11-10 19:30:19,261 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:30:19,262 - root - INFO - Loading 1 new model
2024-11-10 19:30:19,832 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:30:20,236 - root - INFO - Prompt executed in 7.94 seconds
2024-11-10 19:31:19,111 - root - INFO - got prompt
2024-11-10 19:31:19,118 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:31:19,119 - root - INFO - Loading 1 new model
2024-11-10 19:31:19,559 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:31:20,035 - root - INFO - loaded completely 5184.819443511963 4897.0483474731445 True
2024-11-10 19:31:26,133 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:31:26,133 - root - INFO - Loading 1 new model
2024-11-10 19:31:26,691 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:31:26,960 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:31:26,960 - root - INFO - Loading 1 new model
2024-11-10 19:31:27,191 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:31:27,664 - root - INFO - loaded completely 5197.329209136963 4897.0483474731445 True
2024-11-10 19:31:33,746 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:31:33,746 - root - INFO - Loading 1 new model
2024-11-10 19:31:34,281 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:31:34,758 - root - INFO - Prompt executed in 15.64 seconds
2024-11-10 19:32:18,951 - root - INFO - got prompt
2024-11-10 19:32:18,960 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:32:18,961 - root - INFO - Loading 1 new model
2024-11-10 19:32:19,321 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:32:19,892 - root - INFO - loaded completely 5384.975693511963 4897.0483474731445 True
2024-11-10 19:32:26,021 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:32:26,021 - root - INFO - Loading 1 new model
2024-11-10 19:32:26,494 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:32:26,755 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:32:26,755 - root - INFO - Loading 1 new model
2024-11-10 19:32:26,963 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:32:27,465 - root - INFO - loaded completely 5222.348740386963 4897.0483474731445 True
2024-11-10 19:32:33,602 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:32:33,602 - root - INFO - Loading 1 new model
2024-11-10 19:32:34,122 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:32:34,645 - root - INFO - Prompt executed in 15.69 seconds
2024-11-10 19:33:21,832 - root - INFO - got prompt
2024-11-10 19:33:21,842 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:33:21,842 - root - INFO - Loading 1 new model
2024-11-10 19:33:22,250 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:33:22,328 - root - INFO - Unloading models for lowram load.
2024-11-10 19:33:22,341 - root - INFO - 0 models unloaded.
2024-11-10 19:33:22,769 - root - INFO - loaded completely 5197.329209136963 4897.0483474731445 True
2024-11-10 19:33:28,890 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:33:28,890 - root - INFO - Loading 1 new model
2024-11-10 19:33:29,443 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:33:29,706 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:33:29,706 - root - INFO - Loading 1 new model
2024-11-10 19:33:29,918 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:33:30,377 - root - INFO - loaded completely 5209.838974761963 4897.0483474731445 True
2024-11-10 19:33:36,585 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:33:36,585 - root - INFO - Loading 1 new model
2024-11-10 19:33:37,155 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:33:37,745 - root - INFO - Prompt executed in 15.91 seconds
2024-11-10 19:35:06,424 - root - INFO - got prompt
2024-11-10 19:35:06,432 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:35:06,432 - root - INFO - Loading 1 new model
2024-11-10 19:35:06,921 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:35:07,406 - root - INFO - loaded completely 5284.897568511963 4897.0483474731445 True
2024-11-10 19:35:13,554 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:35:13,555 - root - INFO - Loading 1 new model
2024-11-10 19:35:14,116 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:35:14,377 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:35:14,378 - root - INFO - Loading 1 new model
2024-11-10 19:35:14,592 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:35:15,089 - root - INFO - loaded completely 5222.348740386963 4897.0483474731445 True
2024-11-10 19:35:21,282 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:35:21,282 - root - INFO - Loading 1 new model
2024-11-10 19:35:21,657 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:35:22,104 - root - INFO - Prompt executed in 15.68 seconds
2024-11-10 19:35:32,736 - root - INFO - got prompt
2024-11-10 19:35:32,743 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:35:32,743 - root - INFO - Loading 1 new model
2024-11-10 19:35:33,201 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:35:33,812 - root - INFO - loaded completely 5222.348740386963 4897.0483474731445 True
2024-11-10 19:35:40,015 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:35:40,015 - root - INFO - Loading 1 new model
2024-11-10 19:35:40,599 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:35:40,866 - root - INFO - Requested to load SDXLClipModel
2024-11-10 19:35:40,866 - root - INFO - Loading 1 new model
2024-11-10 19:35:41,077 - root - INFO - loaded completely 0.0 1560.802734375 True
2024-11-10 19:35:41,526 - root - INFO - loaded completely 5222.348740386963 4897.0483474731445 True
2024-11-10 19:35:47,696 - root - INFO - Requested to load AutoencoderKL
2024-11-10 19:35:47,697 - root - INFO - Loading 1 new model
2024-11-10 19:35:48,224 - root - INFO - loaded completely 0.0 159.55708122253418 True
2024-11-10 19:35:48,695 - root - INFO - Prompt executed in 15.96 seconds
2024-11-10 19:59:20,401 - root - INFO - got prompt
2024-11-10 19:59:21,362 - root - INFO - Process using 1 roles,mode is txt2img....
2024-11-10 19:59:21,362 - root - INFO - total_vram is 8191.5,aggressive_offload is True,offload is True
2024-11-10 19:59:21,362 - root - INFO - start kolor processing...
2024-11-10 19:59:21,434 - root - INFO - loader story_maker processing...
2024-11-10 19:59:24,864 - root - ERROR - !!! Exception during processing !!! 'NoneType' object has no attribute 'enable_model_cpu_offload'
2024-11-10 19:59:24,864 - root - ERROR - Traceback (most recent call last):
  File "H:\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 "H:\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 "H:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "H:\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_StoryDiffusion-main\Storydiffusion_node.py", line 1518, in story_model_loader
    pipe.enable_model_cpu_offload()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'enable_model_cpu_offload'

2024-11-10 19:59:24,865 - root - INFO - Prompt executed in 4.46 seconds
2024-11-10 20:09:01,016 - root - INFO - got prompt
2024-11-10 20:09:01,028 - root - INFO - Process using 1 roles,mode is txt2img....
2024-11-10 20:09:01,029 - root - INFO - total_vram is 8191.5,aggressive_offload is True,offload is True
2024-11-10 20:09:01,029 - root - INFO - start kolor processing...
2024-11-10 20:09:01,029 - root - INFO - loader story_maker processing...
2024-11-10 20:09:04,293 - root - ERROR - !!! Exception during processing !!! 'NoneType' object has no attribute 'enable_model_cpu_offload'
2024-11-10 20:09:04,293 - root - ERROR - Traceback (most recent call last):
  File "H:\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 "H:\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 "H:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "H:\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_StoryDiffusion-main\Storydiffusion_node.py", line 1518, in story_model_loader
    pipe.enable_model_cpu_offload()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'enable_model_cpu_offload'

2024-11-10 20:09:04,294 - root - INFO - Prompt executed in 3.27 seconds
2024-11-10 20:15:50,546 - root - INFO - got prompt
2024-11-10 20:15:50,559 - root - INFO - Process using 1 roles,mode is txt2img....
2024-11-10 20:15:50,559 - root - INFO - total_vram is 8191.5,aggressive_offload is True,offload is True
2024-11-10 20:15:50,559 - root - INFO - start kolor processing...
2024-11-10 20:15:50,559 - root - INFO - loader story_maker processing...
2024-11-10 20:15:53,784 - root - ERROR - !!! Exception during processing !!! 'NoneType' object has no attribute 'enable_model_cpu_offload'
2024-11-10 20:15:53,785 - root - ERROR - Traceback (most recent call last):
  File "H:\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 "H:\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 "H:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "H:\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_StoryDiffusion-main\Storydiffusion_node.py", line 1518, in story_model_loader
    pipe.enable_model_cpu_offload()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'enable_model_cpu_offload'

2024-11-10 20:15:53,785 - root - INFO - Prompt executed in 3.23 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

{"last_node_id":8,"last_link_id":9,"nodes":[{"id":7,"type":"Storydiffusion_Sampler","pos":{"0":1559,"1":9},"size":{"0":338.47149658203125,"1":837.4097900390625},"flags":{},"order":1,"mode":0,"inputs":[{"name":"model","type":"STORY_DICT","link":8,"label":"model"},{"name":"control_image","type":"IMAGE","link":null,"shape":7,"label":"control_image"}],"outputs":[{"name":"image","type":"IMAGE","links":[9],"slot_index":0,"label":"image"},{"name":"prompt_array","type":"STRING","links":null,"label":"prompt_array"}],"properties":{"Node name for S&R":"Storydiffusion_Sampler"},"widgets_values":["[Taylor] wake up in the bed ;","bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn,amputation, disconnected limbs","Comic_book",1223317184,"randomize",20,7,1,20,3.5,0.5,5,false,0.8,"0., 0.25, 0.4, 0.75;0.6, 0.25, 1., 0.75"]},{"id":6,"type":"Storydiffusion_Model_Loader","pos":{"0":1067,"1":109},"size":{"0":435.52093505859375,"1":665.1209106445312},"flags":{},"order":0,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":null,"shape":7,"label":"image"},{"name":"condition_image","type":"IMAGE","link":null,"shape":7,"label":"condition_image"},{"name":"model","type":"MODEL","link":null,"shape":7,"label":"model"},{"name":"clip","type":"CLIP","link":null,"shape":7,"label":"clip"},{"name":"vae","type":"VAE","link":null,"shape":7,"label":"vae"}],"outputs":[{"name":"model","type":"STORY_DICT","links":[8],"slot_index":0,"label":"model"}],"properties":{"Node name for S&R":"Storydiffusion_Model_Loader"},"widgets_values":["[Taylor] a woman img, wearing a white T-shirt, blue loose hair.","C:/Users\\chenzhenming/Desktop/Kwai-Kolors/Kolors","none","none","none","none",0.8,"none","clip_vision_g.safetensors","best quality","euler","normal",0.5,0.5,768,768,"v1",""]},{"id":8,"type":"SaveImage","pos":{"0":2163,"1":2},"size":{"0":315,"1":270},"flags":{},"order":2,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":9,"label":"images"}],"outputs":[],"properties":{},"widgets_values":["ComfyUI"]}],"links":[[8,6,0,7,0,"STORY_DICT"],[9,7,0,8,0,"IMAGE"]],"groups":[],"config":{},"extra":{"ds":{"scale":0.620921323059155,"offset":[-622.8000536802754,163.59347844512737]}},"version":0.4}

Additional Context

(Please add any additional context or steps to reproduce the error here)

@smthemex
Copy link
Owner

image
suo所有的都是要/ ,你这个地址填成混合的了。看你的截图,你的地址应该是H:/ComfyUI..../Kolors

@czm0208
Copy link
Author

czm0208 commented Nov 11, 2024

H:/ComfyUI_windows_portable/ComfyUI/models/Kwai-Kolors/Kolors,我把Kolors的文件放在这个里面,还是打不开,难道是要放到您建立的文件夹内吗?如下地址:H:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_StoryDiffusion-main\kolors

@czm0208
Copy link
Author

czm0208 commented Nov 11, 2024

3
4
这个是运行后的状态。

ComfyUI Error Report

Error Details

  • Node Type: Storydiffusion_Model_Loader
  • Exception Type: AttributeError
  • Exception Message: 'NoneType' object has no attribute 'enable_model_cpu_offload'

Stack Trace

  File "H:\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 "H:\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 "H:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

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

  File "H:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_StoryDiffusion-main\Storydiffusion_node.py", line 1518, in story_model_loader
    pipe.enable_model_cpu_offload()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

System Information

  • ComfyUI Version: v0.2.7
  • Arguments: ComfyUI\main.py --windows-standalone-build
  • OS: nt
  • Python Version: 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)]
  • Embedded Python: true
  • PyTorch Version: 2.5.1+cu124

Devices

  • Name: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync
    • Type: cuda
    • VRAM Total: 8589410304
    • VRAM Free: 7474249728
    • Torch VRAM Total: 0
    • Torch VRAM Free: 0

Logs

2024-11-11 20:08:28,659 - root - INFO - Total VRAM 8192 MB, total RAM 32538 MB
2024-11-11 20:08:28,659 - root - INFO - pytorch version: 2.5.1+cu124
2024-11-11 20:08:28,659 - root - INFO - Set vram state to: NORMAL_VRAM
2024-11-11 20:08:28,659 - root - INFO - Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync
2024-11-11 20:08:29,428 - root - INFO - Using pytorch cross attention
2024-11-11 20:08:31,562 - root - INFO - [Prompt Server] web root: H:\ComfyUI_windows_portable\ComfyUI\web
2024-11-11 20:08:32,386 - root - INFO - 
Import times for custom nodes:
2024-11-11 20:08:32,386 - root - INFO -    0.0 seconds: H:\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py
2024-11-11 20:08:32,386 - root - INFO -    0.4 seconds: H:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_StoryDiffusion-main
2024-11-11 20:08:32,386 - root - INFO - 
2024-11-11 20:08:32,389 - root - INFO - Starting server

2024-11-11 20:08:32,390 - root - INFO - To see the GUI go to: http://127.0.0.1:8188
2024-11-11 20:08:51,722 - root - INFO - got prompt
2024-11-11 20:08:51,738 - root - INFO - Process using 1 roles,mode is txt2img....
2024-11-11 20:08:51,738 - root - INFO - total_vram is 8191.5,aggressive_offload is True,offload is True
2024-11-11 20:08:51,738 - root - INFO - start kolor processing...
2024-11-11 20:08:51,772 - root - INFO - loader story_maker processing...
2024-11-11 20:08:55,654 - root - ERROR - !!! Exception during processing !!! 'NoneType' object has no attribute 'enable_model_cpu_offload'
2024-11-11 20:08:55,674 - root - ERROR - Traceback (most recent call last):
  File "H:\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 "H:\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 "H:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "H:\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_StoryDiffusion-main\Storydiffusion_node.py", line 1518, in story_model_loader
    pipe.enable_model_cpu_offload()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'enable_model_cpu_offload'

2024-11-11 20:08:55,675 - root - INFO - Prompt executed in 3.94 seconds
2024-11-11 20:09:12,601 - root - INFO - got prompt
2024-11-11 20:09:12,612 - root - INFO - Process using 1 roles,mode is txt2img....
2024-11-11 20:09:12,612 - root - INFO - total_vram is 8191.5,aggressive_offload is True,offload is True
2024-11-11 20:09:12,613 - root - INFO - start kolor processing...
2024-11-11 20:09:12,613 - root - INFO - loader story_maker processing...
2024-11-11 20:09:15,635 - root - ERROR - !!! Exception during processing !!! 'NoneType' object has no attribute 'enable_model_cpu_offload'
2024-11-11 20:09:15,636 - root - ERROR - Traceback (most recent call last):
  File "H:\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 "H:\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 "H:\ComfyUI_windows_portable\ComfyUI\execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)
  File "H:\ComfyUI_windows_portable\ComfyUI\execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "H:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_StoryDiffusion-main\Storydiffusion_node.py", line 1518, in story_model_loader
    pipe.enable_model_cpu_offload()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'enable_model_cpu_offload'

2024-11-11 20:09:15,636 - root - INFO - Prompt executed in 3.03 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

{"last_node_id":8,"last_link_id":9,"nodes":[{"id":8,"type":"SaveImage","pos":{"0":2163,"1":2},"size":{"0":315,"1":270},"flags":{},"order":2,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":9,"label":"images"}],"outputs":[],"properties":{},"widgets_values":["ComfyUI"]},{"id":7,"type":"Storydiffusion_Sampler","pos":{"0":1665,"1":22},"size":{"0":338.47149658203125,"1":837.4097900390625},"flags":{},"order":1,"mode":0,"inputs":[{"name":"model","type":"STORY_DICT","link":8,"label":"model"},{"name":"control_image","type":"IMAGE","link":null,"shape":7,"label":"control_image"}],"outputs":[{"name":"image","type":"IMAGE","links":[9],"slot_index":0,"label":"image"},{"name":"prompt_array","type":"STRING","links":null,"label":"prompt_array"}],"properties":{"Node name for S&R":"Storydiffusion_Sampler"},"widgets_values":["[Taylor] wake up in the bed ;","bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn,amputation, disconnected limbs","Comic_book",601951425,"randomize",20,7,1,20,3.5,0.5,5,false,0.8,"0., 0.25, 0.4, 0.75;0.6, 0.25, 1., 0.75"]},{"id":6,"type":"Storydiffusion_Model_Loader","pos":{"0":1067,"1":109},"size":{"0":435.52093505859375,"1":665.1209106445312},"flags":{},"order":0,"mode":0,"inputs":[{"name":"image","type":"IMAGE","link":null,"shape":7,"label":"image"},{"name":"condition_image","type":"IMAGE","link":null,"shape":7,"label":"condition_image"},{"name":"model","type":"MODEL","link":null,"shape":7,"label":"model"},{"name":"clip","type":"CLIP","link":null,"shape":7,"label":"clip"},{"name":"vae","type":"VAE","link":null,"shape":7,"label":"vae"}],"outputs":[{"name":"model","type":"STORY_DICT","links":[8],"slot_index":0,"label":"model"}],"properties":{"Node name for S&R":"Storydiffusion_Model_Loader"},"widgets_values":["[Taylor] a woman img, wearing a white T-shirt, blue loose hair.","H:/ComfyUI_windows_portable/ComfyUI/models/Kwai-Kolors/Kolors","none","none","none","none",0.8,"none","clip-vit-large-patch14.safetensors","best quality","euler","normal",0.5,0.5,768,768,"v1",""]}],"links":[[8,6,0,7,0,"STORY_DICT"],[9,7,0,8,0,"IMAGE"]],"groups":[],"config":{},"extra":{"ds":{"scale":1,"offset":[-717.9878009604577,27.321388219196365]}},"version":0.4}

Additional Context

(Please add any additional context or steps to reproduce the error here)

@smthemex
Copy link
Owner

要看你的kolor的目录内容才行,放哪里都可以,只要用/区分目录
你看看readme的那几个核心的模型有没有,除了kolor的文件,还有ipadapter 和faceid的模型。如下所示:
image
image
确保以上4个部分里,要有3个模型,1个diffuser模型文件,基本上是能跑大部分,但是face id会自动下模型,看你也没用开启,所以不是这里的问题。

@czm0208
Copy link
Author

czm0208 commented Nov 11, 2024

前面三个我是都手动下载好了。
5
6
但是第四个我搜huggingface上的不知道是不是下载正确了,您发一个地址我下载。另外face id会自动下模型,我以为自动下载的,就没有手动去下载了,如果手动下载是放到哪个文件夹呢?这个您也发一个地址给我吧,谢谢大佬了。

@smthemex
Copy link
Owner

你要检查一下kolor各个文件夹下的文件名是否对的上,如果你是手动一个个下的,会有前缀名的,
clip_vision 模型就是官方的model.safetensors 地址

@czm0208
Copy link
Author

czm0208 commented Nov 11, 2024

1
2
3
4
5
6
这是我的文件结构,我重新试了一下还是报错了
7

@smthemex
Copy link
Owner

image
你的插件不是git clone的吗? 把插件目录后面的-main 删掉

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