Junjue-Wang / LoveDA

[NeurIPS 2021] LoveDA: A Remote Sensing Land-Cover Dataset for Domain Adaptive Semantic Segmentation
344 stars 49 forks source link

Meaning of line 228 in the Unsupervised_Domian_Adaptation/utils/tools.py #56

Closed simonep1052 closed 1 year ago

simonep1052 commented 1 year ago

Hello,

Thank you very much for making your excellent work open to the public.

May I ask you the meaning of line 228 in tools.py for Unsupervised Domain Adaptation? I found that when running bash ./scripts/predict_cbst.sh, it will generate a bug saying AttributeError: 'NoneType' object has no attribute 'info'. This bug is due to line 228 and also the default setting _default_logger=None. Hence, I wonder what this line is for. Also, I would like to let you know that after commenting the line 228, the command can be run successfully.

Many thanks for your help.

Junjue-Wang commented 1 year ago

This is a logger to print the details of your training or testing

simonep1052 commented 1 year ago

I see. Thank you very much.