Skip to content

Commit

Permalink
rm zstandard
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsleh committed Feb 19, 2025
1 parent 423d4ce commit c3e6617
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion requirements/datasets.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ pandas[parquet]==2.2.3
pycocotools==2.0.8
scikit-image==0.25.1
scipy==1.15.1
zstandard==0.23.0
1 change: 0 additions & 1 deletion tests/data/bigearthnet/v2/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import numpy as np
import pandas as pd
import rasterio
import zstandard as zstd

# Constants
IMG_SIZE = 120
Expand Down
2 changes: 0 additions & 2 deletions tests/datasets/test_bigearthnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

from torchgeo.datasets import BigEarthNet, BigEarthNetV2, DatasetNotFoundError

pytest.importorskip('zstandard', minversion='0.23')


class TestBigEarthNet:
@pytest.fixture(
Expand Down
7 changes: 0 additions & 7 deletions torchgeo/datasets/bigearthnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -591,12 +591,6 @@ class BigEarthNetV2(NonGeoDataset):
geospatial data splits and additionally pixel-level labels from CORINE Land
Cover (CLC) map of 2018. Additionally, some problematic patches from V1 have been removed.
.. note::
This dataset rquires the following additional library to automatically decompress the files:
* `zstandard <https://pypi.org/project/zstandard/>`__
.. versionadded:: 0.7
"""

Expand Down Expand Up @@ -717,7 +711,6 @@ def __init__(
DatasetNotFoundError: If dataset is not found and *download* is False.
AssertionError: If *split*, or *bands*, are not valid.
"""
lazy_import('zstandard')
assert split in self.valid_splits, f'split must be one of {self.valid_splits}'
assert bands in ['s1', 's2', 'all']
self.root = root
Expand Down

0 comments on commit c3e6617

Please sign in to comment.