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

RuntimeError: Can't call main_program when full_graph=False #397

Closed Pecako2001 closed 3 months ago

Pecako2001 commented 3 months ago

File "/git/RT-DETR/rtdetr_paddle/ppdet/engine/trainer.py", line 937, in _get_infer_cfg_and_input_spec input_spec, static_model.forward.main_program, File "/miniconda3/envs/rtdetrpaddle/lib/python3.10/site-packages/paddle/jit/dy2static/program_translator.py", line 757, in main_program raise_error_template("main_program")() File "/miniconda3/envs/rtdetrpaddle/lib/python3.10/site-packages/paddle/jit/dy2static/program_translator.py", line 691, in _raise_error raise RuntimeError(error_template.format(func=func_str)) RuntimeError: Can't call main_program when full_graph=False. Use paddle.jit.to_static(full_graph=True) instead.