Skip to content

Commit

Permalink
Fix: use bilinear (for 4D) instead of linear
Browse files Browse the repository at this point in the history
  • Loading branch information
maudzung committed Jul 23, 2020
1 parent 5b36aa9 commit 1968a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_process/kitti_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def collate_fn(self, batch):
# Resize images to input shape
imgs = torch.stack(imgs)
if self.img_size != cnf.BEV_WIDTH:
imgs = F.interpolate(imgs, size=self.img_size, mode="linear", align_corners=True)
imgs = F.interpolate(imgs, size=self.img_size, mode="bilinear", align_corners=True)
self.batch_count += 1

return paths, imgs, targets
Expand Down

0 comments on commit 1968a46

Please sign in to comment.