Open Morgan-Gan opened 4 years ago
What's pytorch version you use?
@Morgan-Gan You can solve this problem by applying the following change:
opp_labels = (batch_box_preds[..., -1] > 0) ^ dir_labels.bool()
I think it's just due to different pytorch versions.
What's pytorch version you use?
What's pytorch version you use?
pytorch 1.4.1,it's pytorch versions problem. Thank you for your reply !
@Morgan-Gan You can solve this problem by applying the following change:
opp_labels = (batch_box_preds[..., -1] > 0) ^ dir_labels.bool()
I think it's just due to different pytorch versions.
You are right, thank you !
Any one know that-- opp_labels = (box_preds[..., -1] > 0) ^ dir_labels.byte() RuntimeError: result type Byte can't be cast to the desired output type Bool