如何有效排查并解决pytorch-yolov3训练过程中的错误?
- 内容介绍
- 文章标签
- 相关推荐
本文共计146个文字,预计阅读时间需要1分钟。
pythonWarning: 使用 dtype=torch.uint8 进行索引现在已被弃用,请使用 dtype=torch.bool 替代。
UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead
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 报错的问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持易盾网络。
本文共计146个文字,预计阅读时间需要1分钟。
pythonWarning: 使用 dtype=torch.uint8 进行索引现在已被弃用,请使用 dtype=torch.bool 替代。
UserWarning: indexing with dtype torch.uint8 is now deprecated, please use a dtype torch.bool instead
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 报错的问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持易盾网络。

