RuntimeError: The size of tensor a (30) must match the size of tensor b (54) at non-singleton dimension 0


问题:RT,下一组数据集的又变成RuntimeError: The size of tensor a (30) must match the size of tensor b (36) at non-singleton dimension 0,后面tensor b的值在不断变化

解决:全景分割里面初始设定的mask的数量是30个,数据集里的mask多于了30个,这时需要把初始mask数量调大

后续问题:初始设定的mask过大,会导致显存占用过大,因为它会让所有数据集的mask数扩大为设定的数量


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM