pytracking icon indicating copy to clipboard operation
pytracking copied to clipboard

How to allow multi-gpu training in KYS?

Open njuxx opened this issue 4 years ago • 2 comments

Hi, I added settings.multi_gpu = True and

if settings.multi_gpu:
        net = MultiGPU(net, dim=1)

in ltr/train_settings/kys/kys.py and then ran command "python ltr/run_training.py kys kys", but it still trained only on 1 gpu. So I'd like to know how to train KYS using multiple GPUs? and how to specify the number of gpu to use?

njuxx avatar Feb 23 '21 15:02 njuxx

Hi,

The code should use multiple gpus with the modifications you made. Could you try printing torch.cuda.device_count() to check whether multiple gpus are indeed visible to PyTorch?

goutamgmb avatar Aug 12 '21 14:08 goutamgmb

@njuxx I have the same problem as you, have you found a solution?

DonDominic avatar Apr 06 '22 15:04 DonDominic