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

Classification references does not work without distributed setup #6529

Open
pmeier opened this issue Sep 1, 2022 · 2 comments
Open

Classification references does not work without distributed setup #6529

pmeier opened this issue Sep 1, 2022 · 2 comments

Comments

@pmeier
Copy link
Collaborator

pmeier commented Sep 1, 2022

If you don't set the respective env vars

else:
print("Not using distributed mode")
args.distributed = False
return

training will not be distributed and in turn the backend will not be initialized. However, during evaluation we check

and torch.distributed.get_rank() == 0

unguarded, which then fails with

RuntimeError: Default process group has not been initialized, please make sure to call init_process_group.

cc @datumbox

@pmeier
Copy link
Collaborator Author

pmeier commented Sep 12, 2022

Same for segmentation:

and torch.distributed.get_rank() == 0

@YosuaMichael
Copy link
Contributor

I think this case is implicitly guarded on

and len(data_loader.dataset) != num_processed_samples

since len(data_loader.dataset) != num_processed_samples shouldn't be true on non-distributed setting.

Do you get the error during non-distributed training @pmeier ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants