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

KeyError: '_pymodule' #391

Closed m7mdhka closed 3 months ago

m7mdhka commented 3 months ago

I got this error: Traceback (most recent call last): File "C:\Users\m.rahamneh\Documents\MiTool\det\app\detection\model_hub\rtdetrv2\rtdetrv2_torch.py", line 83, in main(args) File "C:\Users\m.rahamneh\Documents\MiTool\det\app\detection\model_hub\rtdetrv2\rtdetrv2_torch.py", line 44, in main cfg.model.load_state_dict(state) File "C:\Users\m.rahamneh\Documents\MiTool\det\app\detection\model_hub\rtdetrv2\core\yaml_config.py", line 36, in model self._model = create(self.yaml_cfg['model'], self.global_cfg) File "C:\Users\m.rahamneh\Documents\MiTool\det\app\detection\model_hub\rtdetrv2\core\workspace.py", line 121, in create module = getattr(cfg['_pymodule'], name) KeyError: '_pymodule'

lyuwenyu commented 3 months ago
cd  RT-DETR/rtdetrv2_pytorch

python tools/train.py -c path/to/config
anewcatwhy commented 2 months ago
cd  RT-DETR/rtdetrv2_pytorch

python tools/train.py -c path/to/config

I'm sorry that I can't understand it,why do that(苦笑) I have the same question,and it really does't have other methods

anewcatwhy commented 2 months ago
cd  RT-DETR/rtdetrv2_pytorch

python tools/train.py -c path/to/config

I'm sorry that I can't understand it,why do that(苦笑) I have the same question,and it really does't have other methods