arbitularov / SiamRPN-PyTorch

Implementation SiamRPN on PyTorch with GOT-10k dataset
103 stars 19 forks source link

the error during training #4

Open Re3write opened 5 years ago

Re3write commented 5 years ago

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?

arbitularov commented 5 years ago

You need delete "cache" folder and try again

Re3write commented 5 years ago

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

arbitularov commented 5 years ago

You are welcome, now I'am not finished

Re3write commented 5 years ago

Okay,thanks

Re3write commented 5 years ago

@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

arbitularov commented 5 years ago

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