🚀 你的YOLO部署神器。TensorRT Plugin、CUDA Kernel、CUDA Graphs三管齐下,享受闪电般的推理速度。| Your YOLO Deployment Powerhouse. With the synergy of TensorRT Plugins, CUDA Kernels, and CUDA Graphs, experience lightning-fast inference speeds.
I looked into source code and found that when loading YOLOv8, it uses return YOLO(model=weights, verbose=False).model which is a self-implemented method. However in YOLOv5 and v9, it uses the torch.hub.load. So I wanna know what causes this difference?
当直接使用torch.load加载模型,且脚本不在项目目录下时,会出现ModuleNotFoundError: No module named 'models'的错误。这是YOLOv5的一个历史遗留问题。由于YOLOv7和YOLOv9是在YOLOv5的基础上进行修改的,因此它们也存在这个问题。ultralytics社区建议使用torch.hub.load来加载模型。
Hi, I am a new guy in object detection.
I looked into source code and found that when loading YOLOv8, it uses
return YOLO(model=weights, verbose=False).model
which is a self-implemented method. However in YOLOv5 and v9, it uses thetorch.hub.load
. So I wanna know what causes this difference?