Joker9194

Results 9 comments of Joker9194

> 我是训练好,使用训练好的权重文件做测试,一直报permission error 在Linux环境下的话得进行相应权限设置

你的Targets是0, 看看你测试集的标注是否对应上

or you need check the .cfg, I use the worse cfg file also face the problem.

> > 你的Targets是0, 看看你测试集的标注是否对应上 > > 应该对应上了啊 因为我数据集是直接划分成训练集和测试集的,既然训练集能够显示出targets数量,那测试集应该也没问题啊 而且我使用yolov5来训练过 可以显示target数量和p、r、map等值 我自己没有遇到过这个问题,你可以在这两行调试一下看看: https://github.com/WongKinYiu/PyTorch_YOLOv4/blob/eb5f1663ed0743660b8aa749a43f35f505baa325/test.py#L100-L101 看看path的值以及dataloader的情况

我今天也出现了这个问题,问题的主要原因是我使用test的时候,cfg文件和我训练时的cfg文件不一致导致的,看看是不是因为这个问题。

I had the same question, do you solve it?

I have solved it, because the type of output is torch.float16, but the type of masks and rmasks is torch.float 32, so transform the type `if features.is_cuda: masks = masks.type(torch.half)...

I update the code for the issue, it worked for me. ``` if features.is_cuda: if features.type() == 'torch.cuda.HalfTensor': masks = masks.type(torch.half) rmasks = rmasks.type(torch.half) carafe_ext.forward(features, rfeatures, masks, rmasks, kernel_size, group_size,...