Skip to content

Commit

Permalink
uuguuguguguuuu
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Jul 11, 2023
1 parent f956d01 commit 06ab751
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions references/detection/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ def init_distributed_mode(args):
args.rank = int(os.environ["RANK"])
args.world_size = int(os.environ["WORLD_SIZE"])
args.gpu = int(os.environ["LOCAL_RANK"])
# elif "SLURM_PROCID" in os.environ:
# args.rank = int(os.environ["SLURM_PROCID"])
# args.gpu = args.rank % torch.cuda.device_count()
elif "SLURM_PROCID" in os.environ:
args.rank = int(os.environ["SLURM_PROCID"])
args.gpu = args.rank % torch.cuda.device_count()
else:
print("Not using distributed mode")
args.distributed = False
Expand Down

0 comments on commit 06ab751

Please sign in to comment.