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

CFGenrater object is not callable #112

Open
Gyyyyyyyyds opened this issue Oct 27, 2024 · 8 comments
Open

CFGenrater object is not callable #112

Gyyyyyyyyds opened this issue Oct 27, 2024 · 8 comments

Comments

@Gyyyyyyyyds
Copy link

ComfyUI Error Report

Error Details

  • Node Type: Storydiffusion_Sampler
  • Exception Type: TypeError
  • Exception Message: 'CFGenerator' object is not callable

Stack Trace

  File "/Users/gaoyuan/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 "/Users/gaoyuan/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 "/Users/gaoyuan/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "/Users/gaoyuan/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "/Users/gaoyuan/ComfyUI/custom_nodes/ComfyUI_StoryDiffusion/Storydiffusion_node.py", line 1689, in story_sampler
    for value in gen:

  File "/Users/gaoyuan/ComfyUI/custom_nodes/ComfyUI_StoryDiffusion/Storydiffusion_node.py", line 783, in process_generation
    id_image = pipe(
![WechatIMG752](https://github.com/user-attachments/assets/a73d69cf-e3b0-4dd8-a936-b9cfa80a4131)
![WechatIMG753](https://github.com/user-attachments/assets/8e323051-2a10-4a98-92cb-a035406e9b6c)

@Gyyyyyyyyds
Copy link
Author

WechatIMG752
WechatIMG753

@Gyyyyyyyyds
Copy link
Author

麻烦大佬解答~

@smthemex
Copy link
Owner

maker功能不能用comfyUI的加载方式,需要在ckptname选模型。

@Gyyyyyyyyds
Copy link
Author

WechatIMG757

@Gyyyyyyyyds
Copy link
Author

使用ckpt就会报这个错误 麻烦大佬看看

Storydiffusion_Model_Loader
exceptions must derive from BaseException

ComfyUI Error Report

Error Details

  • Node Type: Storydiffusion_Model_Loader
  • Exception Type: TypeError
  • Exception Message: exceptions must derive from BaseException

Stack Trace

  File "/Users/gaoyuan/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 "/Users/gaoyuan/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 "/Users/gaoyuan/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "/Users/gaoyuan/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "/Users/gaoyuan/ComfyUI/custom_nodes/ComfyUI_StoryDiffusion/Storydiffusion_node.py", line 1285, in story_model_loader
    raise "you need choice a model or repo_id or a comfyUI model..."

@smthemex
Copy link
Owner

image
ckpt name这里选个SDXL模型啊,不然怎么跑

@Gyyyyyyyyds
Copy link
Author

不好意思 我给错截图了 是这个报错

ComfyUI Error Report

Error Details

  • Node Type: Storydiffusion_Sampler
  • Exception Type: AttributeError
  • Exception Message: 'NoneType' object has no attribute 'to'

Stack Trace

  File "/Users/gaoyuan/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 "/Users/gaoyuan/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 "/Users/gaoyuan/ComfyUI/execution.py", line 169, in _map_node_over_list
    process_inputs(input_dict, i)

  File "/Users/gaoyuan/ComfyUI/execution.py", line 158, in process_inputs
    results.append(getattr(obj, func)(**inputs))

  File "/Users/gaoyuan/ComfyUI/custom_nodes/ComfyUI_StoryDiffusion/Storydiffusion_node.py", line 1689, in story_sampler
    for value in gen:

  File "/Users/gaoyuan/ComfyUI/custom_nodes/ComfyUI_StoryDiffusion/Storydiffusion_node.py", line 783, in process_generation
    id_image = pipe(

  File "/Users/gaoyuan/miniconda3/envs/comflowy/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
    return func(*args, **kwargs)

  File "/Users/gaoyuan/ComfyUI/custom_nodes/ComfyUI_StoryDiffusion/StoryMaker/pipeline_sdxl_storymaker.py", line 617, in __call__
    controlnet=self.controlnet.to(device) if self.controlnet is not None else None
![WechatIMG758](https://github.com/user-attachments/assets/5e2c4574-b153-461f-be8b-7b7f2ed2062f)

@smthemex
Copy link
Owner

你的版本不是最新的?这个问题我前几天好像修复了,不过我刚刚改了一些代码,应该没什么问题了

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