aim-uofa / AdelaiDet

AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
https://git.io/AdelaiDet
Other
3.37k stars 647 forks source link

Why the logging level is set to `NOTSET`. Is it a expected setting? #586

Open 2605759123 opened 1 year ago

2605759123 commented 1 year ago

I find the logging level is set to NOTSET in some places, which cause the INFO level message can't be output. For example:
https://github.com/aim-uofa/AdelaiDet/blob/4a3a1f7372c35b48ebf5f6adc59f135a0fa28d60/adet/data/dataset_mapper.py#L27
which cause the below message can't be output:
https://github.com/aim-uofa/AdelaiDet/blob/4a3a1f7372c35b48ebf5f6adc59f135a0fa28d60/adet/data/dataset_mapper.py#L61-L63
Is this a expect behavior? If not, I would like to submit a pull request.

How to reproduce

You can run tools/visualize_data.py and observe whether the following code outputs normally. https://github.com/aim-uofa/AdelaiDet/blob/4a3a1f7372c35b48ebf5f6adc59f135a0fa28d60/adet/data/dataset_mapper.py#L61-L63