contrastive-unpaired-translation icon indicating copy to clipboard operation
contrastive-unpaired-translation copied to clipboard

I met batch-size problem.

Open edwardcho opened this issue 3 years ago • 3 comments

Hello Sir,

When try training my-dataset (image size 512x512 3ch, png), I met batch-size error. My GPU's spec is GTX 1080 Ti. (12 G) I could train batch-size 1 only. If set 2 more, I could't train it. Is this normal??

Thanks, Edward Cho.

edwardcho avatar Dec 22 '21 04:12 edwardcho

Do you get an out-of-memory error? You are training at higher resolution (4 times more pixels than a 256x256 image), so you can't fit 2 or more samples in the batch.

I actually recommend training with batch size 1, which seems to produce the best result given the same number of epochs.

taesungp avatar Jan 20 '22 22:01 taesungp

Hello Sir, Yes, I got out-of-memory error on GPU when batch-size 2.

Thanks, Edward Cho.

edwardcho avatar Feb 18 '22 01:02 edwardcho