pytorch-retinanet
pytorch-retinanet copied to clipboard
Expected object of type torch.LongTensor but found type torch.FloatTensor
the torch version:torch 0.4.1 When i use python 2.7 to train the project ,found a problem as follow: `` python train.py ==> Preparing data..
Epoch: 0
Traceback (most recent call last):
File "train.py", line 114, in
I trained this project with voc2012 ,downloaded by myself , i tried to correct this problem, but caused some others problem similarly .
I meet the same problem while i use python 3.6
I meet the same problem while i use python 3.6
so ,did you solve this problem?
I meet the same problem while i use python 3.6
so ,did you solve this problem?
xy = meshgrid(fm_w,fm_h) + 0.5 # [fm_h*fm_w, 2] xy = xy.float() I think this repo has some bugs, so choose another work to follow.
I also have the same issues. Can anyone help me
you can solver it by add any code like that: targets = targets.type(torch.LongTensor)
@Jolntu Hi, where did you change the type of targets? I met the same problem,thx!
See issue #62 for a solution