Skip to content

Commit 6e44cd3

Browse files
committed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detectron2/engine/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def default_argument_parser(epilog=None):
8686
# PyTorch still may leave orphan processes in multi-gpu training.
8787
# Therefore we use a deterministic way to obtain port,
8888
# so that users are aware of orphan processes by seeing the port occupied.
89-
port = 2 ** 15 + 2 ** 14 + hash(os.getuid() if sys.platform != "win32" else 1) % 2 ** 14
89+
port = 2 ** 15 + 2 ** 14 + hash(os.getpid() if sys.platform != "win32" else 1) % 2 ** 14
9090
parser.add_argument(
9191
"--dist-url",
9292
default="tcp://127.0.0.1:{}".format(port),

0 commit comments

Comments
 (0)