smthemex / ComfyUI_StoryDiffusion

You can using StoryDiffusion in ComfyUI
Apache License 2.0
241 stars 195 forks source link

CFGenerator object has no attribute 'pulid_model' #93

Open adamreading opened 1 month ago

adamreading commented 1 month ago

SO I loaded the latest node version - and that has fixed some of the issues - but now I have two options:

If I connect the reference image to the "Control Image" input - it runs and I get images, but they bear no relation to the reference image at all: Screenshot 2024-10-01 112247 But if I connect to the "image" input instead I get a new error message: Screenshot 2024-10-01 112314

adamreading commented 1 month ago

total_vram is 22515.75,aggressive_offload is False,offload is True !!! Exception during processing !!! 'CFGenerator' object has no attribute 'pulid_model' Traceback (most recent call last): File "/data/app/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 "/data/app/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 "/data/app/execution.py", line 169, in _map_node_over_list process_inputs(input_dict, i) File "/data/app/execution.py", line 158, in process_inputs results.append(getattr(obj, func)(**inputs)) File "/data/app/custom_nodes/ComfyUI_StoryDiffusion/Storydiffusion_node.py", line 341, in story_model_loader input_id_emb_s_dict, input_id_img_s_dict, input_id_emb_un_dict, input_id_cloth_dict=get_insight_dict(app_face,pipeline_mask,appface,image_load,photomake_mode, File "/data/app/custom_nodes/ComfyUI_StoryDiffusion/model_loader_utils.py", line 1408, in get_insight_dict id_embed_list, uncond_id_embeddings = pipe.pulid_model.get_id_embedding(id_image, AttributeError: 'CFGenerator' object has no attribute 'pulid_model'

smthemex commented 1 month ago

This is an error that occurred after encapsulating the standard process of ComfyUI. I will fix it soon。

adamreading commented 1 month ago

Can you please confirm what is Control Image and what is Image for please?

smthemex commented 1 month ago

control img just for 2 roles in 1 img,example ms-diffusion or story maker, You connect to control-img but not image, in fact, it's the process of running txt2img,pulid not support txt2img now