Spatial-Temporal-Re-identification icon indicating copy to clipboard operation
Spatial-Temporal-Re-identification copied to clipboard

Doesn't seem to be able to train using multiple GPUs.

Open haochange opened this issue 6 years ago • 3 comments

haochange avatar Dec 22 '18 07:12 haochange

  1. As shown in this repos, small batchsize (e.g., 32) can also achieve competitive results. One GPU with 5G may be enough.

  2. If you want to train using multiple GPUs, you can remove the codes about GPU in training code and use CUDE_VISIBLE_DEVICES=1,2,4 (1,2,4 denote you GPU IDs) before the training command. For example, the name of your code is train.py, you can use the command: CUDE_VISIBLE_DEVICES=1,2,4 train.py --train_all --name xxx...

Wanggcong avatar Dec 22 '18 07:12 Wanggcong

  1. As shown in this repos, small batchsize (e.g., 32) can also achieve competitive results. One GPU with 5G may be enough.
  2. If you want to train using multiple GPUs, you can remove the codes about GPU in training code and use CUDE_VISIBLE_DEVICES=1,2,4 (1,2,4 denote you GPU IDs) before the training command. For example, the name of your code is train.py, you can use the command: CUDE_VISIBLE_DEVICES=1,2,4 train.py --train_all --name xxx...

I already remove the code abt the GPU in the training code,but it didn't work,still run on one GPU,do you have any suggestion?

hensonwells avatar Sep 11 '19 07:09 hensonwells

  1. As shown in this repos, small batchsize (e.g., 32) can also achieve competitive results. One GPU with 5G may be enough.
  2. If you want to train using multiple GPUs, you can remove the codes about GPU in training code and use CUDE_VISIBLE_DEVICES=1,2,4 (1,2,4 denote you GPU IDs) before the training command. For example, the name of your code is train.py, you can use the command: CUDE_VISIBLE_DEVICES=1,2,4 train.py --train_all --name xxx...

I already remove the code abt the GPU in the training code,but it didn't work,still run on one GPU,do you have any suggestion?

Could you please report the error log?

Wanggcong avatar Sep 11 '19 08:09 Wanggcong