We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bba8bdf commit 6e44cd3Copy full SHA for 6e44cd3
detectron2/engine/defaults.py
@@ -86,7 +86,7 @@ def default_argument_parser(epilog=None):
86
# PyTorch still may leave orphan processes in multi-gpu training.
87
# Therefore we use a deterministic way to obtain port,
88
# 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
+ port = 2 ** 15 + 2 ** 14 + hash(os.getpid() if sys.platform != "win32" else 1) % 2 ** 14
90
parser.add_argument(
91
"--dist-url",
92
default="tcp://127.0.0.1:{}".format(port),
0 commit comments