arbitularov/SiamRPN-PyTorch

the error during training

Re3write opened this issue · 6 comments

File "/home/SiamRPN-PyTorch/train/data.py", line 136, in open
img_mean_d )
File "/home/SiamRPN-PyTorch/train/data.py", line 192, in get_instance_image
instance_img, scale_x = self.crop_and_pad(img, cx, cy, size_x, s_x, img_mean)
File "/home/SiamRPN-PyTorch/train/data.py", line 215, in crop_and_pad
xmin = int(self.round_up(xmin + left))
ValueError: cannot convert float NaN to integer

how can i fix it?

You need delete "cache" folder and try again

@arbitularov thanks a lot ,by the way have you finished the train code?i see you just update 17 hours ago

You are welcome, now I'am not finished

Okay,thanks

@arbitularov
if index == 8627 or index == 8629 or index == 9057 or index == 9058:
index += 1

the index shound not add 1,when the index=9057, it will be 9058 and get error

yes, you are right.
index += 3 it is ok