Revert "Update utils.py"

This reverts commit 70fe5da9c6.
This commit is contained in:
shuyingsunshine21 2021-03-24 02:06:40 -07:00
parent dcdcd29731
commit 8651d54d79
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ THRESHOLD = 0.5
def setup_ddp(rank, world_size):
""" Setup ddp enviroment """
os.environ["MASTER_ADDR"] = "localhost"
os.environ["MASTER_PORT"] = "8088"
os.environ["MASTER_PORT"] = "29501"
if torch.distributed.is_available() and sys.platform not in ("win32", "cygwin"):
torch.distributed.init_process_group("gloo", rank=rank, world_size=world_size)