The size of tensor a (4) must match the size of tensor b (3) at non-singletonThe size of
生活随笔
收集整理的這篇文章主要介紹了
The size of tensor a (4) must match the size of tensor b (3) at non-singletonThe size of
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
報錯:
RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton解決:
img = Image.open(image_path)改為
img = Image.open(image_path).convert('RGB')。完成~
總結
以上是生活随笔為你收集整理的The size of tensor a (4) must match the size of tensor b (3) at non-singletonThe size of的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 智慧交通day02-车流量检测实现11:
- 下一篇: 非大学生学计算机,浅谈非计算机专业大学生