lyuwenyu / RT-DETR

[CVPR 2024] Official RT-DETR (RTDETR paddle pytorch), Real-Time DEtection TRansformer, DETRs Beat YOLOs on Real-time Object Detection. 🔥 🔥 🔥
Apache License 2.0
2.61k stars 303 forks source link

AttributeError: 'NoneType' object has no attribute 'cleanup' #415

Open xinyuzhang1026 opened 3 months ago

xinyuzhang1026 commented 3 months ago

RT-DETRv2 error: AttributeError: 'NoneType' object has no attribute 'cleanup'

Traceback (most recent call last): File "C:/Users/userone/Desktop/rtdetrv2_pytorch/tools/train.py", line 65, in main(args) File "C:/Users/userone/Desktop/rtdetrv2_pytorch/tools/train.py", line 35, in main solver.fit() File "C:\Users\userone\Desktop\rtdetrv2_pytorch\tools..\src\solver\det_solver.py", line 67, in fit test_stats, coco_evaluator = evaluate( File "C:\Users\userone.conda\envs\RT\lib\site-packages\torch\utils_contextlib.py", line 115, in decorate_context return func(*args, kwargs) File "C:\Users\userone\Desktop\rtdetrv2_pytorch\tools..\src\solver\det_engine.py", line 110, in evaluate coco_evaluator.cleanup() AttributeError: 'NoneType' object has no attribute 'cleanup'**

xinyuzhang1026 commented 3 months ago

I have found the problem,I use RTDETR's coco_detection.yml instead RTDETRv2's coco_detection.yml,but they are different.