Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image resizing makes Img losses on batches not converge #101

Open
iraj465 opened this issue Dec 5, 2022 · 1 comment
Open

Image resizing makes Img losses on batches not converge #101

iraj465 opened this issue Dec 5, 2022 · 1 comment

Comments

@iraj465
Copy link

iraj465 commented Dec 5, 2022

Hi,
I found that resizing images and then training makes the convergence much slower as compared to keeping the original resolutions, but for higher resolutions i get CUDA OOM errors. Is there a tradeoff that hits the sweet spot or is there an alternative for this?

Any help is appreciated

@jmunkberg
Copy link
Collaborator

I found that resizing images and then training makes the convergence much slower as compared to keeping the original resolutions

This is not something we have observed. For example, try changing the training resolution in the bob config, from 512x512 to 1024x1024.

Also, we rescale the NeRD datasets before training, as shown here: https://github.com/NVlabs/nvdiffrec/blob/main/data/download_datasets.py

In general, we recommend training at as large as possible resolution (given your GPU) as that will improve texture and geometry quality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants