ZPDu / DAI-Net

[CVPR 2024] Boosting Object Detection with Zero-Shot Day-Night Domain Adaptation
https://zpdu.github.io/DAINet_page/
108 stars 7 forks source link

Regarding the issue of training logs. #18

Closed BAI-WQ closed 3 weeks ago

BAI-WQ commented 1 month ago

Hello, author! Thank you very much for your outstanding work. I am very interested in your project! However, when I started training for reproducing low-light face detection on WiderFace--DarkFace, I noticed that no logs were generated. After reading the source code, I couldn't figure out the issue, as the map function was not defined. Could you please advise me on how to handle this part? I would appreciate your help

ZPDu commented 1 month ago

Hi, thanks for your interest. Could you elaborate on the training logs that you need? If loss logs are needed, you can simply add a SummaryWriter to the code.

BAI-WQ commented 1 month ago

Thank you for your response!I followed the instructions in your README file to run the program, but it didn’t generate the corresponding training.log. Everything else runs fine, except for the absence of the training.log. I am working on face detection, and I noticed that in your code the mAP calculation is not included—do I need to add it manually!By the way, could you let me know which GPU you used to run the program? 微信截图_20241030192746

ZPDu commented 1 month ago

Thanks for your reply. As I recall, we didn’t calculate mAP during the training of face detection. Instead, we used the validation loss to monitor the model’s performance and selected the best-performing one for testing.

BAI-WQ commented 1 month ago

Alright, could you let me know why the training.log file isn’t generated when I run the program? Does the code above need any adjustments?

ZPDu commented 1 month ago

The code looks fine to me. I would suggest specifying an absolute file path or closing the logging file to force it to write. Alternatively, you could start with a toy example to ensure the logging works first.

ZPDu commented 1 month ago

And also notice that you have a '、' after 'losses += loss.item()'. Maybe checking the code again could help

BAI-WQ commented 1 month ago

Thank you for your advise, I will try it!!!