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()
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
以上这篇解决pytorch-yolov3 train 报错的问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持易盾网络。