YOLOv7_OBB 运行异常记录
(wind_2021) H:\PytorchProject\YOLOv7_OBB-main> (wind_2021) H:\PytorchProject\YOLOv7_OBB-main>python detect.py --weights 'models/yolov7_kld_ota.pt' --source 'data/img/' --img 1024 --device 2 --hide-labels --hide-conf Traceback (most recent call last): File "detect.py", line 10, in <module> from models.experimental import attempt_load File "H:\PytorchProject\YOLOv7_OBB-main\models\experimental.py", line 6, in <module> from models.common import Conv, DWConv File "H:\PytorchProject\YOLOv7_OBB-main\models\common.py", line 15, in <module> from utils.datasets import letterbox File "H:\PytorchProject\YOLOv7_OBB-main\utils\datasets.py", line 29, in <module> from utils.general import check_requirements, xyxy2xywh, xywh2xyxy, xywhn2xyxy, xyn2xy, segment2box, segments2boxes, \ File "H:\PytorchProject\YOLOv7_OBB-main\utils\general.py", line 24, in <module> from utils.nms_rotated import obb_nms File "H:\PytorchProject\YOLOv7_OBB-main\utils\nms_rotated\__init__.py", line 1, in <module> from .nms_rotated_wrapper import obb_nms, poly_nms File "H:\PytorchProject\YOLOv7_OBB-main\utils\nms_rotated\nms_rotated_wrapper.py", line 4, in <module> from . import nms_rotated_ext ImportError: cannot import name 'nms_rotated_ext' from partially initialized module 'utils.nms_rotated' (most likely due to a circular import) (H:\PytorchProject\YOLOv7_OBB-main\utils\nms_rotated\__init__.py)
目前还没找到有效的解决方法
这个解决方法也是ubuntu下的:https://blog.csdn.net/qq_41641544/article/details/125758847
##########################
标签:YOLOv7,nms,记录,OBB,PytorchProject,rotated,main From: https://www.cnblogs.com/herd/p/17178873.html