Shimingyi / MotioNet

A deep neural network that directly reconstructs the motion of a 3D human skeleton from monocular video [ToG 2020]
https://rubbly.cn/publications/motioNet/
BSD 2-Clause "Simplified" License
554 stars 82 forks source link

About multi-GPU operation #10

Closed Z-Z-J closed 3 years ago

Z-Z-J commented 3 years ago

I seem to find two code errors! In base_trainer.py
code: if gpu_id > n_gpu: msg = "Warning: The number of GPU\'s configured to use is {}, but only {} are available on this machine.".format(n_gpu_use, n_gpu)

                            problem :   n_gpu_use is not defined

code: list_ids = list([gpu_id]) if len(device_ids) > 1: self.model = torch.nn.DataParallel(model, device_ids=device_ids)

                     problem:  len(device_ids)  is  always  1,so cant use multi-GPU
Shimingyi commented 3 years ago

Now I havn't implemented multi-GPU training because this model doesn't require a lot of resourecs. But I will support it to support multi-GPU training, thanks for your feekback!

anas-zafar commented 1 year ago

Hi @Shimingyi, were you have to implement multi-GPU training?