YOLO+pytorch——expected scalar type Half but found Float

把torch更新到1.6版本就可以了。

原文地址:https://www.cnblogs.com/MarsMercury/p/13734658.html