core.common.transforms#
Copyright (c) Meta, Inc. and its affiliates.
This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
Classes#
Rotates node positions around a specific axis by a randomly sampled |
Module Contents#
- class core.common.transforms.RandomRotate(degrees, axes: list[int] | None = None)#
Rotates node positions around a specific axis by a randomly sampled factor within a given interval.
- Parameters:
degrees (tuple or float) – Rotation interval from which the rotation angle is sampled. If degrees is a number instead of a tuple, the interval is given by \([-\mathrm{degrees}, \mathrm{degrees}]\).
axes (int, optional) – The rotation axes. (default: [0, 1, 2])
- degrees#
- axes#
- __call__(data)#
- __repr__() str #