Page 1 of 1

How was the default value of save_interval selected?

Posted: Mon May 01, 2023 1:58 pm
by obicons

Hello,

I'm hoping someone can help answer this question:

How was the default value of save_interval selected? For example, https://github.com/deepfakes/faceswap/b ... s.py#L1063.


Re: How was the default value of save_interval selected?

Posted: Mon May 01, 2023 3:43 pm
by bryanlyon

Low enough that you don't lose too much time if it crashes, high enough that you don't lose too much time with excessive saves.

It's probably no longer the best choice, because it was picked when GPUs and storage were slower.


Re: How was the default value of save_interval selected?

Posted: Mon May 01, 2023 5:32 pm
by obicons

Thanks for the reply, @bryanlyon.

Was there a methodology used to manage these tradeoffs in the first place? Or was it selected based on developer experiences?


Re: How was the default value of save_interval selected?

Posted: Tue May 02, 2023 11:19 am
by torzdf

Just based on experience. It used to be 100 iterations. I bumped it to 250 when we moved to Tensorflow 2.x