RuntimeError: Subtraction, the `-` operator, with a bool tensor is not supported. If you are trying
RuntimeError: Subtraction, the -
operator, with a bool tensor is not supported. If you are trying to invert a mask, use the ~
or bitwise_not()
operator instead
今天训练的时候报了一个错
需要将程序中的1-pred_best_iou换成 ~ pred_best_iou
可以参考链接
Pytorch 1.2 Mask Inversion