错误描述:

在运行pytorch-yolov3的时候,报了以下错误:
UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead

解决方案:

找到model.py
添加如下标记的两行代码
完美解决 UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool

OK!

相关文章:

  • 2022-12-23
  • 2021-08-13
  • 2022-03-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-07
猜你喜欢
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案