Skip to content

Stability of tiled_inference #44

@lnicola

Description

@lnicola

I'm probably missing something, but tiled_inference doesn't seem to be very stable when changing the tile size, which is visible as checkerboard artifacts. sen1floods11_v1.1/data/S1GRDHand/USA_348639_S1Hand.tif seems to work fine. However, when using another, larger (7845x4968), image, the output looks like:

Image

(this is LULC computed from an S1GRD with crop=256, stride=192, batch_size=16 from the example notebook).

Bumping crop to 512 produces very different results:

Image Image

Increasing stride to 284 brings back the checkerboard pattern:

Image

Is there a way to get a stable inference over a larger image?

PS: I also tried to use tiled_inference over an entire GRD product and, while it was working fine in the beginning, the speed dropped to ~0 about halfway. It might be related to the memory usage, but to write out some of the data, I'd have to implement tiling myself anyway, so the question of how to pick the tile sizes and stride remains.

PPS: here's the class 1 probability for Santiago.tif, this time with the default crop and stride. The tiling artifacts are still visible.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions