NAFNet icon indicating copy to clipboard operation
NAFNet copied to clipboard

Unable to generate the log file.

Open Mohan2351999 opened this issue 2 years ago • 2 comments

When trying to run the train.py file, I'm unable to generate the .log file. When I tried to debug looks like logger.hasHandlers is always "true", but when I tried to change the code by giving a condition(so that it ignore the "if condition in get_root_logger" for first time and creates the handler), then I was able to generate the log file but the logger is not writing into the log file. Could you please look into this issue please, any suggestion is apprecitated.

Thanks, Mohan.

Mohan2351999 avatar Jan 04 '23 00:01 Mohan2351999

I met the same question, please check this link https://github.com/XPixelGroup/BasicSR/blob/479ec97e8a/basicsr/utils/logger.py with the repo code, just replace it by the link's part

zrongcheng avatar Feb 17 '23 09:02 zrongcheng

我遇到了同样的问题,请用 repo 代码检查此链接 https://github.com/XPixelGroup/BasicSR/blob/479ec97e8a/basicsr/utils/logger.py,只需将其替换为链接的部分即可

File "/mnt/fys/NAFNet-main/basicsr/train.py", line 270, in main model.validation(val_loader, current_iter, tb_logger, TypeError: validation() takes from 4 to 5 positional arguments but 7 were given

do you know hou to solve it

fys12 avatar Dec 02 '23 07:12 fys12