IDEA-Research / detrex

detrex is a research platform for DETR-based object detection, segmentation, pose estimation and other visual recognition tasks.
https://detrex.readthedocs.io/en/latest/
Apache License 2.0
1.9k stars 199 forks source link

Wandb init #301

Closed ShenghaiRong closed 10 months ago

ShenghaiRong commented 10 months ago

When enable wandb, it encounters an error from the following line: https://github.com/IDEA-Research/detrex/blob/b42b0e1c7b47a4d32f2fd18d0b6dced41a8ab8a5/detrex/utils/events.py#L38. It seems that the initialization of wandb does not support DictConfig. After modifying the above line to : config=OmegaConf.to_container(cfg, resolve=True), it works.

rentainhe commented 10 months ago

Thank you so much for reporting this issue, I was wondering what's the OmegaConf version in your environment, would you like to propose a new pull request for fixing this : ) ?

ShenghaiRong commented 10 months ago

The OmegaConf version in my environment is 2.1.0. Ok, I will PR for this.