mcordts / cityscapesScripts

README and scripts for the Cityscapes Dataset
MIT License
2.19k stars 608 forks source link

coloredlogs should only install the EvalObjectDetection3d logger #139

Open Owen-Liuyuxuan opened 3 years ago

Owen-Liuyuxuan commented 3 years ago

In the current version, the evalObjectDetection3d.py file will install the coloredlogs for the root logger "once included".

When I was trying to use the library in a larger project, it overwrote the logging level of other loggers in other libraries.

I would propose to install the logger only for the evaluator logger, with only a change in line 76 of evalObjectDetection3d.py.

coloredlogs.install(level='INFO', logger=logger)

I could open a pull request if that is an accepted idea.