UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead
https://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 in