Closed fortunechen closed 2 years ago
Thanks, you are correct. However, we don't use steps_per_epoch in the training loop (we only use num_train_steps rather than counting epochs), so this does not affect training.
Hi,
But num_train_steps are calculated based on steps_per_epoch.
In my case with 1000 training examples and 200 validation example, if I go for batch_size = 8 , d_step_per_g_step = 2 num_train_steps = 2500 and it fails around step 1600 with OutOfRangeError at below step. https://github.com/google-research/xmcgan_image_generation/blob/22a7ef2914787904949fe1fc3f5e560f1e75db29/xmcgan/train_utils.py#L421
Am I missing something here?
Hi,
Thx for your open-source code !
I find that training steps per epoch is not relevant with batch size. In line 343
maybe it shoud be