Pointnet_Pointnet2_pytorch icon indicating copy to clipboard operation
Pointnet_Pointnet2_pytorch copied to clipboard

How to use multiple GPUs for training?

Open heyknow opened this issue 3 years ago • 1 comments

heyknow avatar May 10 '22 07:05 heyknow

Import torch.nn

Wrap the model in nn.DataParallel() like this below, classifier = torch.nn.DataParallel(model.get_model(num_class, normal_channel=args.use_normals))

In terminal, export CUDA_VISIBLE_DEVICES=<GPU numbers you want to use seperated by commas>

Now run train_classification.py

jisnoo123 avatar Jun 18 '25 18:06 jisnoo123