GPU选择debug-2

This commit is contained in:
JIAKUNHAO 2022-11-23 20:37:46 +08:00
parent 45ffb9e62a
commit 8b428437e9

View File

@ -609,7 +609,7 @@ def main(opt,data_list,id,callbacks=Callbacks()):
# DDP mode # DDP mode
device = select_device(opt.device, batch_size=opt.batch_size) device = select_device(opt.device, batch_size=opt.batch_size)
print(device.type) print('\n','device:',device,'\n')
# if LOCAL_RANK != -1: # if LOCAL_RANK != -1:
# msg = 'is not compatible with YOLOv5 Multi-GPU DDP training' # msg = 'is not compatible with YOLOv5 Multi-GPU DDP training'
# assert not opt.image_weights, f'--image-weights {msg}' # assert not opt.image_weights, f'--image-weights {msg}'