Skip to content

Commit

Permalink
fix: remove scaling in get_raster_data
Browse files Browse the repository at this point in the history
  • Loading branch information
Alikerin committed Feb 3, 2025
1 parent dd6f6e5 commit 6eb5d26
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions instageo/model/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,6 @@ def get_raster_data(
data = src.read()
if (not is_label) and bands:
data = data[bands, ...]
# For some reasons, some few HLS tiles are not scaled in v2.0.
# In the following lines, we find and scale them
bands = []
for band in data:
if band.max() > 10:
band *= 0.0001
bands.append(band)
data = np.stack(bands, axis=0)
return data


Expand Down

0 comments on commit 6eb5d26

Please sign in to comment.