liznerski / fcdd

Repository for the Explainable Deep One-Class Classification paper
MIT License
225 stars 62 forks source link

Disabling log data output except snapshot.pt #38

Closed GreatScherzo closed 2 years ago

GreatScherzo commented 2 years ago

Hi again @liznerski !

I wish to edit the log data output and leave only snapshot.pt as an output. Where should I be editing to do so?

Once again, thank you very much for taking your time!

liznerski commented 2 years ago

Hey. Well, there are several ways you can achieve this. Since almost all I/O interactions happen through the use of the Logger, the quickest one would be to add something like a self.active attribute to it. All methods--apart from the snapshot one--would test on this variable and actually do nothing if it's false. Then you could just set it false at the beginning of your training.

liznerski commented 2 years ago

Btw, feel also free to write me a mail.

GreatScherzo commented 2 years ago

Thank you for your answer! I'll try creating that variable that disables other log outputs. I'll close this issue if there's no problem whatsoever.

I'll be sure to drop a mail to you anytime soon!

GreatScherzo commented 2 years ago

I was able to do it without any major problems. As suggested above, I added a variable that disables every saving method (except saving the snapshot) in the Logger class if false.

Thank you!