deeplabv3-plus-pytorch
deeplabv3-plus-pytorch copied to clipboard
train出现尺寸不对
ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256, 1, 1])
你是不是在B站问过啦
对,已经解决啦,多谢大佬
同问
对,已经解决啦,多谢大佬
怎么解救呀
batch设置偶数看看把
大佬,我把batchsize已经设置为2,但是在多卡训练的时候还是出现了这个错误,该怎么办呢 raise ValueError('Expected more than 1 value per channel when training, got input size {}'.format(size)) ValueError: Expected more than 1 value per channel when training, got input size torch.Size([1, 256, 1, 1]) Init_Epoch = 100 Freeze_Epoch = 50 Freeze_batch_size = 2 UnFreeze_Epoch = 150 Unfreeze_batch_size = 2
你几个卡?
@bubbliiiing 大佬,我也遇到这个问题了,batch设成偶数还是会报错,有四张卡
分配到每个卡上的是偶数就可以应该
@bubbliiiing 大佬,代码里面batch已经是偶数了,但在服务器上只能跑50轮,第51轮就报这个错误
截图看看呢
你的训练参数
……你服务器单卡?