facebookresearch / Neural_3D_Video

The repository for CVPR 2022 Paper "Neural 3D Video Synthesis"
Other
258 stars 9 forks source link

reduce batch size or number of iterations when using smaller images? #19

Open malfonsoarquimea opened 2 years ago

malfonsoarquimea commented 2 years ago

In order to train a dynerf in a reasonable amount of time on my hardware (nvidia 3090) I assume that I should reduce the image size and reduce either the number of iterations or the batch size (number of rays per iteration). I can fit about 2500 rays on my GPU, but I can accumulate gradients to make a larger effective batch size if needed. So, tu put it clear, I would want to train in about 4 days using your dataset with only one 3090, so I reduced the images to 333x250 pixels and then I can:

Can you provide some insight on what would work better? Thanks in advance!

zhaoyang-lv commented 2 years ago

We have tried before to train on images with reduced resolution, similar to the size you have. We did not get as sharp results as those trained on high resolution.

I could not predict whether it can train on a single GPU though. We never did such experiments. Even for reduced resolution results, we used at least 4 gpus. Significantly reducing the batch size might cause the network hard to converge at high resolution, which might be different trained at a smaller resolution.

malfonsoarquimea commented 2 years ago

thanks for your response. I will try to experiment with and will let you know the results