Skip to content

Commit c270a4c

Browse files
committed
Use torch tensor for normalization
1 parent ac1434b commit c270a4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

embeddings/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def prepare_datacube(mean, std, datetimes, bboxs, pixels, gsd):
6868

6969
gsd = [gsd]
7070

71-
pixels_norm = transform(pixels)
71+
pixels_norm = transform(torch.tensor(pixels, dtype=torch.float32)).numpy()
7272

7373
return time_norm, latlon_norm, gsd, pixels_norm
7474

0 commit comments

Comments
 (0)