mirror of
https://github.com/open-mmlab/mim.git
synced 2025-06-03 14:59:11 +08:00
[Fix] Sleep for a while after generating config
to avoid potential bugs
This commit is contained in:
parent
4840043730
commit
20f5c8e97b
@ -3,6 +3,7 @@ import itertools
|
|||||||
import os
|
import os
|
||||||
import os.path as osp
|
import os.path as osp
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import time
|
||||||
from concurrent.futures import ProcessPoolExecutor as Executor
|
from concurrent.futures import ProcessPoolExecutor as Executor
|
||||||
from typing import Optional, Tuple, Union
|
from typing import Optional, Tuple, Union
|
||||||
|
|
||||||
@ -322,6 +323,7 @@ def gridsearch(
|
|||||||
|
|
||||||
cmds.append(cmd)
|
cmds.append(cmd)
|
||||||
|
|
||||||
|
time.sleep(5)
|
||||||
succeed_list, fail_list = [], []
|
succeed_list, fail_list = [], []
|
||||||
if launcher in ['none', 'pytorch']:
|
if launcher in ['none', 'pytorch']:
|
||||||
for cmd, exp_name in zip(cmds, exp_names):
|
for cmd, exp_name in zip(cmds, exp_names):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user