UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool insteadhttps://github.com/eriklindernoren/PyTorch-YOLOv3/blob/master/models.py#L191 将model.py obj_mask转为int8 bool obj_mask=obj_mask.bool() # convert int8 to bool noobj_mask=noobj_mask.bool() #convert int8 to bool