License_Plate_Detection_Pytorch
License_Plate_Detection_Pytorch copied to clipboard
train
您好,我能问个问题吗,在训练数据集的时候,出现下面的情况是什么问题呢? RuntimeError: Expected tensor for argument #2 'targets' to have scalar type Int; but got torch.FloatTensor instead (while checking arguments for ctc_loss_cpu) @xuexingyu24
@xuexingyu24 您好,有时间可以解答一下吗?谢谢
@ShydowLi @xuexingyu24 how do you solve the problem? please telI me if do, thanks. I try ro operate "labeles = torch.IntTensor(labels)" or "labels = Variable(labels, requires_grad=False).cuda()”, but it does not work and occur new erros.
change labels to int will solve the problem. ex. labels = labels.int()