Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

renamed core -> geometry

edgarriba48c42f303ecf
diff --git a/docs/source/conversions.rst b/docs/source/conversions.rst
index b593c86c6..732c61d76 100644
--- a/docs/source/conversions.rst
+++ b/docs/source/conversions.rst
@@ -1,7 +1,7 @@
Conversions
-----------
-.. currentmodule:: torchgeometry
+.. currentmodule:: torchgeometry.geometry
.. autofunction:: rad2deg
.. autofunction:: deg2rad
diff --git a/docs/source/geometric.rst b/docs/source/geometric.rst
index e29697457..e5e12b2c6 100644
--- a/docs/source/geometric.rst
+++ b/docs/source/geometric.rst
@@ -1,7 +1,7 @@
Image Transformations
---------------------
-.. currentmodule:: torchgeometry
+.. currentmodule:: torchgeometry.geometry
The functions in this section perform various geometrical transformations of 2D images.
@@ -13,6 +13,8 @@ The functions in this section perform various geometrical transformations of 2D
.. autofunction:: invert_affine_transform
.. autofunction:: center_crop
.. autofunction:: crop_and_resize
+.. autofunction:: pyrdown
+.. autofunction:: pyrup
.. autofunction:: affine
.. autofunction:: rotate
@@ -24,3 +26,5 @@ The functions in this section perform various geometrical transformations of 2D
.. autoclass:: Translate
.. autoclass:: Scale
.. autoclass:: Shear
+.. autoclass:: PyrDown
+.. autoclass:: PyrUp
diff --git a/docs/source/core.rst b/docs/source/geometry.rst
similarity index 53%
rename from docs/source/core.rst
rename to docs/source/geometry.rst
index 125b7a802..9ad247af3 100644
--- a/docs/source/core.rst
+++ b/docs/source/geometry.rst
@@ -1,7 +1,7 @@
-torchgeometry.core
-==================
+torchgeometry.geometry
+======================
-.. currentmodule:: torchgeometry.core
+.. currentmodule:: torchgeometry.geometry
.. toctree::
:maxdepth: 2
diff --git a/docs/source/index.rst b/docs/source/index.rst
index 67e6aa392..191f86f1a 100644
--- a/docs/source/index.rst
+++ b/docs/source/index.rst
@@ -20,17 +20,15 @@ TGM focuses on Image and tensor warping functions such as:
:maxdepth: 2
:caption: Package Reference
- core
color
+ contrib
feature
filters
- transform
+ geometry
losses
metrics
- contrib
utils
-
.. toctree::
:maxdepth: 2
:caption: Tutorials
diff --git a/docs/source/pinhole.rst b/docs/source/pinhole.rst
index 7a95700cd..0494bc6c1 100644
--- a/docs/source/pinhole.rst
+++ b/docs/source/pinhole.rst
@@ -1,7 +1,7 @@
Pinhole Camera
--------------
-.. currentmodule:: torchgeometry
+.. currentmodule:: torchgeometry.geometry
In this module we have all the functions and data structures needed to describe the projection of a 3D scene space onto a 2D image plane.
diff --git a/docs/source/transform.rst b/docs/source/transform.rst
deleted file mode 100644
index ed434335c..000000000
--- a/docs/source/transform.rst
+++ /dev/null
@@ -1,10 +0,0 @@
-torchgeometry.transform
------------------------
-
-.. currentmodule:: torchgeometry.transform
-
-.. autofunction:: pyrdown
-.. autofunction:: pyrup
-
-.. autoclass:: PyrDown
-.. autoclass:: PyrUp
diff --git a/docs/source/transformations.rst b/docs/source/transformations.rst
index 9aa4aab1f..9c2bdaed8 100644
--- a/docs/source/transformations.rst
+++ b/docs/source/transformations.rst
@@ -1,9 +1,9 @@
Linear Transformations
----------------------
-.. currentmodule:: torchgeometry
+.. currentmodule:: torchgeometry.geometry
-.. autofunction:: boxminus_transformation
-.. autofunction:: boxplus_transformation
+.. autofunction:: relative_transformation
+.. autofunction:: compose_transformations
.. autofunction:: inverse_transformation
.. autofunction:: transform_points
diff --git a/docs/source/warping.rst b/docs/source/warping.rst
index d55b11adc..aa83d9e1b 100644
--- a/docs/source/warping.rst
+++ b/docs/source/warping.rst
@@ -1,7 +1,7 @@
Warping
-------
-.. currentmodule:: torchgeometry
+.. currentmodule:: torchgeometry.geometry
.. autoclass:: HomographyWarper
:members:
diff --git a/mypy_files.txt b/mypy_files.txt
index 331316af0..de05fbc1c 100644
--- a/mypy_files.txt
+++ b/mypy_files.txt
@@ -1,10 +1,10 @@
-torchgeometry/core/homography_warper.py
-torchgeometry/core/depth_warper.py
-torchgeometry/core/pinhole.py
-torchgeometry/core/imgwarp.py
-torchgeometry/core/crop.py
-torchgeometry/core/affine.py
-torchgeometry/transform/pyramid.py
+torchgeometry/geometry/homography_warper.py
+torchgeometry/geometry/depth_warper.py
+torchgeometry/geometry/pinhole.py
+torchgeometry/geometry/imgwarp.py
+torchgeometry/geometry/crop.py
+torchgeometry/geometry/affine_warp.py
+torchgeometry/geometry/pyramid.py
torchgeometry/feature/harris.py
torchgeometry/filters/gaussian.py
torchgeometry/filters/laplacian.py
@@ -19,5 +19,6 @@ torchgeometry/losses/tversky.py
torchgeometry/losses/depth_smooth.py
torchgeometry/contrib/spatial_soft_argmax2d.py
torchgeometry/contrib/extract_patches.py
+torchgeometry/contrib/max_blur_pool.py
torchgeometry/metrics/confusion_matrix.py
torchgeometry/metrics/mean_iou.py
diff --git a/test/test_affine.py b/test/geometry/test_affine.py
similarity index 100%
rename from test/test_affine.py
rename to test/geometry/test_affine.py
diff --git a/test/test_conversions.py b/test/geometry/test_conversions.py
similarity index 100%
rename from test/test_conversions.py
rename to test/geometry/test_conversions.py
diff --git a/test/test_crop.py b/test/geometry/test_crop.py
similarity index 100%
rename from test/test_crop.py
rename to test/geometry/test_crop.py
diff --git a/test/test_depth_warper.py b/test/geometry/test_depth_warper.py
similarity index 98%
rename from test/test_depth_warper.py
rename to test/geometry/test_depth_warper.py
index 24b5bfcb8..267b29f25 100644
--- a/test/test_depth_warper.py
+++ b/test/geometry/test_depth_warper.py
@@ -5,7 +5,7 @@ import torchgeometry as tgm
from torch.autograd import gradcheck
import utils # test utils
-from torchgeometry.core.depth_warper import normalize_pixel_coordinates
+from torchgeometry.geometry.depth_warper import normalize_pixel_coordinates
class TestDepthWarper:
diff --git a/test/test_homography_warper.py b/test/geometry/test_homography_warper.py
similarity index 100%
rename from test/test_homography_warper.py
rename to test/geometry/test_homography_warper.py
diff --git a/test/test_imgwarp.py b/test/geometry/test_imgwarp.py
similarity index 100%
rename from test/test_imgwarp.py
rename to test/geometry/test_imgwarp.py
diff --git a/test/test_pinhole.py b/test/geometry/test_pinhole.py
similarity index 100%
rename from test/test_pinhole.py
rename to test/geometry/test_pinhole.py
diff --git a/test/transform/test_pyramid.py b/test/geometry/test_pyramid.py
similarity index 75%
rename from test/transform/test_pyramid.py
rename to test/geometry/test_pyramid.py
index 08961a136..e57fda7c5 100644
--- a/test/transform/test_pyramid.py
+++ b/test/geometry/test_pyramid.py
@@ -11,12 +11,12 @@ import utils # test utils
class TestPyrUp:
def test_shape(self):
inp = torch.zeros(1, 2, 4, 4)
- pyr = tgm.transform.PyrUp()
+ pyr = tgm.geometry.PyrUp()
assert pyr(inp).shape == (1, 2, 8, 8)
def test_shape_batch(self):
inp = torch.zeros(2, 2, 4, 4)
- pyr = tgm.transform.PyrUp()
+ pyr = tgm.geometry.PyrUp()
assert pyr(inp).shape == (2, 2, 8, 8)
def test_gradcheck(self):
@@ -24,27 +24,27 @@ class TestPyrUp:
img = torch.rand(batch_size, channels, height, width)
img = utils.tensor_to_gradcheck_var(img) # to var
- assert gradcheck(tgm.transform.pyrup, (img,), raise_exception=True)
+ assert gradcheck(tgm.geometry.pyrup, (img,), raise_exception=True)
def test_jit(self):
@torch.jit.script
def op_script(input):
- return tgm.transform.pyrup(input)
+ return tgm.geometry.pyrup(input)
img = torch.rand(2, 3, 4, 5)
actual = op_script(img)
- expected = tgm.transform.pyrup(img)
+ expected = tgm.geometry.pyrup(img)
assert_allclose(actual, expected)
class TestPyrDown:
def test_shape(self):
inp = torch.zeros(1, 2, 4, 4)
- pyr = tgm.transform.PyrDown()
+ pyr = tgm.geometry.PyrDown()
assert pyr(inp).shape == (1, 2, 2, 2)
def test_shape_batch(self):
inp = torch.zeros(2, 2, 4, 4)
- pyr = tgm.transform.PyrDown()
+ pyr = tgm.geometry.PyrDown()
assert pyr(inp).shape == (2, 2, 2, 2)
def test_gradcheck(self):
@@ -52,13 +52,13 @@ class TestPyrDown:
img = torch.rand(batch_size, channels, height, width)
img = utils.tensor_to_gradcheck_var(img) # to var
- assert gradcheck(tgm.transform.pyrdown, (img,), raise_exception=True)
+ assert gradcheck(tgm.geometry.pyrdown, (img,), raise_exception=True)
def test_jit(self):
@torch.jit.script
def op_script(input):
- return tgm.transform.pyrdown(input)
+ return tgm.geometry.pyrdown(input)
img = torch.rand(2, 3, 4, 5)
actual = op_script(img)
- expected = tgm.transform.pyrdown(img)
+ expected = tgm.geometry.pyrdown(img)
assert_allclose(actual, expected)
diff --git a/test/test_transformations.py b/test/geometry/test_transformations.py
similarity index 93%
rename from test/test_transformations.py
rename to test/geometry/test_transformations.py
index 6f640fc58..2a2da7912 100644
--- a/test/test_transformations.py
+++ b/test/geometry/test_transformations.py
@@ -90,7 +90,7 @@ class TestComposeTransforms:
trans_12 = identity_matrix(batch_size=1)[0]
trans_12[..., :3, -1] += offset # add offset to translation vector
- trans_02 = tgm.boxplus_transformation(trans_01, trans_12)
+ trans_02 = tgm.compose_transformations(trans_01, trans_12)
assert utils.check_equal_torch(trans_02, trans_12)
@pytest.mark.parametrize("batch_size", [1, 2, 5])
@@ -100,7 +100,7 @@ class TestComposeTransforms:
trans_12 = identity_matrix(batch_size)
trans_12[..., :3, -1] += offset # add offset to translation vector
- trans_02 = tgm.boxplus_transformation(trans_01, trans_12)
+ trans_02 = tgm.compose_transformations(trans_01, trans_12)
assert utils.check_equal_torch(trans_02, trans_12)
@pytest.mark.parametrize("batch_size", [1, 2, 5])
@@ -110,7 +110,7 @@ class TestComposeTransforms:
trans_01 = utils.tensor_to_gradcheck_var(trans_01) # to var
trans_12 = utils.tensor_to_gradcheck_var(trans_12) # to var
- assert gradcheck(tgm.boxplus_transformation, (trans_01, trans_12,),
+ assert gradcheck(tgm.compose_transformations, (trans_01, trans_12,),
raise_exception=True)
@@ -166,8 +166,8 @@ class TestRelativeTransformation:
trans_02 = identity_matrix(batch_size=1)[0]
trans_02[..., :3, -1] += offset # add offset to translation vector
- trans_12 = tgm.boxminus_transformation(trans_01, trans_02)
- trans_02_hat = tgm.boxplus_transformation(trans_01, trans_12)
+ trans_12 = tgm.relative_transformation(trans_01, trans_02)
+ trans_02_hat = tgm.compose_transformations(trans_01, trans_12)
assert utils.check_equal_torch(trans_02_hat, trans_02)
@pytest.mark.parametrize("batch_size", [1, 2, 5])
@@ -182,8 +182,8 @@ class TestRelativeTransformation:
trans_02[..., :3, -1] += offset # add offset to translation vector
trans_02[..., :3, :3] = rmat_02[..., :3, :3]
- trans_12 = tgm.boxminus_transformation(trans_01, trans_02)
- trans_02_hat = tgm.boxplus_transformation(trans_01, trans_12)
+ trans_12 = tgm.relative_transformation(trans_01, trans_02)
+ trans_02_hat = tgm.compose_transformations(trans_01, trans_12)
assert utils.check_equal_torch(trans_02_hat, trans_02)
@pytest.mark.parametrize("batch_size", [1, 2, 5])
@@ -193,5 +193,5 @@ class TestRelativeTransformation:
trans_01 = utils.tensor_to_gradcheck_var(trans_01) # to var
trans_02 = utils.tensor_to_gradcheck_var(trans_02) # to var
- assert gradcheck(tgm.boxminus_transformation, (trans_01, trans_02,),
+ assert gradcheck(tgm.relative_transformation, (trans_01, trans_02,),
raise_exception=True)
diff --git a/torchgeometry/__init__.py b/torchgeometry/__init__.py
index fe2dae3ca..e08129b69 100644
--- a/torchgeometry/__init__.py
+++ b/torchgeometry/__init__.py
@@ -6,24 +6,14 @@ if sys.version_info < (3, 6, 0):
from .version import __version__
-from torchgeometry import core
-from torchgeometry import losses
-from torchgeometry import contrib
-from torchgeometry import utils
-from torchgeometry import metrics
+from torchgeometry import geometry
from torchgeometry import color
from torchgeometry import feature
from torchgeometry import filters
-from torchgeometry import transform
+from torchgeometry import losses
+from torchgeometry import contrib
+from torchgeometry import metrics
+from torchgeometry import utils
-# Exposes ``torchgeometry.core`` package to top level
-from .core.homography_warper import HomographyWarper, homography_warp
-from .core.depth_warper import DepthWarper, depth_warp
-from .core.pinhole import *
-from .core.conversions import *
-from .core.imgwarp import *
-from .core.transformations import *
-from .core.affine import (
- affine, rotate, translate, scale, shear, Rotate, Translate, Scale, Shear
-)
-from .core.crop import center_crop, crop_and_resize
+# Exposes ``torchgeometry.geometry`` package to top level
+from torchgeometry.geometry import *
diff --git a/torchgeometry/contrib/max_blur_pool.py b/torchgeometry/contrib/max_blur_pool.py
index 16df59910..1f9a3fe76 100644
--- a/torchgeometry/contrib/max_blur_pool.py
+++ b/torchgeometry/contrib/max_blur_pool.py
@@ -4,7 +4,7 @@ import torch
import torch.nn as nn
import torch.nn.functional as F
-from torchgeometry.transform import pyrdown
+from torchgeometry.geometry.pyramid import pyrdown
__all__ = [
"MaxBlurPool2d",
diff --git a/torchgeometry/core/__init__.py b/torchgeometry/core/__init__.py
deleted file mode 100644
index a0e766f52..000000000
--- a/torchgeometry/core/__init__.py
+++ /dev/null
@@ -1,10 +0,0 @@
-from .homography_warper import HomographyWarper, homography_warp
-from .depth_warper import DepthWarper, depth_warp
-from .pinhole import *
-from .conversions import *
-from .imgwarp import *
-from .transformations import *
-from .affine import (
- affine, rotate, translate, scale, shear, Rotate, Translate, Scale, Shear
-)
-from .crop import center_crop, crop_and_resize
diff --git a/torchgeometry/geometry/__init__.py b/torchgeometry/geometry/__init__.py
new file mode 100644
index 000000000..627eb3563
--- /dev/null
+++ b/torchgeometry/geometry/__init__.py
@@ -0,0 +1,16 @@
+# image transforms
+from .crop import *
+from .affine_warp import *
+from .imgwarp import *
+from .pyramid import *
+
+# linear transforms
+from .transformations import *
+from .conversions import *
+
+# warpers
+from .homography_warper import *
+from .depth_warper import *
+
+# camera models
+from .pinhole import *
diff --git a/torchgeometry/core/affine.py b/torchgeometry/geometry/affine_warp.py
similarity index 97%
rename from torchgeometry/core/affine.py
rename to torchgeometry/geometry/affine_warp.py
index 293970532..7a903c228 100644
--- a/torchgeometry/core/affine.py
+++ b/torchgeometry/geometry/affine_warp.py
@@ -3,8 +3,19 @@ from typing import Union
import torch
import torch.nn as nn
-from torchgeometry.core.imgwarp import warp_affine, get_rotation_matrix2d
-
+from torchgeometry.geometry.imgwarp import warp_affine, get_rotation_matrix2d
+
+__all__ = [
+ "affine",
+ "scale",
+ "rotate",
+ "translate",
+ "shear",
+ "Scale",
+ "Rotate",
+ "Translate",
+ "Shear",
+]
# utilities to compute affine matrices
diff --git a/torchgeometry/core/conversions.py b/torchgeometry/geometry/conversions.py
similarity index 100%
rename from torchgeometry/core/conversions.py
rename to torchgeometry/geometry/conversions.py
diff --git a/torchgeometry/core/crop.py b/torchgeometry/geometry/crop.py
similarity index 97%
rename from torchgeometry/core/crop.py
rename to torchgeometry/geometry/crop.py
index 50b344be8..23a96d828 100644
--- a/torchgeometry/core/crop.py
+++ b/torchgeometry/geometry/crop.py
@@ -2,8 +2,13 @@ from typing import Tuple
import torch
-from torchgeometry.core.imgwarp import warp_perspective
-from torchgeometry.core.imgwarp import get_perspective_transform
+from torchgeometry.geometry.imgwarp import warp_perspective
+from torchgeometry.geometry.imgwarp import get_perspective_transform
+
+__all__ = [
+ "crop_and_resize",
+ "center_crop",
+]
def crop_and_resize(tensor: torch.Tensor, boxes: torch.Tensor,
diff --git a/torchgeometry/core/depth_warper.py b/torchgeometry/geometry/depth_warper.py
similarity index 94%
rename from torchgeometry/core/depth_warper.py
rename to torchgeometry/geometry/depth_warper.py
index 953e41a1c..c5dec66c7 100644
--- a/torchgeometry/core/depth_warper.py
+++ b/torchgeometry/geometry/depth_warper.py
@@ -3,12 +3,12 @@ import torch
import torch.nn as nn
import torch.nn.functional as F
-from torchgeometry.core.transformations import transform_points
-from torchgeometry.core.transformations import boxminus_transformation
-from torchgeometry.core.conversions import convert_points_to_homogeneous
-from torchgeometry.core.pinhole import PinholeCamera, PinholeCamerasList
-from torchgeometry.core.pinhole import normalize_pixel_coordinates
-from torchgeometry.core.pinhole import cam2pixel, pixel2cam
+from torchgeometry.geometry.transformations import transform_points
+from torchgeometry.geometry.transformations import relative_transformation
+from torchgeometry.geometry.conversions import convert_points_to_homogeneous
+from torchgeometry.geometry.pinhole import PinholeCamera, PinholeCamerasList
+from torchgeometry.geometry.pinhole import normalize_pixel_coordinates
+from torchgeometry.geometry.pinhole import cam2pixel, pixel2cam
from torchgeometry.utils import create_meshgrid
@@ -76,7 +76,7 @@ class DepthWarper(nn.Module):
"PinholeCamera. Got {}".format(type(pinhole_src)))
# compute the relative pose between the non reference and the reference
# camera frames.
- dst_trans_src: torch.Tensor = boxminus_transformation(
+ dst_trans_src: torch.Tensor = relative_transformation(
pinhole_src.extrinsics, self._pinhole_dst.extrinsics)
# compute the projection matrix between the non reference cameras and
diff --git a/torchgeometry/core/homography_warper.py b/torchgeometry/geometry/homography_warper.py
similarity index 98%
rename from torchgeometry/core/homography_warper.py
rename to torchgeometry/geometry/homography_warper.py
index c62bc0294..e3f674f7f 100644
--- a/torchgeometry/core/homography_warper.py
+++ b/torchgeometry/geometry/homography_warper.py
@@ -5,7 +5,7 @@ import torch.nn as nn
import torch.nn.functional as F
from torchgeometry.utils import create_meshgrid
-from torchgeometry.core.transformations import transform_points
+from torchgeometry.geometry.transformations import transform_points
__all__ = [
diff --git a/torchgeometry/core/imgwarp.py b/torchgeometry/geometry/imgwarp.py
similarity index 98%
rename from torchgeometry/core/imgwarp.py
rename to torchgeometry/geometry/imgwarp.py
index e0d0199f9..52e7e7be3 100644
--- a/torchgeometry/core/imgwarp.py
+++ b/torchgeometry/geometry/imgwarp.py
@@ -3,10 +3,10 @@ from typing import Tuple, Optional
import torch
import torch.nn.functional as F
-from torchgeometry.core.conversions import deg2rad
-from torchgeometry.core.homography_warper import homography_warp
+from torchgeometry.geometry.conversions import deg2rad
+from torchgeometry.geometry.homography_warper import homography_warp
# TODO: move to utils or conversions
-from torchgeometry.core.pinhole import normalize_pixel_coordinates
+from torchgeometry.geometry.pinhole import normalize_pixel_coordinates
__all__ = [
diff --git a/torchgeometry/core/pinhole.py b/torchgeometry/geometry/pinhole.py
similarity index 99%
rename from torchgeometry/core/pinhole.py
rename to torchgeometry/geometry/pinhole.py
index bf7f8dd9b..8ea3b4290 100644
--- a/torchgeometry/core/pinhole.py
+++ b/torchgeometry/geometry/pinhole.py
@@ -4,9 +4,9 @@ import warnings
import torch
import torch.nn as nn
-from torchgeometry.core.conversions import rtvec_to_pose
-from torchgeometry.core.transformations import transform_points
-from torchgeometry.core.transformations import inverse_transformation
+from torchgeometry.geometry.conversions import rtvec_to_pose
+from torchgeometry.geometry.transformations import transform_points
+from torchgeometry.geometry.transformations import inverse_transformation
__all__ = [
diff --git a/torchgeometry/transform/pyramid.py b/torchgeometry/geometry/pyramid.py
similarity index 98%
rename from torchgeometry/transform/pyramid.py
rename to torchgeometry/geometry/pyramid.py
index eb9981a9a..66005777a 100644
--- a/torchgeometry/transform/pyramid.py
+++ b/torchgeometry/geometry/pyramid.py
@@ -2,6 +2,13 @@ import torch
import torch.nn as nn
import torch.nn.functional as F
+__all__ = [
+ "PyrDown",
+ "PyrUp",
+ "pyrdown",
+ "pyrup",
+]
+
def _get_pyramid_gaussian_kernel() -> torch.Tensor:
"""Utility function that return a pre-computed gaussian kernel."""
diff --git a/torchgeometry/core/transformations.py b/torchgeometry/geometry/transformations.py
similarity index 96%
rename from torchgeometry/core/transformations.py
rename to torchgeometry/geometry/transformations.py
index 4a91608f0..e6570fa15 100644
--- a/torchgeometry/core/transformations.py
+++ b/torchgeometry/geometry/transformations.py
@@ -3,20 +3,20 @@ from typing import Optional
import torch
import torch.nn as nn
-from torchgeometry.core.conversions import convert_points_to_homogeneous
-from torchgeometry.core.conversions import convert_points_from_homogeneous
+from torchgeometry.geometry.conversions import convert_points_to_homogeneous
+from torchgeometry.geometry.conversions import convert_points_from_homogeneous
__all__ = [
- "boxplus_transformation",
- "boxminus_transformation",
+ "compose_transformations",
+ "relative_transformation",
"inverse_transformation",
"transform_points",
"TransformPoints",
]
-def boxplus_transformation(
+def compose_transformations(
trans_01: torch.Tensor, trans_12: torch.Tensor) -> torch.Tensor:
r"""Functions that composes two homogeneous transformations.
@@ -125,7 +125,7 @@ def inverse_transformation(trans_12):
return trans_21
-def boxminus_transformation(
+def relative_transformation(
trans_01: torch.Tensor, trans_02: torch.Tensor) -> torch.Tensor:
r"""Function that computes the relative homogenous transformation from a
reference transformation :math:`T_1^{0} = \begin{bmatrix} R_1 & t_1 \\
@@ -171,7 +171,7 @@ def boxminus_transformation(
raise ValueError("Input number of dims must match. Got {} and {}"
.format(trans_01.dim(), trans_02.dim()))
trans_10: torch.Tensor = inverse_transformation(trans_01)
- trans_12: torch.Tensor = boxplus_transformation(trans_10, trans_02)
+ trans_12: torch.Tensor = compose_transformations(trans_10, trans_02)
return trans_12
diff --git a/torchgeometry/transform/__init__.py b/torchgeometry/transform/__init__.py
deleted file mode 100644
index c2be9260f..000000000
--- a/torchgeometry/transform/__init__.py
+++ /dev/null
@@ -1,8 +0,0 @@
-from .pyramid import pyrdown, pyrup, PyrDown, PyrUp
-
-__all__ = [
- "PyrDown",
- "PyrUp",
- "pyrdown",
- "pyrup",
-]