Skip to content

Commit

Permalink
Rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhanhx committed Sep 23, 2022
1 parent 07878fe commit 1564c23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run_uit_viic.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ def configure_optimizers(self):
image_size=config.image_size,
patch_size=config.patch_size)

sampler_train = DistributedSampler(
sampler = DistributedSampler(
train_val_ic, num_replicas=xm.xrt_world_size(), rank=xm.get_ordinal(), shuffle=False
)
dataloader = DataLoader(train_val_ic,
batch_size=8,
sampler=sampler_train,
sampler=sampler,
num_workers=24,
collate_fn=ic_collator,
drop_last=True)
Expand Down

0 comments on commit 1564c23

Please sign in to comment.