InternLM / InternLM/InternLM-XComposer

RuntimeError: The size of tensor a (1069) must match the size of tensor b (1068) at non-singleton dimension 3

Open
#179 2 comments 0 reactions 1 assignee Assigned to @panzhang0212 View on GitHub
Dominant language
Python
Stars
2.9k
Forks
175
PR merge metrics
No merged PRs in 30d

Description

启动python examples/gradio_demo_composition.py之后点击创作提交按钮会报错AttributeError: 'list' object has no attribute 'root'
![image](https://github.com/InternLM/InternLM-XComposer/assets/21101729/f02d84bd-1935-4887-95c6-047631ed239a)

然后为了修复上述报错把upimages = [t.image.path for t in upimages.root]修改为upimages = [t.image.path for t in upimages]之后又出现如下两处报错:
RuntimeError: The size of tensor a (276) must match the size of tensor b (275) at non-singleton dimension 3

RuntimeError: The size of tensor a (1069) must match the size of tensor b (1068) at non-singleton dimension 3

![image](https://github.com/InternLM/InternLM-XComposer/assets/21101729/f15ee47b-76e3-48cc-9d06-dad33633808b)
![image](https://github.com/InternLM/InternLM-XComposer/assets/21101729/963b7419-f0e8-4a13-9e7a-ec43b3b7fcce)

请问这是哪里的问题?

不过在日志最前面有个告警:似乎是clip模型参数没有加载成功?
![image](https://github.com/InternLM/InternLM-XComposer/assets/21101729/5d5bf7e7-279f-4054-a66f-6497ef0f7257)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.