Shortcuts

Source code for torchgeo.samplers.constants

# Copyright (c) TorchGeo Contributors. All rights reserved.
# Licensed under the MIT License.

"""Common sampler constants."""

from enum import Enum, auto


[docs]class Units(Enum): """Enumeration defining units of ``size`` parameter. Used by :class:`~torchgeo.samplers.GeoSampler` and :class:`~torchgeo.samplers.BatchGeoSampler`. """ #: Units in number of pixels PIXELS = auto() #: Units of :term:`coordinate reference system (CRS)` CRS = auto()

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources