Skip to content

Commit

Permalink
move AoiSampler to core
Browse files Browse the repository at this point in the history
  • Loading branch information
AdeelH committed Feb 5, 2024
1 parent d82eb33 commit 0095fa6
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions rastervision_core/rastervision/core/data/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
from rastervision.core.data.utils.raster import *
from rastervision.core.data.utils.rasterio import *
from rastervision.core.data.utils.vectorization import *
from rastervision.core.data.utils.aoi_sampler import *
1 change: 1 addition & 0 deletions rastervision_core/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ scikit-image==0.21.0
boto3==1.34.14
stackstac==0.5.0
humanize==4.8.0
triangle==20220202
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

from rastervision.core.box import Box
from rastervision.core.data import Scene
from rastervision.core.data.utils import AoiSampler
from rastervision.pytorch_learner.learner_config import PosInt, NonNegInt
from rastervision.pytorch_learner.dataset.transform import (TransformType,
TF_TYPE_TO_TF_FUNC)
from rastervision.pytorch_learner.dataset.utils import AoiSampler

log = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# flake8: noqa

from rastervision.pytorch_learner.dataset.utils.utils import *
from rastervision.pytorch_learner.dataset.utils.aoi_sampler import *

__all__ = [
AoiSampler.__name__,
DatasetError.__name__,
ImageDatasetError.__name__,
GeoDatasetError.__name__,
Expand Down
1 change: 0 additions & 1 deletion rastervision_pytorch_learner/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ albumentations==1.3.1
cython==0.29.35
pycocotools==2.0.7
psutil==5.9.3
triangle==20220202
opencv-python-headless==4.9.0.80
matplotlib==3.8.2
tqdm==4.66.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from scipy.stats import chisquare
from shapely.geometry import Polygon, MultiPolygon, MultiPoint

from rastervision.pytorch_learner.dataset.utils import AoiSampler
from rastervision.core.data.utils import AoiSampler


class TestAoiSampler(unittest.TestCase):
Expand Down

0 comments on commit 0095fa6

Please sign in to comment.