发生异常: AttributeError
'AdaSeqTextLoggerHook' object has no attribute 'json_log_path'
File "/codes/hg/raner-trainer/AdaSeq/adaseq/training/hooks/text_logger_hook.py", line 81, in _dump_log
with open(self.json_log_path, 'a+') as f:
File "/codes/hg/raner-trainer/AdaSeq/adaseq/training/default_trainer.py", line 142, in dump_log
self._file_logger._dump_log(log_dict)
File "/codes/hg/raner-trainer/AdaSeq/adaseq/training/default_trainer.py", line 164, in test
self.dump_log(log_dict)
File "/codes/hg/raner-trainer/AdaSeq/adaseq/commands/test.py", line 93, in test_model
trainer.test(checkpoint_path)
File "/codes/hg/raner-trainer/test.py", line 17, in main
test_model(args.work_dir, args.device, args.checkpoint_path)
File "/codes/hg/raner-trainer/test.py", line 28, in <module>
Checklist before your report.
masterbranch of AdaSeq.What happened?
运行测试模型代码保存:
object has no attribute 'json_log_path'
Python traceback
show/hide
Operating system
Linux B760M-H-DDR4 6.8.0-44-generic #44-Ubuntu SMP PREEMPT_DYNAMIC Tue Aug 13 13:35:26 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Python version
3.8.20
Output of pip freeze
show/hide
How to reproduce
show/hide
Code of Conduct