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

[train_vqvae] multiple gpu seems not work as expected #45

Open
kimdn opened this issue Aug 27, 2020 · 1 comment
Open

[train_vqvae] multiple gpu seems not work as expected #45

kimdn opened this issue Aug 27, 2020 · 1 comment

Comments

@kimdn
Copy link

kimdn commented Aug 27, 2020

Thank you for sharing this great code.

I have used infovae as a subsitute of beta-vae and traditional vae (beta=1).
However, I think that your vq-vae-2 better reconstructs images.

Unfortunately, when I used multiple gpus

#SBATCH --gres=gpu:4

python /people/kimd999/script/python/cryoEM/vq-vae-2-pytorch/train_vqvae.py /people/kimd999/MARScryo/dn/data/full/PDX/coexp/input --size 256 --n_gpu 4

it reconstructed image poorly (blank images),
and didn't minimize mse that much (mse: 0.01311 after 32 epochs).

While using single gpu

#SBATCH --gres=gpu:1

python /people/kimd999/script/python/cryoEM/vq-vae-2-pytorch/train_vqvae.py /people/kimd999/MARScryo/dn/data/full/PDX/coexp/input --size 256

reconstructed images better (almost as if the input image),
and minimized mse better (mse: 0.00583 after 12 epochs).

Consequently, using 1 gpu technically "runs faster" with respect to quality performance
although it took more time per epoch (4 hr/ epoch) than 4 gpus' 1.4 hr/ epoch.

I wonder whether you have experienced like this as well?

@rosinality
Copy link
Owner

I didn't saw that kind of the problems. Both distributed or single gpu training results similar results I think.

@kimdn kimdn changed the title multiple gpu seems not work as expected [train_vqvae] multiple gpu seems not work as expected Sep 2, 2020
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