Skip to content

Commit

Permalink
Some images in the SeCo dataset are not square (#658)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebrob6 committed Jul 7, 2022
1 parent 49d6114 commit 111921c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions torchgeo/datasets/seco.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ def _load_patch(self, scene_name: str, patch_name: str) -> Tensor:
with rasterio.open(fn) as f:
band_data = f.read(1)
height, width = band_data.shape
assert height == width
size = height
size = min(height, width)
if size < 264:
# TODO: PIL resize is much slower than cv2, we should check to see
# what could be sped up throughout later. There is also a potential
Expand Down

0 comments on commit 111921c

Please sign in to comment.