Skip to content

Commit

Permalink
remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasHug committed Jul 11, 2023
1 parent d10dd56 commit f956d01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion references/detection/coco_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,6 @@ def get_coco(root, image_set, transforms, mode="instances", use_v2=False):
img_folder = os.path.join(root, img_folder)
ann_file = os.path.join(root, ann_file)

# TODO: cleanup
if use_v2:
dataset = torchvision.datasets.CocoDetection(img_folder, ann_file, transforms=transforms)
# TODO: need to update target_keys to handle masks for segmentation!
Expand Down
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 f956d01

Please sign in to comment.