Skip to content

Commit

Permalink
Fix multiprocess writing issue in dints. (#374)
Browse files Browse the repository at this point in the history
Fix
[#737](#373)

---------

Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
  • Loading branch information
KumoLiu authored Apr 19, 2024
1 parent f65128f commit def5f26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auto3dseg/algorithm_templates/dints/scripts/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ def pre_operation(config_file, **override):
class InferClass:
def __init__(self, config_file: Optional[Union[str, Sequence[str]]] = None, **override):
pre_operation(config_file, **override)
if dist.is_initialized():
dist.barrier()

logging.basicConfig(stream=sys.stdout, level=logging.INFO)

Expand Down

0 comments on commit def5f26

Please sign in to comment.