open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.3k stars 9.42k forks source link

The child configuration file inherits the parent configuration file, and then modifies the child configuration file, which does not take effect? #10891

Open notfacezhi opened 1 year ago

notfacezhi commented 1 year ago

【Problem description】 In the dino configuration file, run the configuration file and find that there are some rewritten configurations in the dino-4scale_r50_8xb2-12e_coco.py file. The field of key = 'train_pipeline' is overwritten, and then re-handed to key = ['train_dataloader']. However, during the training process, the field was not overridden, train_pipeline was successfully overridden, but the'pipeline 'field in train_dataloader' was not overridden, or inherited the'pipeline 'field in the original coco_detection.py, why is this?

this is config.py image Found that the field pipeline has not been overwritten!!! image The field piple is inherited from coco_detection.py file image because import 'base = [...]' coco_detection.py image However, the source file needs to modify the information!! Why is there no modification!

hhaAndroid commented 1 year ago

@notfacezhi I think this is impossible. I suggest you double-check it.