Shortcuts

Source code for torchgeo.samplers.constants

# Copyright (c) Microsoft Corporation. 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()

© Copyright 2021, Microsoft Corporation. Revision b9653beb.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: stable
Versions
latest
stable
v0.5.2
v0.5.1
v0.5.0
v0.4.1
v0.4.0
v0.3.1
v0.3.0
v0.2.1
v0.2.0
v0.1.1
v0.1.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.

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