Deci-AI / data-gradients

Computer Vision dataset analysis
Apache License 2.0
293 stars 33 forks source link

Prepare the logging for DataConfig #103

Closed Louis-Dupont closed 1 year ago

Louis-Dupont commented 1 year ago

loading/saving cache of DataConfig (coming soon) requires a set of functions that we don't have. This is what I add in this PR.

I also took it as an opportunity to abstract away the file logging into a single class, because the code was full of these logging attributes and method calls ... (this was becoming even worse with the newly required functions)

Note: Not sure about the name log_manager because it can be confused with the logger object, but it's not the same. I just could not come up with a better name, let me know if you have any idea