Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multiprocess writing issue in dints. #374

Merged
merged 2 commits into from
Apr 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add dist barrier
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
KumoLiu committed Apr 18, 2024
commit ad3e63dfaad923f0eba953c4b4bd6753ea34e49b
1 change: 1 addition & 0 deletions auto3dseg/algorithm_templates/dints/scripts/infer.py
Original file line number Diff line number Diff line change
@@ -138,6 +138,7 @@ 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)
dist.barrier()

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