时间:2020-10-13 10:06:57 | 栏目:Python代码 | 点击:次
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 int8 to bool