Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Temporal Transforms #2477

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions torchgeo/transforms/temporal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

"""TorchGeo temporal transforms."""

from typing import Any

Check failure on line 6 in torchgeo/transforms/temporal.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

torchgeo/transforms/temporal.py:6:20: F401 `typing.Any` imported but unused

import kornia.augmentation as K

Check failure on line 8 in torchgeo/transforms/temporal.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

torchgeo/transforms/temporal.py:8:31: F401 `kornia.augmentation` imported but unused
import torch

Check failure on line 9 in torchgeo/transforms/temporal.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

torchgeo/transforms/temporal.py:9:8: F401 `torch` imported but unused
from einops import rearrange

Check failure on line 10 in torchgeo/transforms/temporal.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

torchgeo/transforms/temporal.py:10:20: F401 `einops.rearrange` imported but unused
from kornia.contrib import extract_tensor_patches

Check failure on line 11 in torchgeo/transforms/temporal.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

torchgeo/transforms/temporal.py:11:28: F401 `kornia.contrib.extract_tensor_patches` imported but unused
from kornia.geometry import crop_by_indices

Check failure on line 12 in torchgeo/transforms/temporal.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

torchgeo/transforms/temporal.py:12:29: F401 `kornia.geometry.crop_by_indices` imported but unused
from kornia.geometry.boxes import Boxes

Check failure on line 13 in torchgeo/transforms/temporal.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

torchgeo/transforms/temporal.py:13:35: F401 `kornia.geometry.boxes.Boxes` imported but unused
from torch import Tensor

Check failure on line 14 in torchgeo/transforms/temporal.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

torchgeo/transforms/temporal.py:14:19: F401 `torch.Tensor` imported but unused
from torch.nn.modules import Module

Check failure on line 15 in torchgeo/transforms/temporal.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (F401)

torchgeo/transforms/temporal.py:15:30: F401 `torch.nn.modules.Module` imported but unused
Loading