EarthLoc#
- class torchgeo.models.EarthLoc(in_channels=3, image_size=320, desc_dim=4096, backbone='resnet50', pretrained=True)[source]#
Bases:
ModuleEarthLoc model for generating feature descriptors from satellite imagery.
Adapted from gmberton/EarthLoc. Copyright (c) 2024 Gabriele Berton
If you use this model in your research, please cite the following paper:
Added in version 0.8.
- __init__(in_channels=3, image_size=320, desc_dim=4096, backbone='resnet50', pretrained=True)[source]#
Initialize the EarthLoc model.
- Parameters:
in_channels (int) – Number of input channels in the images (default: 3 for RGB).
image_size (int) – Size of the input images (assumed square).
desc_dim (int) – Dimension of the final output feature descriptor.
backbone (str) – Backbone model to use for feature extraction (default: “resnet50”).
pretrained (bool) – Whether to use pre-trained weights for the backbone model.