InternLM-XComposer icon indicating copy to clipboard operation
InternLM-XComposer copied to clipboard

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

Open liulj0507 opened this issue 2 years ago • 2 comments

启动python examples/gradio_demo_composition.py之后点击创作提交按钮会报错AttributeError: 'list' object has no attribute 'root' image

然后为了修复上述报错把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 image

请问这是哪里的问题?

不过在日志最前面有个告警:似乎是clip模型参数没有加载成功? image

liulj0507 avatar Feb 22 '24 13:02 liulj0507

@liulj0507 问题你解决了吗

zhouwei5113 avatar Feb 29 '24 09:02 zhouwei5113

@yeyimilk @zhouwei5113 Is the version of your gradio 4.13.0 ?

What is the version of your transfermers? please try transformers==4.33.2

panzhang0212 avatar Mar 04 '24 14:03 panzhang0212