openvinotoolkit / anomalib

An anomaly detection library comprising state-of-the-art algorithms and features such as experiment management, hyper-parameter optimization, and edge inference.
https://anomalib.readthedocs.io/en/latest/
Apache License 2.0
3.41k stars 616 forks source link

[Task]: Add logger to write to csv files. #2055

Open ashwinvaidya17 opened 1 month ago

ashwinvaidya17 commented 1 month ago

What is the motivation for this task?

It is handy to collect logged metrics to a csv file.

Describe the solution you'd like

  1. Add another logger in src/anomalib/loggers that writes metrics to a csv file.
  2. The solution will probably involve sub-classing Lightning's CSV Logger.
  3. Another good feature to add would be to print the collected metrics as a single table like the _print_tabular_results method in the benchmark job.

Additional context

No response

zhaozzt commented 1 month ago

Please teach me how to modify the code