GPU选择debug-3
This commit is contained in:
@ -608,6 +608,7 @@ def main(opt,data_list,id,callbacks=Callbacks()):
|
||||
opt.save_dir = str(increment_path(Path(opt.project) / opt.name, exist_ok=opt.exist_ok))
|
||||
|
||||
# DDP mode
|
||||
print('\n','opt.device:',opt.device,'\n')
|
||||
device = select_device(opt.device, batch_size=opt.batch_size)
|
||||
print('\n','device:',device,'\n')
|
||||
# if LOCAL_RANK != -1:
|
||||
|
Reference in New Issue
Block a user