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

A question: batch size 6 #2

Closed
thusinh1969 opened this issue Jul 24, 2021 · 1 comment
Closed

A question: batch size 6 #2

thusinh1969 opened this issue Jul 24, 2021 · 1 comment

Comments

@thusinh1969
Copy link

thusinh1969 commented Jul 24, 2021

I managed to get an RTX3090 which has 16G. With Tensorflow version of Clovaai, I managed to get a batch size of 6 on dataset 512x512 (eats up 18G GPU) and still training as it run extremely slowly (and seems heavy) compares to StyleGan V2 on Pytorch.

What do you think of your codes on batch size 6 would it be worth trying? My dataset is purely indoor scene and furniture, close to million of images.

Anyhow, would you make your code work on multi GPUs, please ?

Thanks,
Steve

@eps696
Copy link
Owner

eps696 commented Jul 24, 2021

  1. RTX 3090 has 24G RAM onboard, there's no model with 16G
  2. you mentioned StyleGAN - did you mistype? this repo is about StarGAN
  3. batch 6 should be more or less ok, but i'm quite sceptic about size 512. this is written in the readme.
  4. default iteration count for this setup is ~100k; 300k usually leads to overfit (this is also in the readme). i'm not sure if 1M images here makes any sense.
  5. unfortunately, i'm not an expert in parallel processing, and have no plans to learn multi-GPU coding soon.

UPD: i didn't manage to fit batch 6 of 512x512 on 3090 - maximum 5 with this code.

@eps696 eps696 closed this as completed Jul 24, 2021
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