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

Error for 8 GPUs #19

Open
wanderine opened this issue Dec 29, 2021 · 1 comment
Open

Error for 8 GPUs #19

wanderine opened this issue Dec 29, 2021 · 1 comment

Comments

@wanderine
Copy link

I can train a 3D GAN using 4 GPUs, but when I try to use 8 GPUs I get this error

File "/scratch/local/MITPGAN3D/trainer.py", line 158, in step_fn  *
    average_samples = utils.random_weight_sample(reals, fakes, self.dimensionality)
File "/scratch/local/MITPGAN3D/utils.py", line 17, in random_weight_sample  *
    return (weight * reals) + ((1 - weight) * fakes)

ValueError: Dimensions must be equal, but are 32 and 64 for '{{node mul_3}} = Mul[T=DT_FLOAT](sub, model_9/activation_14/Tanh)' with input shapes: [32,1,1,1,1], [64,8,8,8,1].

Any idea?

@satra
Copy link

satra commented Dec 29, 2021

@wanderine - i would suggest using the latest nobrainer release. we should be deprecating this repo soon. there have been quite a few changes in the code base and the nobrainer code is the most appropriate.

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