ResNet#

torchgeo.models.resnet18(weights=None, *args, **kwargs)[source]#

ResNet-18 model.

If you use this model in your research, please cite the following paper:

Added in version 0.4.

Parameters:
Returns:

A ResNet-18 model.

Return type:

Module

torchgeo.models.resnet50(weights=None, *args, **kwargs)[source]#

ResNet-50 model.

If you use this model in your research, please cite the following paper:

Changed in version 0.4: Switched to multi-weight support API.

Parameters:
Returns:

A ResNet-50 model.

Return type:

Module

torchgeo.models.resnet152(weights=None, *args, **kwargs)[source]#

ResNet-152 model.

If you use this model in your research, please cite the following paper:

Added in version 0.6.

Parameters:
Returns:

A ResNet-152 model.

Return type:

Module

class torchgeo.models.ResNet18_Weights(*values)[source]#

Bases: WeightsEnum

ResNet-18 weights.

For timm resnet18 implementation.

Added in version 0.4.

__new__(value)#
class torchgeo.models.ResNet50_Weights(*values)[source]#

Bases: WeightsEnum

ResNet-50 weights.

For timm resnet50 implementation.

Added in version 0.4.

__new__(value)#
class torchgeo.models.ResNet152_Weights(*values)[source]#

Bases: WeightsEnum

ResNet-152 weights.

For timm resnet152 implementation.

Added in version 0.6.

__new__(value)#