Skip to content

Commit

Permalink
Switch to relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnair1 committed Jan 6, 2025
1 parent bb57173 commit 47fcabe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
4 changes: 3 additions & 1 deletion torchgeo/datasets/idtrees.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,9 @@ def normalize(x: Tensor) -> Tensor:
else None
)
preds = draw_bounding_boxes(
image=sample['image'], boxes=sample['prediction_bbox_xyxy'], labels=labels
image=sample['image'],
boxes=sample['prediction_bbox_xyxy'],
labels=labels,
)
preds = preds.permute((1, 2, 0)).numpy()

Expand Down
11 changes: 3 additions & 8 deletions torchgeo/datasets/zuericrop.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@
from matplotlib.figure import Figure
from torch import Tensor

from torchgeo.datasets.errors import DatasetNotFoundError, RGBBandsMissingError
from torchgeo.datasets.geo import NonGeoDataset
from torchgeo.datasets.utils import (
Path,
download_url,
lazy_import,
percentile_normalization,
)
from .errors import DatasetNotFoundError, RGBBandsMissingError
from .geo import NonGeoDataset
from .utils import Path, download_url, lazy_import, percentile_normalization


class ZueriCrop(NonGeoDataset):
Expand Down

0 comments on commit 47fcabe

Please sign in to comment.