Merge pull request #15 from open-mmlab/kennymckormick-patch-1

[Fix] Sleep 5s after generating configs to avoid potential bugs
pull/16/head
Zaida Zhou 2021-05-23 13:42:19 +08:00 committed by GitHub
commit 581cb30196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import itertools
import os
import os.path as osp
import subprocess
import time
from concurrent.futures import ProcessPoolExecutor as Executor
from typing import Optional, Tuple, Union
@ -322,6 +323,7 @@ def gridsearch(
cmds.append(cmd)
time.sleep(5)
succeed_list, fail_list = [], []
if launcher in ['none', 'pytorch']:
for cmd, exp_name in zip(cmds, exp_names):