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

Error occurred when executing UltraPixelProcess: #29

Open
JunpeakChen opened this issue Jul 30, 2024 · 0 comments
Open

Error occurred when executing UltraPixelProcess: #29

JunpeakChen opened this issue Jul 30, 2024 · 0 comments

Comments

@JunpeakChen
Copy link

Error(s) in loading state_dict for CLIPTextModelWithProjection:
size mismatch for text_projection.weight: copying a param with shape torch.Size([1280, 1280]) from checkpoint, the shape in current model is torch.Size([512, 1280]).
You may consider adding ignore_mismatched_sizes=True in the model from_pretrained method.

File "E:\Comfy UI\ComfyUI-aki-v1.3\execution.py", line 152, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "E:\Comfy UI\ComfyUI-aki-v1.3\execution.py", line 82, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "E:\Comfy UI\ComfyUI-aki-v1.3\execution.py", line 75, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "E:\Comfy UI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-UltraPixel\nodes.py", line 209, in ultrapixel
image, edge_preview = model.process()
File "E:\Comfy UI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-UltraPixel\ultrapixel.py", line 127, in process
models = core.setup_models(extras)
File "E:\Comfy UI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI-UltraPixel\train\train_t2i.py", line 420, in setup_models
CLIPTextModelWithProjection.from_pretrained(
File "E:\Comfy UI\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\modeling_utils.py", line 3838, in from_pretrained
) = cls._load_pretrained_model(
File "E:\Comfy UI\ComfyUI-aki-v1.3\python\lib\site-packages\transformers\modeling_utils.py", line 4349, in _load_pretrained_model
raise RuntimeError(f"Error(s) in loading state_dict for {model.class.name}:\n\t{error_msg}")

I'd like to ask for help in resolving this. Thank you.请求帮忙解决,谢谢。

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

1 participant