The second-to-last line in your log seems to use the targets variable, which you pass in your code in line 99 of FRCNN_Resnet_training.py. Maybe targets is in the wrong format? It needs to be an int or byte tensor, but it is a float tensor?