Skip to content

Mapping from paper to code #14

@sfalkena

Description

@sfalkena

Hi! I am trying to map the explanation of the projectors in the paper to their implementations in the repository, but I am stuck on mapping one to the other. In specific, I am trying to find the described steps from section 3.1 in the repository. From the paper I understand that we have 3 different granularities: tile (with dimensions S/R), patch (not sure about dimension) and sub-patch (dimension delta_m). I understand from the paper that patch size p is kept constant in meters, so that every modality covers the same geospatial area. However, I can't find in the code where you do the mapping from tile to patch (assuming that "tile" is our input image). Since you keep the size in meters constant, somewhere a mapping needs to be done that incorporates the resolution, but I fail to find that.

Some questions:

  1. II was assuming that delta_m from the paper is mapped to patch_size in the repo, is that correct?
  2. If so, why do some modalities in AnySat.yaml have patch_size defined and others don't? How are you handling the different resolutions for Sentinel 2 channels for example?
  3. What is the scale parameter in the AnyModule class? I dont seem to see that in the paper. Does this define our "zoom"?
  4. In the dataset configs, I see the parameter num_patches. Is this the number of subpatches in a tile? How is this number calculated?

In general, could you help me get up to speed in understanding the architecture by pointing me to specific important parts of the code?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions